]> git.baikalelectronics.ru Git - kernel.git/commit
nfs: fix inverted test for delegation in nfs4_reclaim_open_state
authorJeff Layton <jlayton@redhat.com>
Thu, 31 Oct 2013 17:03:04 +0000 (13:03 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 31 Oct 2013 17:24:07 +0000 (13:24 -0400)
commit8913385bc99320a68dc6bac8d2d1aa03e8dd9f27
treeb6ee894b986baa064c2d5d7af23af694b181299f
parenta50446a2035be49b9e6418ca38e3b9fecc1f58ad
nfs: fix inverted test for delegation in nfs4_reclaim_open_state

commit 69c1c51f0b72783 (NFS: remove incorrect "Lock reclaim failed!"
warning.) added a test for a delegation before checking to see if any
reclaimed locks failed. The test however is backward and is only doing
that check when a delegation is held instead of when one isn't.

Cc: NeilBrown <neilb@suse.de>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Fixes: 69c1c51f0b72: NFS: remove incorrect "Lock reclaim failed!" warning.
Cc: stable@vger.kernel.org # 3.12
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4state.c