]> 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)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 25 Jan 2011 20:28:21 +0000 (15:28 -0500)
commit27dc1cd3ad9300f81e1219e5fc305d91d85353f8
tree5f242e02274ce115154e2400b298b82b39302ed2
parentb2a2897dc4a59684321de425652061c62a0569d0
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