Re: [PATCH] slab, slub: skip unnecessary kasan_cache_shutdown()
From: Christopher Lameter
Date: Wed Mar 28 2018 - 18:00:54 EST
On Tue, 27 Mar 2018, Shakeel Butt wrote:
> The kasan quarantine is designed to delay freeing slab objects to catch
> use-after-free. The quarantine can be large (several percent of machine
> memory size). When kmem_caches are deleted related objects are flushed
> from the quarantine but this requires scanning the entire quarantine
> which can be very slow. We have seen the kernel busily working on this
> while holding slab_mutex and badly affecting cache_reaper, slabinfo
> readers and memcg kmem cache creations.
Acked-by: Christoph Lameter <cl@xxxxxxxxx>