]> git.baikalelectronics.ru Git - kernel.git/commit
nfs41: introduce NFS_LAYOUT_RETURN_BEFORE_CLOSE
authorPeng Tao <tao.peng@primarydata.com>
Mon, 17 Nov 2014 01:30:41 +0000 (09:30 +0800)
committerTom Haynes <loghyr@primarydata.com>
Tue, 3 Feb 2015 19:06:50 +0000 (11:06 -0800)
commite9da9b3a3e011ad4406b8ec97331277a6abff4ce
treefd805d0a879441054ee99252d0e1767a08b331a3
parent514ffc904ca6b58443d3ee13a79982e98b8f7b97
nfs41: introduce NFS_LAYOUT_RETURN_BEFORE_CLOSE

When it is set, generic pnfs would try to send layoutreturn right
before last close/delegation_return regard less NFS_LAYOUT_ROC is
set or not. LD can then make sure layoutreturn is always sent
rather than being omitted.

The difference against NFS_LAYOUT_RETURN is that
NFS_LAYOUT_RETURN_BEFORE_CLOSE does not block usage of the layout so
LD can set it and expect generic layer to try pnfs path at the
same time.

Signed-off-by: Peng Tao <tao.peng@primarydata.com>
Signed-off-by: Tom Haynes <loghyr@primarydata.com>
fs/nfs/nfs4proc.c
fs/nfs/pnfs.c
fs/nfs/pnfs.h