NFSv4.x: fix lock recovery during delegation recall
authorOlga Kornievskaia <kolga@netapp.com>
Thu, 4 Oct 2018 18:45:00 +0000 (14:45 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 5 Oct 2018 13:34:36 +0000 (09:34 -0400)
commit44f411c353bf6d98d5a34f8f1b8605d43b2e50b8
tree6e6d91e3889f499a038e9ad46716cccd9eeb49b3
parent21924765862a0871908a35cb0e53e2e1c169b888
NFSv4.x: fix lock recovery during delegation recall

Running "./nfstest_delegation --runtest recall26" uncovers that
client doesn't recover the lock when we have an appending open,
where the initial open got a write delegation.

Instead of checking for the passed in open context against
the file lock's open context. Check that the state is the same.

Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/delegation.c