Whamcloud - gitweb
LU-15503 quota: fix list entry usage 80/46380/5
authorYang Sheng <ys@whamcloud.com>
Sat, 29 Jan 2022 14:24:17 +0000 (22:24 +0800)
committerOleg Drokin <green@whamcloud.com>
Mon, 7 Feb 2022 04:43:52 +0000 (04:43 +0000)
Fetch next list entry.

Fixes: d527e81246 (LU-15283 quota: deadlock between reint & lquota_wb)
Signed-off-by: Yang Sheng <ys@whamcloud.com>
Change-Id: I86befdfaa96151a6fd61902ffbf43ee8e5cae8cb
Reviewed-on: https://review.whamcloud.com/46380
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/quota/qsd_writeback.c

index 58f0629..9f36287 100644 (file)
@@ -530,8 +530,8 @@ static int qsd_upd_thread(void *_args)
                                break;
                        count++;
                        if (count % 7 == 0) {
-                               n = list_entry(&queue, struct qsd_upd_rec,
-                                              qur_link);
+                               n = list_first_entry(&queue, struct qsd_upd_rec,
+                                                    qur_link);
                                CWARN("%s: The reintegration thread [%d] "
                                      "blocked more than %ld seconds\n",
                                      n->qur_qqi->qqi_qsd->qsd_svname,