Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't call kmem_cache_shrink from shrinker
Linux slab will automatically free empty slab when number of partial slab is over min_partial, so we don't need to explicitly shrink it. In fact, calling kmem_cache_shrink from shrinker will cause heavy contention on kmem_cache_node->list_lock, to the point that it might cause __slab_free to livelock (see openzfs#3936) Signed-off-by: Chunwei Chen <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes openzfs#3936 Closes openzfs#487
- Loading branch information