diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2017-04-20 14:33:06 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2017-04-20 14:37:37 -0400 |
commit | 260f32adb88dadfaac29f47f761a088238ca164c (patch) | |
tree | f25bdb0dbcc79f35d95c41028e61a7e79d6b4a08 /fs/nfs/flexfilelayout/flexfilelayoutdev.c | |
parent | 56e0d71ef12f026d96213e45a662bde6bbff4676 (diff) |
pNFS/flexfiles: Check the result of nfs4_pnfs_ds_connect
The check in nfs4_ff_layout_prepare_ds() seems to be missing.
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Fixes: a33e4b036d461 ("pNFS: return status from nfs4_pnfs_ds_connect")
Cc: Weston Andros Adamson <dros@primarydata.com>
Cc: stable@vger.kernel.org # v4.11
Diffstat (limited to 'fs/nfs/flexfilelayout/flexfilelayoutdev.c')
-rw-r--r-- | fs/nfs/flexfilelayout/flexfilelayoutdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/flexfilelayout/flexfilelayoutdev.c b/fs/nfs/flexfilelayout/flexfilelayoutdev.c index 8ca9cc665561..6df7a0cf5660 100644 --- a/fs/nfs/flexfilelayout/flexfilelayoutdev.c +++ b/fs/nfs/flexfilelayout/flexfilelayoutdev.c | |||
@@ -421,7 +421,7 @@ nfs4_ff_layout_prepare_ds(struct pnfs_layout_segment *lseg, u32 ds_idx, | |||
421 | mirror->mirror_ds->ds_versions[0].minor_version); | 421 | mirror->mirror_ds->ds_versions[0].minor_version); |
422 | 422 | ||
423 | /* connect success, check rsize/wsize limit */ | 423 | /* connect success, check rsize/wsize limit */ |
424 | if (ds->ds_clp) { | 424 | if (!status) { |
425 | max_payload = | 425 | max_payload = |
426 | nfs_block_size(rpc_max_payload(ds->ds_clp->cl_rpcclient), | 426 | nfs_block_size(rpc_max_payload(ds->ds_clp->cl_rpcclient), |
427 | NULL); | 427 | NULL); |