]> www.infradead.org Git - users/jedix/linux-maple.git/commit
debugobjects: Rework object freeing
authorThomas Gleixner <tglx@linutronix.de>
Mon, 7 Oct 2024 16:50:10 +0000 (18:50 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 15 Oct 2024 15:30:32 +0000 (17:30 +0200)
commita3b9e191f5fc11fa93176a4074a919d33d64c5fe
treeece5c2c1928115d49d70870320b584059e26aa9c
parentfb60c004f33e0fa2e87b9456b87f1b2709436b88
debugobjects: Rework object freeing

__free_object() is uncomprehensibly complex. The same can be achieved by:

   1) Adding the object to the per CPU pool

   2) If that pool is full, move a batch of objects into the global pool
      or if the global pool is full into the to free pool

This also prepares for batch processing.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Zhen Lei <thunder.leizhen@huawei.com>
Link: https://lore.kernel.org/all/20241007164913.955542307@linutronix.de
lib/debugobjects.c