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>
break;
count++;
if (count % 7 == 0) {
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,
CWARN("%s: The reintegration thread [%d] "
"blocked more than %ld seconds\n",
n->qur_qqi->qqi_qsd->qsd_svname,