diff options
author | Peng Tao <tao.peng@primarydata.com> | 2014-11-10 01:35:38 +0100 |
---|---|---|
committer | Tom Haynes <loghyr@primarydata.com> | 2015-02-03 20:06:48 +0100 |
commit | ceb11e13df3e78b450730c615037133c57b90c3b (patch) | |
tree | f9b179f9226e9b38c31373c6a2983f7599367da7 /fs/nfs/pnfs.h | |
parent | nfs: add nfs_pgio_current_mirror helper (diff) | |
download | linux-ceb11e13df3e78b450730c615037133c57b90c3b.tar.xz linux-ceb11e13df3e78b450730c615037133c57b90c3b.zip |
pnfs: allow LD to ask to resend read through pnfs
If current IO cannot be completed due to some transient errors,
LD may want to ask generic layer to resend the request through
pnfs again.
Signed-off-by: Peng Tao <tao.peng@primarydata.com>
Signed-off-by: Tom Haynes <loghyr@primarydata.com>
Diffstat (limited to 'fs/nfs/pnfs.h')
-rw-r--r-- | fs/nfs/pnfs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/pnfs.h b/fs/nfs/pnfs.h index a0ab81cc9cf3..84c25cd476f8 100644 --- a/fs/nfs/pnfs.h +++ b/fs/nfs/pnfs.h @@ -72,6 +72,7 @@ struct pnfs_layout_segment { enum pnfs_try_status { PNFS_ATTEMPTED = 0, PNFS_NOT_ATTEMPTED = 1, + PNFS_TRY_AGAIN = 2, }; #ifdef CONFIG_NFS_V4_1 @@ -268,6 +269,7 @@ int _pnfs_return_layout(struct inode *); int pnfs_commit_and_return_layout(struct inode *); void pnfs_ld_write_done(struct nfs_pgio_header *); void pnfs_ld_read_done(struct nfs_pgio_header *); +int pnfs_read_resend_pnfs(struct nfs_pgio_header *); struct pnfs_layout_segment *pnfs_update_layout(struct inode *ino, struct nfs_open_context *ctx, loff_t pos, |