HomeFreeBSD

cache: manage negative entry list with a dedicated lock

Description

cache: manage negative entry list with a dedicated lock

Since negative entries are managed with a LRU list, a hit requires a
modificaton.

Currently the code tries to upgrade the global lock if needed and is
forced to retry the lookup if it fails.

Provide a dedicated lock for use when the cache is only shared-locked.

Reviewed by: kib
MFC after: 1 week

Details

Provenance
mjgAuthored on
Reviewer
kib
Parents
rS305378: cache: put all negative entry management code into dedicated functions
Branches
Unknown
Tags
Unknown