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)
commit193e3aa2ccfb5a53acf7a690b80a1e415b74dbd7
treefd805d0a879441054ee99252d0e1767a08b331a3
parent6c16605d6ef0dfb2e154119700d58b85c6b4dc71
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