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>
Wed, 27 Feb 2013 17:21:10 +0000 (09:21 -0800)
commit58e772eae11a0569b80b8e2eebdee10ce0caa93d
tree7a7f255852c1c8fde8687f1a499d6578c6959cc4
parent0a41d4134695a7059c1cc5d0ac57f44c9e0a54a1
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