Commit d8ac05a3 authored by Lasse Karstensen's avatar Lasse Karstensen

Handle missing waiting list gracefully.

In 5c826806 the checks are relaxed,
but this commit (or part of) was not brought into 4.1.

Fixes: #1842
parent 1fd0d394
......@@ -523,7 +523,9 @@ hsh_rush(struct worker *wrk, struct objhead *oh)
CHECK_OBJ_NOTNULL(oh, OBJHEAD_MAGIC);
Lck_AssertHeld(&oh->mtx);
wl = oh->waitinglist;
CHECK_OBJ_NOTNULL(wl, WAITINGLIST_MAGIC);
CHECK_OBJ_ORNULL(wl, WAITINGLIST_MAGIC);
if (wl == NULL)
return;
for (u = 0; u < cache_param->rush_exponent; u++) {
req = VTAILQ_FIRST(&wl->list);
if (req == NULL)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment