]> git.baikalelectronics.ru Git - kernel.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)
commit822a27a6421e5b56fdc1ae7112cb9dc422647f2e
tree8f065155073b0563dd6a27de8a73c8d1470c49a6
parentd60b61e967965aea79f41cf151922161a09010ff
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