patch-2.1.23 linux/fs/nfs/inode.c

Next file: linux/fs/nfs/nfsroot.c
Previous file: linux/fs/nfs/file.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.22/linux/fs/nfs/inode.c linux/fs/nfs/inode.c
@@ -335,11 +335,7 @@
 {
 	int	ret;
 
-#ifdef __SMP__
 	lock_kernel();
-	syscall_count++;
-#endif
-
 	MOD_INC_USE_COUNT;
 	exit_mm(current);
 	current->session = 1;
@@ -347,6 +343,7 @@
 	sprintf(current->comm, "nfsiod");
 	ret = nfsiod();
 	MOD_DEC_USE_COUNT;
+	unlock_kernel();
 	return ret;
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov