patch-2.1.128 linux/fs/lockd/svclock.c

Next file: linux/fs/minix/dir.c
Previous file: linux/fs/lockd/svc.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.127/linux/fs/lockd/svclock.c linux/fs/lockd/svclock.c
@@ -615,6 +615,7 @@
 	}
 
 	if ((block = nlm_blocked) && block->b_when != NLM_NEVER)
-		return block->b_when;
-	return 0;
+		return (block->b_when - jiffies);
+
+	return MAX_SCHEDULE_TIMEOUT;
 }

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