Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moving the metaslab_group_set_rotor_category() up.
ztest did an (unreproducible) failure with stack trace of spa_tryimport() -> ... vdev_load() -> ... vdev_metaslab_init() -> metaslab_init() -> ... metaslab_class_space_update() that failed its ASSERT. Inspection showed that vdev_metaslab_init() would soon call metaslab_group_activate(), i.e. we need to assign mg_nrot. (Hopefully, vdev_open was called earlier...?)
- Loading branch information