]> www.infradead.org Git - users/jedix/linux-maple.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Apr 2013 16:26:00 +0000 (09:26 -0700)
commitd6395499fa70ab4825e2db322481e25b05f25bf1
tree525833199756858027d0a9f06327a1f656b6bf39
parent9b8e85ac297b3fdfadd58f98cb09fb937555f678
NFSv4.1: Always clear the NFS_INO_LAYOUTCOMMIT in layoutreturn

commit 24956804349ca0eadcdde032d65e8c00b4214096 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/nfs4filelayout.c
fs/nfs/pnfs.c