Commit b2ee5677 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp Committed by Lasse Karstensen

Rush the objheader if there is a waiting list when it is deref'ed.

Fixes:	#1823
parent 8ba2781e
......@@ -820,6 +820,10 @@ HSH_DerefObjHead(struct worker *wrk, struct objhead **poh)
oh->refcnt--;
Lck_Unlock(&oh->mtx);
return(1);
} else if (oh->waitinglist != NULL) {
Lck_Lock(&oh->mtx);
hsh_rush(wrk, oh);
Lck_Unlock(&oh->mtx);
}
assert(oh->refcnt > 0);
......
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