NFS: Fix races in nfs_revalidate_mapping
authorTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 28 Jan 2014 14:37:16 +0000 (09:37 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 28 Jan 2014 15:47:08 +0000 (10:47 -0500)
commit17dfeb9113397a6119091a491ef7182649f0c5a9
tree26024381114970fa3ab1844f55b30755e7a32af3
parent0ea9de0ea6a4e4a1d343130b2a159b4f986e288e
NFS: Fix races in nfs_revalidate_mapping

Commit d529ef83c355f97027ff85298a9709fe06216a66 (NFS: fix the handling
of NFS_INO_INVALID_DATA flag in nfs_revalidate_mapping) introduces
a potential race, since it doesn't test the value of nfsi->cache_validity
and set the bitlock in nfsi->flags atomically.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Cc: Jeff Layton <jlayton@redhat.com>
fs/nfs/inode.c