diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-12-15 11:15:05 -0500 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-12-28 14:32:40 -0500 |
commit | b9fc773ef512dd3db71560463d0e5543c35fe976 (patch) | |
tree | 4bf257c06285b9366ed1f88c15cefaf88082de89 /fs/nfs/filelayout/filelayout.c | |
parent | 2e5b29f0448be9ea8da3ee0412a2043fee59e131 (diff) | |
download | op-kernel-dev-b9fc773ef512dd3db71560463d0e5543c35fe976.zip op-kernel-dev-b9fc773ef512dd3db71560463d0e5543c35fe976.tar.gz |
pNFS/flexfiles: Don't mark the entire layout as failed, when returning it
In pNFS/flexfiles, we want to return the layout without necessarily marking
it as having completely failed. We therefore move the call to
pnfs_layout_io_set_failed() out of pnfs_error_mark_layout_for_return(),
and then ensura that pNFS/files layout calls it separately.
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/filelayout/filelayout.c')
-rw-r--r-- | fs/nfs/filelayout/filelayout.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/filelayout/filelayout.c b/fs/nfs/filelayout/filelayout.c index ae07b0f..bb1f4e7 100644 --- a/fs/nfs/filelayout/filelayout.c +++ b/fs/nfs/filelayout/filelayout.c @@ -202,6 +202,7 @@ static int filelayout_async_handle_error(struct rpc_task *task, task->tk_status); nfs4_mark_deviceid_unavailable(devid); pnfs_error_mark_layout_for_return(inode, lseg); + pnfs_set_lo_fail(lseg); rpc_wake_up(&tbl->slot_tbl_waitq); /* fall through */ default: |