From fbb2a199a82e15ac1466ff761e98fa48f2881fd0 Mon Sep 17 00:00:00 2001 From: Trond Myklebust Date: Tue, 19 Feb 2013 12:04:42 -0500 Subject: [PATCH] --- yaml --- r: 352978 b: refs/heads/master c: 666b3d803a511fbc9bc5e5ea8ce66010cf03ea13 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/lockd/clntproc.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index e710764d12dc..51c06fb1ae29 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 5a12cca697aca5dfba42a7d4c3356acc0445a2b0 +refs/heads/master: 666b3d803a511fbc9bc5e5ea8ce66010cf03ea13 diff --git a/trunk/fs/lockd/clntproc.c b/trunk/fs/lockd/clntproc.c index 54f9e6ce0430..52e5120bb159 100644 --- a/trunk/fs/lockd/clntproc.c +++ b/trunk/fs/lockd/clntproc.c @@ -550,6 +550,9 @@ nlmclnt_lock(struct nlm_rqst *req, struct file_lock *fl) status = nlmclnt_block(block, req, NLMCLNT_POLL_TIMEOUT); if (status < 0) break; + /* Resend the blocking lock request after a server reboot */ + if (resp->status == nlm_lck_denied_grace_period) + continue; if (resp->status != nlm_lck_blocked) break; }