diff options
author | 2024-06-13 01:00:52 -0400 | |
---|---|---|
committer | 2024-07-08 13:47:26 -0400 | |
commit | bbbff6d5edd1079b9984da927d9cd4d49095fca9 (patch) | |
tree | 1c950dcb6ea8820676786b773218c3cafd5ab263 /fs/nfs/pnfs.h | |
parent | NFSv4/pNFS: Handle server reboots in pnfs_poc_release() (diff) | |
download | wireguard-linux-bbbff6d5edd1079b9984da927d9cd4d49095fca9.tar.xz wireguard-linux-bbbff6d5edd1079b9984da927d9cd4d49095fca9.zip |
NFSv4/pNFS: Retry the layout return later in case of a timeout or reboot
If the layout return failed due to a timeout or reboot, then leave the
layout segments on the list so that the layout return gets replayed
later.
The exception would be if we're freeing the inode.
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to '')
-rw-r--r-- | fs/nfs/pnfs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/nfs/pnfs.h b/fs/nfs/pnfs.h index 8fa0f152ed19..cd23a38eac75 100644 --- a/fs/nfs/pnfs.h +++ b/fs/nfs/pnfs.h @@ -328,6 +328,9 @@ struct pnfs_layout_segment *pnfs_update_layout(struct inode *ino, enum pnfs_iomode iomode, bool strict_iomode, gfp_t gfp_flags); +void pnfs_layoutreturn_retry_later(struct pnfs_layout_hdr *lo, + const nfs4_stateid *arg_stateid, + const struct pnfs_layout_range *range); void pnfs_layoutreturn_free_lsegs(struct pnfs_layout_hdr *lo, const nfs4_stateid *arg_stateid, const struct pnfs_layout_range *range, |