Commit 60a6aba6 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Deref the objhead if we don't return a busy object.

Most of the heavy lifting by:	slink

Fixes: #2760, #2754, #2654
parent 8ec48cf5
......@@ -460,7 +460,7 @@ HSH_Lookup(struct req *req, struct objcore **ocp, struct objcore **bocp,
}
Lck_Unlock(&oh->mtx);
*ocp = oc;
if (retval == HSH_HIT)
if (*bocp == NULL)
assert(HSH_DerefObjHead(wrk, &oh));
return (retval);
}
......
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