patch-2.2.0-pre5 linux/fs/lockd/clntlock.c

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

diff -u --recursive --new-file v2.2.0-pre4/linux/fs/lockd/clntlock.c linux/fs/lockd/clntlock.c
@@ -71,12 +71,7 @@
 	 * a 1 minute timeout would do. See the comment before
 	 * nlmclnt_lock for an explanation.
 	 */
-	/*
-	 * FIXME, can we be not interruptible and so be allowed to use
-	 * a timeout here? -arca
-	 */
-/*  	current->timeout = jiffies + 30 * HZ; */
-	sleep_on(&block.b_wait);
+	sleep_on_timeout(&block.b_wait, 30*HZ);
 
 	for (head = &nlm_blocked; *head; head = &(*head)->b_next) {
 		if (*head == &block) {

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