pNFS/flexfiles: Check the result of nfs4_pnfs_ds_connect
Subsystems (2)
PATCH 1/1 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 <[email protected]>
Fixes a33e4b036d461 ("pNFS: return status from nfs4_pnfs_ds_connect")
Cc Weston Andros Adamson <[email protected]>
Cc [email protected] # v4.11
--- fs/nfs/flexfilelayout/flexfilelayoutdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/nfs/flexfilelayout/flexfilelayoutdev.c +1 -1
@@ -421,7 +421,7 @@ nfs4_ff_layout_prepare_ds(struct pnfs_layout_segment *lseg, u32 ds_idx, mirror->mirror_ds->ds_versions[0].minor_version);/* connect success, check rsize/wsize limit */ -if (ds->ds_clp) { +if (!status) { max_payload =nfs_block_size (rpc_max_payload (ds->ds_clp->cl_rpcclient),NULL );
Signature · 1 line
2.9.3