pNFS: Force a retry of LAYOUTGET if the stateid doesn't match our cache
authorTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 23 Nov 2016 17:36:04 +0000 (12:36 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 1 Dec 2016 22:21:40 +0000 (17:21 -0500)
commit9888d837f3cf6b1f38f7717ab58236f94123ca19
tree9323611f9335a889de3dff0bbf2b132c42300c29
parentae5a459d5f65c3e83f3e14068dde5fb9c9d81807
pNFS: Force a retry of LAYOUTGET if the stateid doesn't match our cache

If the server sends us a completely new stateid, and the client thinks
it already holds a layout, then force a retry of the LAYOUTGET after
invalidating the existing layout in order to avoid corruption due to
races.

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