Skip to content

Commit 260f32a

Browse files
committed
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: a33e4b0 ("pNFS: return status from nfs4_pnfs_ds_connect") Cc: Weston Andros Adamson <dros@primarydata.com> Cc: stable@vger.kernel.org # v4.11
1 parent 56e0d71 commit 260f32a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/nfs/flexfilelayout/flexfilelayoutdev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ nfs4_ff_layout_prepare_ds(struct pnfs_layout_segment *lseg, u32 ds_idx,
421421
mirror->mirror_ds->ds_versions[0].minor_version);
422422

423423
/* connect success, check rsize/wsize limit */
424-
if (ds->ds_clp) {
424+
if (!status) {
425425
max_payload =
426426
nfs_block_size(rpc_max_payload(ds->ds_clp->cl_rpcclient),
427427
NULL);

0 commit comments

Comments
 (0)