NFS: Convert nfs_attr_generation_counter into an atomic_long
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 28 Oct 2008 19:21:40 +0000 (15:21 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 28 Oct 2008 19:21:40 +0000 (15:21 -0400)
commitae05f269400533cbb32bfba131ab528d78dffd16
treeff18dae710bf73c32b77953222b994a36afbe8e8
parent2a9e1cfa23fb62da37739af81127dab5af095d99
NFS: Convert nfs_attr_generation_counter into an atomic_long

The most important property we need from nfs_attr_generation_counter is
monotonicity, which is not guaranteed by the current system of smp memory
barriers. We should convert it to an atomic_long_t, and drop the memory
barriers.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/inode.c