HomeFreeBSD

Fix accounting for the negative cache entries when reusing v_cache_dd.

Description

Fix accounting for the negative cache entries when reusing v_cache_dd.
Having ncneg diverge with the actual length of the ncneg tailq causes
NULL dereference.

Add assertion that an entry taken from ncneg queue is indeed negative.

Reported by and discussed with: avg
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

Details

Provenance
kibAuthored on Dec 27 2013, 5:09 PM
Parents
rGe136eac2242d: Revert r259200. There are geoms/drivers which do not update
Branches
Unknown
Tags
Unknown

Event Timeline