patch-2.4.25 linux-2.4.25/fs/lockd/clntlock.c

Next file: linux-2.4.25/fs/locks.c
Previous file: linux-2.4.25/fs/jfs/xattr.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.24/fs/lockd/clntlock.c linux-2.4.25/fs/lockd/clntlock.c
@@ -188,7 +188,8 @@
 		nlmclnt_prepare_reclaim(host, newstate);
 		nlm_get_host(host);
 		MOD_INC_USE_COUNT;
-		kernel_thread(reclaimer, host, CLONE_SIGNAL);
+		if (kernel_thread(reclaimer, host, CLONE_SIGNAL) < 0)
+			MOD_DEC_USE_COUNT;
 	}
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)