patch-2.3.10 linux/fs/nfs/read.c
Next file: linux/fs/nfs/write.c
Previous file: linux/fs/ncpfs/mmap.c
Back to the patch index
Back to the overall index
-  Lines: 12
-  Date:
Tue Jul  6 10:06:18 1999
-  Orig file: 
v2.3.9/linux/fs/nfs/read.c
-  Orig date: 
Sat Jun 19 11:38:49 1999
diff -u --recursive --new-file v2.3.9/linux/fs/nfs/read.c linux/fs/nfs/read.c
@@ -90,8 +90,9 @@
 
 		/* Set up arguments and perform rpc call */
 		nfs_readreq_setup(&rqst, NFS_FH(dentry), offset, buffer, rsize);
-		result = rpc_call(NFS_CLIENT(inode), NFSPROC_READ,
-					&rqst.ra_args, &rqst.ra_res, flags);
+		lock_kernel();
+		result = rpc_call(NFS_CLIENT(inode), NFSPROC_READ, &rqst.ra_args, &rqst.ra_res, flags);
+		unlock_kernel();
 
 		/*
 		 * Even if we had a partial success we can't mark the page
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)