X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fptlrpc%2Fclient.c;h=214be9c14210a14246c672cae578038ce9c60d22;hp=565f3f36d61827fa44464393391bab9829ac5b4d;hb=40ca6010734f52bd01fae48035040b1bce76519e;hpb=fed70eb27175218596dd9e21c8d68fbb0313f8b9 diff --git a/lustre/ptlrpc/client.c b/lustre/ptlrpc/client.c index 565f3f3..214be9c 100644 --- a/lustre/ptlrpc/client.c +++ b/lustre/ptlrpc/client.c @@ -1494,6 +1494,15 @@ int ptlrpc_check_set(const struct lu_env *env, struct ptlrpc_request_set *set) if (ptlrpc_client_recv_or_unlink(req) || ptlrpc_client_bulk_active(req)) continue; + /* If there is no need to resend, fail it now. */ + if (req->rq_no_resend) { + if (req->rq_status == 0) + req->rq_status = -EIO; + ptlrpc_rqphase_move(req, RQ_PHASE_INTERPRET); + GOTO(interpret, req->rq_status); + } else { + continue; + } } if (req->rq_err) {