A lockd bug in linux 2.1.127

H.J. Lu (hjl@lucon.org)
Sun, 8 Nov 1998 13:51:32 -0800 (PST)


Hi,

When I use lockd in linux 2.1.127 NFS sever, I got

schedule_timeout: wrong timeout value xxxxx from xxxxx

It looks like timeout here can be negative in lockd. Is there a typo?

Thanks.

-- 
H.J. Lu (hjl@gnu.org)
---
Index: fs/lockd/svc.c
===================================================================
RCS file: /home/work/cvs/linux/linux/fs/lockd/svc.c,v
retrieving revision 1.1.1.8
diff -u -p -r1.1.1.8 svc.c
--- svc.c	1998/11/08 00:49:50	1.1.1.8
+++ svc.c	1998/11/08 21:47:36
@@ -135,7 +135,7 @@ lockd(struct svc_rqst *rqstp)
 		 * during grace period).
 		 */
 		if (!nlmsvc_grace_period) {
-			timeout = nlmsvc_retry_blocked() - jiffies;
+			timeout = nlmsvc_retry_blocked() + jiffies;
 		} else if (nlmsvc_grace_period < jiffies)
 			nlmsvc_grace_period = 0;
 

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/