Commit 68e262a7 authored by Martin Blix Grydeland's avatar Martin Blix Grydeland Committed by Dridi Boukelmoune

Execute EXP_Insert after unbusy in HSH_Insert

This makes the order of events the same as on real cache insertions.
parent 7050ccee
......@@ -310,7 +310,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 */
......@@ -322,6 +321,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