]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
cache: create a dedicate struct for negative entries
authormjg <mjg@FreeBSD.org>
Tue, 14 Jul 2020 21:14:59 +0000 (21:14 +0000)
committermjg <mjg@FreeBSD.org>
Tue, 14 Jul 2020 21:14:59 +0000 (21:14 +0000)
commitc63de25e8ef040aa7552b3ffb92a952c7d7e9864
tree1fe6cd440e5213af3e777de865537bae3bcb202c
parent9715dcabfeaf1f54ec65938bfdc01c489fb2f202
cache: create a dedicate struct for negative entries

.. and stuff if into the unused target vnode field

This gets rid of concurrent nc_flag modifications racing with the
shrinker and consequently fixes a bug where such a change could have
been missed when cache_ncp_invalidate was being issued..

Reported by: zeising
Tested by: pho, zeising
Fixes: r362828 ("cache: lockless forward lookup with smr")
sys/kern/vfs_cache.c