Skip to content

Commit 06a0d27

Browse files
committed
move weightfunc set
Signed-off-by: Paul Dagnelie <paul.dagnelie@klarasystems.com>
1 parent 4a39cec commit 06a0d27

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

module/zfs/spa.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5543,6 +5543,8 @@ spa_ld_load_vdev_metadata(spa_t *spa)
55435543
}
55445544
}
55455545

5546+
spa_set_weightfunc(spa, zfs_active_weightfunc);
5547+
55465548
/*
55475549
* Load the vdev metadata such as metaslabs, DTLs, spacemap object, etc.
55485550
*/

module/zfs/spa_misc.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,6 @@ spa_add(const char *name, nvlist_t *config, const char *altroot)
801801
spa->spa_deadman_ziotime = MSEC2NSEC(zfs_deadman_ziotime_ms);
802802
spa_set_deadman_failmode(spa, zfs_deadman_failmode);
803803
spa_set_allocator(spa, zfs_active_allocator);
804-
spa_set_weightfunc(spa, zfs_active_weightfunc);
805804

806805
zfs_refcount_create(&spa->spa_refcount);
807806
spa_config_lock_init(spa);

0 commit comments

Comments
 (0)