NFS: Fix races in nfs_revalidate_mapping

Commit d529ef83c3 (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>
This commit is contained in:
Trond Myklebust 2014-01-28 09:37:16 -05:00
commit 17dfeb9113