]> git.karo-electronics.de Git - karo-tx-linux.git/commit
NLM: Ensure that we resend all pending blocking locks after a reclaim
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 19 Feb 2013 17:04:42 +0000 (12:04 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Feb 2013 13:38:32 +0000 (05:38 -0800)
commit19cb8ef8147370e8859a863c942221920163b404
treeff788c6be7949a24429ec3161e74b3fc19a3f543
parent845d480dbebf1dc1b6b4997f14ea70ab2de665af
NLM: Ensure that we resend all pending blocking locks after a reclaim

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 <Wangyuan.Zhang@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/lockd/clntproc.c