From: Arshad Hussain Date: Thu, 2 May 2024 11:11:06 +0000 (-0400) Subject: LU-16741 quota: rename ptlrpc_req_finished for component quota X-Git-Tag: 2.15.64~200 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=32579869e444b7b1aa40b75152bd072711490a9a;p=fs%2Flustre-release.git LU-16741 quota: rename ptlrpc_req_finished for component quota Patch renames ptlrpc_req_finished to ptlrpc_req_put for quota component Test-Parameters: trivial Signed-off-by: Arshad Hussain Change-Id: I7e671d68be8c0209a7439dc9762b5b10039aa0a3 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54990 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Patrick Farrell Reviewed-by: Oleg Drokin --- diff --git a/lustre/quota/qsd_request.c b/lustre/quota/qsd_request.c index 26c308a..4ed5c2f 100644 --- a/lustre/quota/qsd_request.c +++ b/lustre/quota/qsd_request.c @@ -129,7 +129,7 @@ int qsd_send_dqacq(const struct lu_env *env, struct obd_export *exp, if (sync) { rc = ptlrpc_queue_wait(req); rc = qsd_dqacq_interpret(env, req, aa, rc); - ptlrpc_req_finished(req); + ptlrpc_req_put(req); } else { req->rq_interpret_reply = qsd_dqacq_interpret; ptlrpcd_add_req(req); @@ -291,7 +291,7 @@ int qsd_intent_lock(const struct lu_env *env, struct obd_export *exp, &flags, (void *)lvb, sizeof(*lvb), LVB_T_LQUOTA, &qti->qti_lockh, 1); if (rc < 0) { - ptlrpc_req_finished(req); + ptlrpc_req_put(req); GOTO(out, rc); } @@ -305,7 +305,7 @@ int qsd_intent_lock(const struct lu_env *env, struct obd_export *exp, lock = ldlm_handle2lock(&qti->qti_lockh); if (lock == NULL) { - ptlrpc_req_finished(req); + ptlrpc_req_put(req); GOTO(out, rc = -ENOLCK); } lu_ref_add(&qqi->qqi_reference, "glb_lock", lock); @@ -337,7 +337,7 @@ int qsd_intent_lock(const struct lu_env *env, struct obd_export *exp, /* send lock enqueue request and wait for completion */ rc = ptlrpc_queue_wait(req); rc = qsd_intent_interpret(env, req, aa, rc); - ptlrpc_req_finished(req); + ptlrpc_req_put(req); } else { /* queue lock request and return */ req->rq_interpret_reply = qsd_intent_interpret; @@ -429,6 +429,6 @@ int qsd_fetch_index(const struct lu_env *env, struct obd_export *exp, EXIT; out: - ptlrpc_req_finished(req); + ptlrpc_req_put(req); return rc; }