pNFS/flexfiles: Don't mark the entire layout as failed, when returning it
authorTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 15 Dec 2015 16:15:05 +0000 (11:15 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 28 Dec 2015 19:32:40 +0000 (14:32 -0500)
commitb9fc773ef512dd3db71560463d0e5543c35fe976
tree4bf257c06285b9366ed1f88c15cefaf88082de89
parent2e5b29f0448be9ea8da3ee0412a2043fee59e131
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>
fs/nfs/filelayout/filelayout.c
fs/nfs/pnfs.c