]> 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)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Wed, 14 Mar 2012 14:57:23 +0000 (10:57 -0400)
commit0435c7f0719a6e7f372d405dee61728058409ca1
treedea0342569119433c67f87a85708e76833350acd
parentfa0d92b081deb58ba6d60fa99c665a418808d129
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: Paul Gortmaker <paul.gortmaker@windriver.com>
fs/nfs/inode.c