[PATCH] knfsd: lockd: fix use of h_nextrebind
authorOlaf Kirch <okir@suse.de>
Wed, 4 Oct 2006 09:16:04 +0000 (02:16 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 4 Oct 2006 14:55:18 +0000 (07:55 -0700)
nlmclnt_recovery would try to force a portmap rebind by setting
host->h_nextrebind to 0.  The right thing to do here is to set it to the
current time.

Signed-off-by: Olaf Kirch <okir@suse.de>
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/lockd/clntlock.c

index a4ab6dd..e8c7765 100644 (file)
@@ -184,7 +184,7 @@ restart:
        /* Force a portmap getport - the peer's lockd will
         * most likely end up on a different port.
         */
-       host->h_nextrebind = 0;
+       host->h_nextrebind = jiffies;
        nlm_rebind_host(host);
 
        /* First, reclaim all locks that have been granted. */