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)
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

diff --cc fs/nfs/inode.c
Simple merge