diff options
author | Zhen Lei <thunder.leizhen@huawei.com> | 2024-09-04 21:39:40 +0800 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2024-09-09 16:40:25 +0200 |
commit | 684d28feb8546d1e9597aa363c3bfcf52fe250b7 (patch) | |
tree | 4634005d714007ba09798b7645e905ec13ecb59a /net/ax25/ax25_route.c | |
parent | e4757c710ba27a1d499cf5941fc3950e9e542731 (diff) |
debugobjects: Fix conditions in fill_pool()
fill_pool() uses 'obj_pool_min_free' to decide whether objects should be
handed back to the kmem cache. But 'obj_pool_min_free' records the lowest
historical value of the number of objects in the object pool and not the
minimum number of objects which should be kept in the pool.
Use 'debug_objects_pool_min_level' instead, which holds the minimum number
which was scaled to the number of CPUs at boot time.
[ tglx: Massage change log ]
Fixes: d26bf5056fc0 ("debugobjects: Reduce number of pool_lock acquisitions in fill_pool()")
Fixes: 36c4ead6f6df ("debugobjects: Add global free list and the counter")
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/all/20240904133944.2124-3-thunder.leizhen@huawei.com
Diffstat (limited to 'net/ax25/ax25_route.c')
0 files changed, 0 insertions, 0 deletions