• Poul-Henning Kamp's avatar
    Split the expire lock into expire and per-lru list locks. · 195fa50c
    Poul-Henning Kamp authored
    The lock order is lru->exp lock, so that the timer_index
    can be safely examined while holding only the lru lock,
    eliminating the need for the separate OC_F_ONLRU flag.
    
    The critical trick is that in EXP_Touch() the lru_lock
    is sufficient:  We just move the object around on the
    lru list, we don't add or delete it.
    
    This hopefully reduces lock contention on these locks.
    195fa50c
Name
Last commit
Last update
bin Loading commit data...
doc Loading commit data...
etc Loading commit data...
include Loading commit data...
lib Loading commit data...
m4 Loading commit data...
man Loading commit data...
redhat Loading commit data...
.gitignore Loading commit data...
ChangeLog Loading commit data...
INSTALL Loading commit data...
LICENSE Loading commit data...
Makefile.am Loading commit data...
README Loading commit data...
autogen.des Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
varnishapi.pc.in Loading commit data...