Commit 039f6580 authored by Martin Blix Grydeland's avatar Martin Blix Grydeland Committed by Reza Naghibi

Execute EXP_Insert after unbusy in HSH_Insert

This makes the order of events the same as on real cache insertions.
parent 0988d5f3
......@@ -299,7 +299,6 @@ HSH_Insert(struct worker *wrk, const void *digest, struct objcore *oc,
BAN_RefBan(oc, ban);
AN(oc->ban);
EXP_Insert(wrk, oc);
/* Move the object first in the oh list, unbusy it and run the
waitinglist if necessary */
......@@ -311,6 +310,8 @@ HSH_Insert(struct worker *wrk, const void *digest, struct objcore *oc,
hsh_rush1(wrk, oh, &rush, HSH_RUSH_POLICY);
Lck_Unlock(&oh->mtx);
hsh_rush2(wrk, &rush);
EXP_Insert(wrk, oc);
}
/*---------------------------------------------------------------------
......
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