]> www.infradead.org Git - users/jedix/linux-maple.git/commit
debugobjects: Dont free objects directly on CPU hotplug
authorThomas Gleixner <tglx@linutronix.de>
Mon, 7 Oct 2024 16:49:57 +0000 (18:49 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 15 Oct 2024 15:30:30 +0000 (17:30 +0200)
commita2a702383e8baa22ee66ee60f1e036835a1ef42e
treebf96953a5dde49404992c8769bb665a362346b5b
parent3f397bf9553d9f142fbfaa19713e0350803fcc31
debugobjects: Dont free objects directly on CPU hotplug

Freeing the per CPU pool of the unplugged CPU directly is suboptimal as the
objects can be reused in the real pool if there is room. Aside of that this
gets the accounting wrong.

Use the regular free path, which allows reuse and has the accounting correct.

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