From 6baa3e87a4a7c77b2198aebbcb75959b93476da0 Mon Sep 17 00:00:00 2001 From: Hongchao Zhang Date: Mon, 26 Aug 2024 08:06:22 +0800 Subject: [PATCH] LU-18241 osc: skip repmsg processing in case of error If the request has failed, the repmsg processing in osc_quotactl should be skipped. Signed-off-by: Hongchao Zhang Change-Id: I0f4c6db93888b1000e6993411aeb3a147f05f5db Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/56438 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Sergey Cheremencev Reviewed-by: Andreas Dilger Reviewed-by: Oleg Drokin --- lustre/osc/osc_quota.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/osc/osc_quota.c b/lustre/osc/osc_quota.c index 5d69461..c5a39f3 100644 --- a/lustre/osc/osc_quota.c +++ b/lustre/osc/osc_quota.c @@ -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); -- 1.8.3.1