Commit d418ffab authored by Poul-Henning Kamp's avatar Poul-Henning Kamp Committed by Martin Blix Grydeland

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

Fixes:	#1823
parent 8795c23e
......@@ -864,6 +864,11 @@ HSH_DerefObjHead(struct dstat *ds, struct objhead **poh)
oh->refcnt--;
Lck_Unlock(&oh->mtx);
return(1);
} else if (oh->waitinglist != NULL) {
Lck_Lock(&oh->mtx);
if (oh->waitinglist != NULL)
hsh_rush(ds, 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