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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 9 May 2011 22:54:48 +0000 (15:54 -0700)
commit16b0c220618ffbe2e76cc5b20176c0cf7c3e6888
treee835be524af15de1a110f9bafa17445a2234f043
parente8ab09aaeabbb6b550416ac76bdffca6541831fd
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