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

Next file: linux-2.4.22/fs/lockd/svcproc.c
Previous file: linux-2.4.22/fs/lockd/svc4proc.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.21/fs/lockd/svclock.c linux-2.4.22/fs/lockd/svclock.c
@@ -64,7 +64,7 @@
 	if (when != NLM_NEVER) {
 		if ((when += jiffies) == NLM_NEVER)
 			when ++;
-		while ((b = *bp) && time_before_eq(b->b_when,when))
+		while ((b = *bp) && time_before_eq(b->b_when,when) && b->b_when != NLM_NEVER)
 			bp = &b->b_next;
 	} else
 		while ((b = *bp))

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)