NFSv4: Deal with atomic upgrades of an existing delegation
authorTrond Myklebust <trond.myklebust@primarydata.com>
Fri, 19 Dec 2014 16:22:28 +0000 (11:22 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Sat, 24 Jan 2015 23:46:51 +0000 (18:46 -0500)
commitcf6726e2ee387b0eff303628eaa0beaf36a1aeb4
treee689a97ec219956e42b2475beb794adfb5c6f4b1
parent89f0ff386cb1ebca0da7940d05bf609bc86f3972
NFSv4: Deal with atomic upgrades of an existing delegation

Ensure that we deal correctly with the case where the server sends us a
newer instance of the same delegation. If the stateids match, but the
sequence numbers differ, then treat the new delegation as if it were
an atomic upgrade.

Signed-off-by: Trond Myklebust <Trond.Myklebust@primarydata.com>
fs/nfs/delegation.c