NFS: nfs_wcc_update_inode() should set nfsi->attr_gencount
commitcf2a92514a40c40b34f92f5aefb767ed7b73b282
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 25 Jan 2011 20:28:21 +0000 (25 15:28 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 9 May 2011 23:04:35 +0000 (9 16:04 -0700)
tree3d7b513e5b4a6fc88bfac211191faa887eafe237
parent43348e9a57ba3003ef6ef4e625b58e0026166ff0
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>
fs/nfs/inode.c