HomeFreeBSD

cache: make negative list shrinking a little bit concurrent

Description

cache: make negative list shrinking a little bit concurrent

Continue protecting demotion from the hotlist and selection of the
target list with the ncneg_shrink_lock lock, but drop it before
relocking to zap the node.

While here count how many times we skipped shrinking due to the lock
being already taken.

Sponsored by: The FreeBSD Foundation

Details

Provenance
mjgAuthored on
Parents
rS352810: cache: stop recalculating upper limit each time a new entry is added
Branches
Unknown
Tags
Unknown