]> git.karo-electronics.de Git - karo-tx-linux.git/commit
NFSv4.1: Always clear the NFS_INO_LAYOUTCOMMIT in layoutreturn
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 20 Mar 2013 17:03:00 +0000 (13:03 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 21 Mar 2013 14:31:21 +0000 (10:31 -0400)
commit24956804349ca0eadcdde032d65e8c00b4214096
tree8f065155073b0563dd6a27de8a73c8d1470c49a6
parenta073dbff359f4741013ae4b8395f5364c5e00b48
NFSv4.1: Always clear the NFS_INO_LAYOUTCOMMIT in layoutreturn

Note that clearing NFS_INO_LAYOUTCOMMIT is tricky, since it requires
you to also clear the NFS_LSEG_LAYOUTCOMMIT bits from the layout
segments.
The only two sites that need to do this are the ones that call
pnfs_return_layout() without first doing a layout commit.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Acked-by: Benny Halevy <bhalevy@tonian.com>
Cc: stable@vger.kernel.org
fs/nfs/nfs4filelayout.c
fs/nfs/pnfs.c