• Martin Blix Grydeland's avatar
    Repurpose OC_EF_REFD flag slightly · 7050ccee
    Martin Blix Grydeland authored
    The OC_EF_REFD flag indicates whether expiry has a ref on the
    OC. Previously, the flag was only gained during the call to
    EXP_Insert. With this patch, and the helper function EXP_RefNewObjcore(),
    the flag is gained while holding the objhead mutex during
    HSH_Unbusy(). This enables the expiry functions to test on missing
    OC_EF_REFD and quickly return without having to take the main expiry
    mutex.
    7050ccee
cache_expire.c 10.5 KB