]> git.karo-electronics.de Git - karo-tx-linux.git/commit
NFS: nfs_wcc_update_inode() should set nfsi->attr_gencount
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 25 Jan 2011 20:28:21 +0000 (15:28 -0500)
committerAndi Kleen <ak@linux.intel.com>
Thu, 28 Apr 2011 15:21:12 +0000 (08:21 -0700)
commit0993450a8cccc34704e7375ca47ec555be909b05
tree3ea1ce0027156e0c15fc584eac9af33aa00f2ff6
parentd287e1976eb287fbf3817df536758f1bffe74ded
NFS: nfs_wcc_update_inode() should set nfsi->attr_gencount

commit 27dc1cd3ad9300f81e1219e5fc305d91d85353f8 upstream.

If the call to nfs_wcc_update_inode() results in an attribute update, we
need to ensure that the inode's attr_gencount gets bumped too, otherwise
we are not protected against races with other GETATTR calls.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
fs/nfs/inode.c