fix up r362047: a call to zvol_*_minors() was not hidden from userland
Reported by: CI/FreeBSD-head-powerpc64-build MFC after: 5 weeks X-MFC with: r362047
This commit is contained in:
parent
f51f07e1ec
commit
04dc03e0fe
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=362048
@ -6144,7 +6144,9 @@ spa_export_common(char *pool, int new_state, nvlist_t **oldconfig,
|
||||
mutex_exit(&spa_namespace_lock);
|
||||
spa_async_suspend(spa);
|
||||
if (spa->spa_zvol_taskq) {
|
||||
#ifdef _KERNEL
|
||||
zvol_remove_minors(spa, spa_name(spa));
|
||||
#endif
|
||||
taskq_wait(spa->spa_zvol_taskq);
|
||||
}
|
||||
mutex_enter(&spa_namespace_lock);
|
||||
|
Loading…
Reference in New Issue
Block a user