Whamcloud - gitweb
LU-16741 osc: rename ptlrpc_req_finished for component osc 94/54694/4
authorArshad Hussain <arshad.hussain@aeoncomputing.com>
Mon, 8 Apr 2024 11:24:44 +0000 (07:24 -0400)
committerOleg Drokin <green@whamcloud.com>
Thu, 12 Sep 2024 05:53:40 +0000 (05:53 +0000)
Patch renames ptlrpc_req_finished to ptlrpc_req_put for
osc component

Test-Parameters: trivial
Signed-off-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Change-Id: Ica158cc1704ad13a10eef834555b868e7573dfb3
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54694
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Timothy Day <timday@amazon.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/osc/lproc_osc.c
lustre/osc/osc_object.c
lustre/osc/osc_quota.c
lustre/osc/osc_request.c

index 8f30ec8..60dd97c 100644 (file)
@@ -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);
        }
 
index 6b82cfe..fc728d4 100644 (file)
@@ -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);
index 6a94b18..95610c6 100644 (file)
@@ -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);
 }
index 834cf03..522d663 100644 (file)
@@ -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;