summaryrefslogtreecommitdiffstats
path: root/fs/nfs/pnfs.h
diff options
context:
space:
mode:
authorTrond Myklebust2015-12-28 16:28:59 +0100
committerTrond Myklebust2015-12-28 20:33:04 +0100
commitfc7ff36747b991d1be0d68987066ea87eedbb43e (patch)
treecf01e7d7075e4c1850e697b783f08659c82eca7e /fs/nfs/pnfs.h
parentNFSv4.1/pNFS: Add a helper to mark the layout as returned (diff)
downloadkernel-qcow2-linux-fc7ff36747b991d1be0d68987066ea87eedbb43e.tar.gz
kernel-qcow2-linux-fc7ff36747b991d1be0d68987066ea87eedbb43e.tar.xz
kernel-qcow2-linux-fc7ff36747b991d1be0d68987066ea87eedbb43e.zip
pNFS: If we have to delay the layout callback, mark the layout for return
If the client needs to delay the layout callback, then speed up the recall process by marking the remaining layout segments to be actively returned by the client. Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/pnfs.h')
-rw-r--r--fs/nfs/pnfs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/nfs/pnfs.h b/fs/nfs/pnfs.h
index be24a759b655..d93c2ebc0fd3 100644
--- a/fs/nfs/pnfs.h
+++ b/fs/nfs/pnfs.h
@@ -266,6 +266,9 @@ int pnfs_choose_layoutget_stateid(nfs4_stateid *dst,
int pnfs_mark_matching_lsegs_invalid(struct pnfs_layout_hdr *lo,
struct list_head *tmp_list,
struct pnfs_layout_range *recall_range);
+void pnfs_mark_matching_lsegs_return(struct pnfs_layout_hdr *lo,
+ struct list_head *tmp_list,
+ struct pnfs_layout_range *recall_range);
bool pnfs_roc(struct inode *ino);
void pnfs_roc_release(struct inode *ino);
void pnfs_roc_set_barrier(struct inode *ino, u32 barrier);