patch-2.1.16 linux/fs/nfs/bio.c
Next file: linux/fs/nfs/nfsroot.c
Previous file: linux/fs/ncpfs/inode.c
Back to the patch index
Back to the overall index
-  Lines: 10
-  Date:
Sat Dec 14 13:33:17 1996
-  Orig file: 
v2.1.15/linux/fs/nfs/bio.c
-  Orig date: 
Tue Oct 29 19:58:43 1996
diff -u --recursive --new-file v2.1.15/linux/fs/nfs/bio.c linux/fs/nfs/bio.c
@@ -210,6 +210,9 @@
 	unsigned long	address;
 	int		error = -1;
 
+	/* In case we're called from a page fault we want to */
+	/* make sure we're runnable before we schedule.. */
+	current->state = TASK_RUNNING;
 	dprintk("NFS: nfs_readpage %08lx\n", page_address(page));
 	address = page_address(page);
 	page->count++;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov