From: Trond Myklebust Date: Thu, 26 Feb 2015 21:09:04 +0000 (-0500) Subject: NFS: Add attribute update barriers to nfs_setattr_update_inode() X-Git-Tag: omap-for-v4.1/wl12xx-dt~60^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f044636d972246d451e06226cc1675d5da389762;p=pandora-kernel.git NFS: Add attribute update barriers to nfs_setattr_update_inode() Ensure that other operations which raced with our setattr RPC call cannot revert the file attribute changes that were made on the server. To do so, we artificially bump the attribute generation counter on the inode so that all calls to nfs_fattr_init() that precede ours will be dropped. The motivation for the patch came from Chuck Lever's reports of readaheads racing with truncate operations and causing the file size to be reverted. Reported-by: Chuck Lever Signed-off-by: Trond Myklebust Tested-by: Chuck Lever --- Reading git-diff-tree failed