This is a note to let you know that I've just added the patch titled
NLM: Ensure that we resend all pending blocking locks after a reclaim
to the 3.8-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
nlm-ensure-that-we-resend-all-pending-blocking-locks-after-a-reclaim.patch
and it can be found in the queue-3.8 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.
>From 666b3d803a511fbc9bc5e5ea8ce66010cf03ea13 Mon Sep 17 00:00:00 2001
From: Trond Myklebust <[email protected]>
Date: Tue, 19 Feb 2013 12:04:42 -0500
Subject: NLM: Ensure that we resend all pending blocking locks after a reclaim
From: Trond Myklebust <[email protected]>
commit 666b3d803a511fbc9bc5e5ea8ce66010cf03ea13 upstream.
Currently, nlmclnt_lock will break out of the for(;;) loop when
the reclaimer wakes up the blocking lock thread by setting
nlm_lck_denied_grace_period. This causes the lock request to fail
with an ENOLCK error.
The intention was always to ensure that we resend the lock request
after the grace period has expired.
Reported-by: Wangyuan Zhang <[email protected]>
Signed-off-by: Trond Myklebust <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
---
fs/lockd/clntproc.c | 3 +++
1 file changed, 3 insertions(+)
--- a/fs/lockd/clntproc.c
+++ b/fs/lockd/clntproc.c
@@ -550,6 +550,9 @@ again:
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;
}
Patches currently in stable-queue which might be from
[email protected] are
queue-3.8/nlm-ensure-that-we-resend-all-pending-blocking-locks-after-a-reclaim.patch
queue-3.8/nfsv4.1-fix-bulk-recall-and-destroy-of-layouts.patch
queue-3.8/nfsv4.1-don-t-decode-skipped-layoutgets.patch
queue-3.8/nfsv4.1-fix-an-abba-locking-issue-with-session-and-state-serialisation.patch
queue-3.8/umount-oops-when-remove-blocklayoutdriver-first.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html