]> www.infradead.org Git - users/jedix/linux-maple.git/commit
debugobjects: Move pools into a datastructure
authorThomas Gleixner <tglx@linutronix.de>
Mon, 7 Oct 2024 16:50:04 +0000 (18:50 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 15 Oct 2024 15:30:31 +0000 (17:30 +0200)
commite18328ff705270d1e53889ea9d79dce86d1b8786
tree98181a84610006eaa999d444fed9f2295dcd95b8
parentd8c6cd3a5c8008f5d42c7763a93b43d7f3a40e94
debugobjects: Move pools into a datastructure

The contention on the global pool lock can be reduced by strict batch
processing where batches of objects are moved from one list head to another
instead of moving them object by object. This also reduces the cache
footprint because it avoids the list walk and dirties at maximum three
cache lines instead of potentially up to eighteen.

To prepare for that, move the hlist head and related counters into a
struct.

No functional change.

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