Message ID | 1537205440-6656-5-git-send-email-jsimmons@infradead.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | lustre: first batch of fixes from lustre 2.10 | expand |
diff --git a/drivers/staging/lustre/lustre/mdc/mdc_request.c b/drivers/staging/lustre/lustre/mdc/mdc_request.c index f3c0722..116e973 100644 --- a/drivers/staging/lustre/lustre/mdc/mdc_request.c +++ b/drivers/staging/lustre/lustre/mdc/mdc_request.c @@ -904,7 +904,7 @@ static int mdc_getpage(struct obd_export *exp, const struct lu_fid *fid, MDS_BULK_PORTAL, &ptlrpc_bulk_kiov_pin_ops); if (!desc) { - ptlrpc_request_free(req); + ptlrpc_req_finished(req); return -ENOMEM; } diff --git a/drivers/staging/lustre/lustre/osc/osc_request.c b/drivers/staging/lustre/lustre/osc/osc_request.c index 7c91c4b..8024b17 100644 --- a/drivers/staging/lustre/lustre/osc/osc_request.c +++ b/drivers/staging/lustre/lustre/osc/osc_request.c @@ -655,7 +655,7 @@ static int osc_destroy(const struct lu_env *env, struct obd_export *exp, rc = l_wait_event_abortable_exclusive(cli->cl_destroy_waitq, osc_can_send_destroy(cli)); if (rc) { - ptlrpc_request_free(req); + ptlrpc_req_finished(req); return rc; } }