HomeFreeBSD

cache: fix a race between entry removal and demotion

Description

cache: fix a race between entry removal and demotion

The negative list shrinker can demote an entry with only hotlist + neglist
locks held. On the other hand entry removal possibly sets the NCF_DVDROP
without aformentioned locks held prior to detaching it from the respective
netlist., which can lose the update made by the shrinker.

Reported and tested by: truckman

Details

Provenance
mjgAuthored on
Parents
rS308664: hyperv/vss: Add driver and tools for VSS
Branches
Unknown
Tags
Unknown