X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fptlrpc%2Fniobuf.c;h=8396d6f2292515d3be9346f0cc2b3104b98f3104;hp=0fece34a5c4299758680d324786ad547b786366d;hb=6cde14a5df781ae29da88f98a2559eb4342fe1f3;hpb=3792aa13dab69c1a8de50ea23c5a4352f9bd0f45 diff --git a/lustre/ptlrpc/niobuf.c b/lustre/ptlrpc/niobuf.c index 0fece34..8396d6f 100644 --- a/lustre/ptlrpc/niobuf.c +++ b/lustre/ptlrpc/niobuf.c @@ -208,7 +208,7 @@ int ptlrpc_start_bulk_transfer(struct ptlrpc_bulk_desc *desc) /* LU-6441: last md is not sent and desc->bd_md_count == 1 */ if (OBD_FAIL_CHECK_ORSET(OBD_FAIL_PTLRPC_CLIENT_BULK_CB3, CFS_FAIL_ONCE) && - posted_md == desc->bd_md_max_brw - 1) { + total_md > 1 && posted_md == total_md - 1) { posted_md++; continue; }