Giant wasn't dropped here if we have to return EBUSY. This is bad.

This commit is contained in:
Bosko Milekic 2004-05-31 20:21:06 +00:00
parent 4d489f472b
commit d1fd2228b8
1 changed files with 3 additions and 1 deletions

View File

@ -557,8 +557,10 @@ nfsrv_modevent(module_t mod, int type, void *data)
break;
case MOD_UNLOAD:
if (nfsrv_numnfsd != 0)
if (nfsrv_numnfsd != 0) {
NET_UNLOCK_GIANT();
return EBUSY;
}
callout_stop(&nfsrv_callout);
sysent[SYS_nfssvc].sy_narg = nfs_prev_nfssvc_sy_narg;