Whamcloud - gitweb
LU-18241 osc: skip repmsg processing in case of error 38/56438/2
authorHongchao Zhang <hongchao@whamcloud.com>
Mon, 26 Aug 2024 00:06:22 +0000 (08:06 +0800)
committerOleg Drokin <green@whamcloud.com>
Mon, 2 Dec 2024 05:50:20 +0000 (05:50 +0000)
If the request has failed, the repmsg processing in osc_quotactl
should be skipped.

Signed-off-by: Hongchao Zhang <hongchao@whamcloud.com>
Change-Id: I0f4c6db93888b1000e6993411aeb3a147f05f5db
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/56438
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Sergey Cheremencev <scherementsev@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/osc/osc_quota.c

index 5d69461..c5a39f3 100644 (file)
@@ -220,7 +220,7 @@ int osc_quotactl(struct obd_device *unused, struct obd_export *exp,
         if (rc)
                 CERROR("ptlrpc_queue_wait failed, rc: %d\n", rc);
 
-       if (req->rq_repmsg) {
+       if (rc == 0 && req->rq_repmsg) {
                struct list_head *lst = (struct list_head *)oqctl->qc_iter_list;
 
                oqc = req_capsule_server_get(&req->rq_pill, &RMF_OBD_QUOTACTL);