Uncomment forgotten check. Without this check in-place, ZFS will panic on
unload instead of returning EBUSY. This check tells if there are mounted ZFS file systems or not. We can't unload if there are mounted file systems. Reported by: Andrey V. Elsukov <bu7cher@yandex.ru>
This commit is contained in:
parent
3580dcafae
commit
8cb195f758
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=168775
@ -1795,7 +1795,7 @@ zfs_modevent(module_t mod, int type, void *unused __unused)
|
||||
error = 0;
|
||||
break;
|
||||
case MOD_UNLOAD:
|
||||
if (spa_busy() || /* zfs_busy() || */ zvol_busy() ||
|
||||
if (spa_busy() || zfs_busy() || zvol_busy() ||
|
||||
zio_injection_enabled) {
|
||||
error = EBUSY;
|
||||
break;
|
||||
|
@ -1795,7 +1795,7 @@ zfs_modevent(module_t mod, int type, void *unused __unused)
|
||||
error = 0;
|
||||
break;
|
||||
case MOD_UNLOAD:
|
||||
if (spa_busy() || /* zfs_busy() || */ zvol_busy() ||
|
||||
if (spa_busy() || zfs_busy() || zvol_busy() ||
|
||||
zio_injection_enabled) {
|
||||
error = EBUSY;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user