From 96933fdb8d58ca71f6808615ca94af779d087f25 Mon Sep 17 00:00:00 2001 From: Arshad Hussain Date: Mon, 8 Apr 2024 07:24:44 -0400 Subject: [PATCH] LU-16741 osc: rename ptlrpc_req_finished for component osc Patch renames ptlrpc_req_finished to ptlrpc_req_put for osc component Test-Parameters: trivial Signed-off-by: Arshad Hussain Change-Id: Ica158cc1704ad13a10eef834555b868e7573dfb3 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54694 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Oleg Drokin Reviewed-by: Timothy Day Reviewed-by: Andreas Dilger --- lustre/osc/lproc_osc.c | 4 ++-- lustre/osc/osc_object.c | 2 +- lustre/osc/osc_quota.c | 2 +- lustre/osc/osc_request.c | 16 ++++++++-------- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/lustre/osc/lproc_osc.c b/lustre/osc/lproc_osc.c index 8f30ec8..60dd97c 100644 --- a/lustre/osc/lproc_osc.c +++ b/lustre/osc/lproc_osc.c @@ -672,7 +672,7 @@ static ssize_t idle_timeout_store(struct kobject *kobj, struct attribute *attr, req = ptlrpc_request_alloc(imp, &RQF_OST_STATFS); if (req != NULL) - ptlrpc_req_finished(req); + ptlrpc_req_put(req); } imp->imp_idle_timeout = val; } @@ -695,7 +695,7 @@ static ssize_t idle_connect_store(struct kobject *kobj, struct attribute *attr, /* to initiate the connection if it's in IDLE state */ req = ptlrpc_request_alloc(imp, &RQF_OST_STATFS); if (req) - ptlrpc_req_finished(req); + ptlrpc_req_put(req); ptlrpc_pinger_force(imp); } diff --git a/lustre/osc/osc_object.c b/lustre/osc/osc_object.c index 6b82cfe..fc728d4 100644 --- a/lustre/osc/osc_object.c +++ b/lustre/osc/osc_object.c @@ -328,7 +328,7 @@ skip_locking: memcpy(fiemap, reply, *buflen); fini_req: - ptlrpc_req_finished(req); + ptlrpc_req_put(req); drop_lock: if (mode) ldlm_lock_decref(&lockh, LCK_PR); diff --git a/lustre/osc/osc_quota.c b/lustre/osc/osc_quota.c index 6a94b18..95610c6 100644 --- a/lustre/osc/osc_quota.c +++ b/lustre/osc/osc_quota.c @@ -281,7 +281,7 @@ int osc_quotactl(struct obd_device *unused, struct obd_export *exp, } out: - ptlrpc_req_finished(req); + ptlrpc_req_put(req); RETURN(rc); } diff --git a/lustre/osc/osc_request.c b/lustre/osc/osc_request.c index 834cf03..522d663 100644 --- a/lustre/osc/osc_request.c +++ b/lustre/osc/osc_request.c @@ -134,7 +134,7 @@ static int osc_getattr(const struct lu_env *env, struct obd_export *exp, EXIT; out: - ptlrpc_req_finished(req); + ptlrpc_req_put(req); return rc; } @@ -175,7 +175,7 @@ static int osc_setattr(const struct lu_env *env, struct obd_export *exp, EXIT; out: - ptlrpc_req_finished(req); + ptlrpc_req_put(req); RETURN(rc); } @@ -374,7 +374,7 @@ static int osc_create(const struct lu_env *env, struct obd_export *exp, CDEBUG(D_HA, "transno: %lld\n", lustre_msg_get_transno(req->rq_repmsg)); out_req: - ptlrpc_req_finished(req); + ptlrpc_req_put(req); out: RETURN(rc); } @@ -676,7 +676,7 @@ static int osc_destroy(const struct lu_env *env, struct obd_export *exp, cli->cl_destroy_waitq, osc_can_send_destroy(cli)); if (rc) { - ptlrpc_req_finished(req); + ptlrpc_req_put(req); RETURN(-EINTR); } } @@ -2504,7 +2504,7 @@ static int osc_brw_redo_request(struct ptlrpc_request *request, new_aa->aa_resends = aa->aa_resends; if (aa->aa_request) { - ptlrpc_req_finished(aa->aa_request); + ptlrpc_req_put(aa->aa_request); new_aa->aa_request = ptlrpc_request_addref(new_req); } @@ -2694,7 +2694,7 @@ static int brw_interpret(const struct lu_env *env, if (aa->aa_request) { __u64 xid = ptlrpc_req_xid(req); - ptlrpc_req_finished(req); + ptlrpc_req_put(req); if (xid && lustre_msg_get_opc(req->rq_reqmsg) == OST_WRITE) { spin_lock(&cli->cl_loi_list_lock); osc_process_ar(&cli->cl_ar, xid, rc); @@ -3465,7 +3465,7 @@ static int osc_statfs(const struct lu_env *env, struct obd_export *exp, EXIT; out: - ptlrpc_req_finished(req); + ptlrpc_req_put(req); return rc; } @@ -3635,7 +3635,7 @@ int osc_set_info_async(const struct lu_env *env, struct obd_export *exp, aa = ptlrpc_req_async_args(aa, req); OBD_SLAB_ALLOC_PTR_GFP(oa, osc_obdo_kmem, GFP_NOFS); if (!oa) { - ptlrpc_req_finished(req); + ptlrpc_req_put(req); RETURN(-ENOMEM); } *oa = ((struct ost_body *)val)->oa; -- 1.8.3.1