Whamcloud - gitweb
LU-15503 quota: fix list entry usage 80/46380/2
authorYang Sheng <ys@whamcloud.com>
Sat, 29 Jan 2022 14:24:17 +0000 (22:24 +0800)
committerYang Sheng <ys@whamcloud.com>
Mon, 31 Jan 2022 17:27:50 +0000 (01:27 +0800)
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

lustre/quota/qsd_writeback.c
lustre/tests/conf-sanity.sh

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,
index a89897a..de12812 100644 (file)
@@ -1630,7 +1630,7 @@ t32_check() {
 t32_test_cleanup() {
        local tmp=$TMP/t32
        local facet=$SINGLEMDS
-       local rc=$?
+       local rc=0
 
        if $shall_cleanup_lustre; then
                umount $tmp/mnt/lustre || rc=$?