]> git.baikalelectronics.ru Git - kernel.git/commit
nfs41: add NFS_LAYOUT_RETRY_LAYOUTGET to layout header flags
authorPeng Tao <tao.peng@primarydata.com>
Mon, 1 Dec 2014 00:22:18 +0000 (08:22 +0800)
committerTom Haynes <loghyr@primarydata.com>
Tue, 3 Feb 2015 19:06:50 +0000 (11:06 -0800)
commited9972dd0b383a08692e3b383f53fb435a75a23e
treef5a1b72ce85f2bb98eb6f14c1f26d8ad6418be0c
parent078793f3b8cd3c0ae1cbfcfb4183b9cf3478f6f8
nfs41: add NFS_LAYOUT_RETRY_LAYOUTGET to layout header flags

Use it to indicate that LD wants to retry layoutget. LD can set
it whenever it wants the common pnfs code to return and retry
pnfs path through a new layout.

The bit gets cleared when client does a new layoutget, when client
closes the file (ROC case), or when kernel needs to evict the inode
(non-ROC case).

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