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)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 6 Mar 2013 03:24:05 +0000 (03:24 +0000)
commitc0bb151f11915056a9457bc9234de5c0fe9c4d2c
tree247ff4b4fb9788a6d9d3dfbe7d356e612238a210
parentc6f8eab7b3f687d2642e2c6e99da46d9dcef3927
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: Ben Hutchings <ben@decadent.org.uk>
fs/lockd/clntproc.c