]> asedeno.scripts.mit.edu Git - linux.git/commit
nfs4: wake any lock waiters on successful RECLAIM_COMPLETE
authorJeff Layton <jlayton@redhat.com>
Sun, 18 Mar 2018 12:37:03 +0000 (08:37 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 10 Apr 2018 20:06:22 +0000 (16:06 -0400)
commit571745935b2ec276345faec81af732fb9f51082b
treea23fe9112ffc8a69b4ef01a5c804e992cdcb906f
parent5656610325a926141625e2d5eed1b0ba57a2e4cb
nfs4: wake any lock waiters on successful RECLAIM_COMPLETE

If we have a RECLAIM_COMPLETE with a populated cl_lock_waitq, then
that implies that a reconnect has occurred. Since we can't expect a
CB_NOTIFY_LOCK callback at that point, just wake up the entire queue
so that all the tasks can re-poll for their locks.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/nfs4proc.c