NFSv4: Use correct locking when updating nfs4_state in nfs4_close_done
authorTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 11 Feb 2014 15:41:07 +0000 (10:41 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 20 Feb 2014 02:21:07 +0000 (21:21 -0500)
commit226056c5c312b3dac16ff6d4f40208f95c070b6a
tree0c1869e6f68abffd43dbef69fa62673373fc27df
parent78096ccac561ce2d89fbff1d1aa451bf4090a1a2
NFSv4: Use correct locking when updating nfs4_state in nfs4_close_done

The stateid and state->flags should be updated atomically under
protection of the state->seqlock.

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