]> git.baikalelectronics.ru Git - kernel.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)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 25 Jan 2011 20:28:21 +0000 (15:28 -0500)
commita50bafe7f55d288c9491b93191f283a437ecd588
tree5f242e02274ce115154e2400b298b82b39302ed2
parenta9de8d00964a07a5931eec754382823fb54e6349
NFS: nfs_wcc_update_inode() should set nfsi->attr_gencount

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>
fs/nfs/inode.c