summaryrefslogtreecommitdiff
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorDaiane Angolini <daiane.angolini@foundries.io>2025-01-03 10:59:26 -0300
committerDaiane Angolini <daiane.angolini@foundries.io>2025-01-03 10:59:26 -0300
commitc930b7842cfd5ccbb315735a35aa2011be20e5f7 (patch)
treeb0738739d89671e4794526fc2a3def9f0dcdbadb /lib/debugobjects.c
parente1778dcaa00e0c13013abe353f88ae40047d8ff3 (diff)
parent63a57420cf797edcfca41005dd6c805b77cfb596 (diff)
Merge tag 'v6.6.54' into 6.6-2.2.x-imx
This is the 6.6.54 stable release Signed-off-by: Daiane Angolini <daiane.angolini@foundries.io>
Diffstat (limited to 'lib/debugobjects.c')
-rw-r--r--lib/debugobjects.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/debugobjects.c b/lib/debugobjects.c
index c90834a209b5..9d401355d560 100644
--- a/lib/debugobjects.c
+++ b/lib/debugobjects.c
@@ -141,13 +141,14 @@ static void fill_pool(void)
* READ_ONCE()s pair with the WRITE_ONCE()s in pool_lock critical
* sections.
*/
- while (READ_ONCE(obj_nr_tofree) && (READ_ONCE(obj_pool_free) < obj_pool_min_free)) {
+ while (READ_ONCE(obj_nr_tofree) &&
+ READ_ONCE(obj_pool_free) < debug_objects_pool_min_level) {
raw_spin_lock_irqsave(&pool_lock, flags);
/*
* Recheck with the lock held as the worker thread might have
* won the race and freed the global free list already.
*/
- while (obj_nr_tofree && (obj_pool_free < obj_pool_min_free)) {
+ while (obj_nr_tofree && (obj_pool_free < debug_objects_pool_min_level)) {
obj = hlist_entry(obj_to_free.first, typeof(*obj), node);
hlist_del(&obj->node);
WRITE_ONCE(obj_nr_tofree, obj_nr_tofree - 1);