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:
Pawel Jakub Dawidek 2007-04-16 10:23:24 +00:00
parent 3580dcafae
commit 8cb195f758
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=168775
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;