public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] Minor memory size optimization in debugobjects
@ 2024-08-21 23:05 Woody Zhang
  2024-08-21 23:05 ` [PATCH 1/5] bit_spinlock: add irq variant for bit spinlock API Woody Zhang
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Woody Zhang @ 2024-08-21 23:05 UTC (permalink / raw)
  To: Thomas Gleixner, Andrew Morton; +Cc: linux-kernel, Woody Zhang

As of now, debugobjects framework uses hlist_head and separate spinlock
as a hash table bucket. We have hlist_bl_head APIs which embeds a
bit_spinlock in head pointer and thus no separate spinlock is required.

This patchset first wraps irq variant API for bit_spinlock as well as
hlist_bl_lock and several other APIs and macros. Lastly, It replaces
hlist APIs with hlist_bl counterparts.

Woody Zhang (5):
  bit_spinlock: add irq variant for bit spinlock API
  list_bl: add irq variant for hlist_bl lock API
  list_bl: remove lock check in hlist_bl_set_first
  list_bl: add hlist_bl_move_list and two macros
  debugobjects: use list_bl to save memory for hash slot spinlocks

 include/linux/bit_spinlock.h |  37 +++++
 include/linux/debugobjects.h |   4 +-
 include/linux/list_bl.h      |  40 ++++-
 lib/debugobjects.c           | 288 +++++++++++++++++------------------
 4 files changed, 217 insertions(+), 152 deletions(-)

-- 
2.45.2


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-08-22 10:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-21 23:05 [PATCH 0/5] Minor memory size optimization in debugobjects Woody Zhang
2024-08-21 23:05 ` [PATCH 1/5] bit_spinlock: add irq variant for bit spinlock API Woody Zhang
2024-08-21 23:05 ` [PATCH 2/5] list_bl: add irq variant for hlist_bl lock API Woody Zhang
2024-08-21 23:05 ` [PATCH 3/5] list_bl: remove lock check in hlist_bl_set_first Woody Zhang
2024-08-21 23:05 ` [PATCH 4/5] list_bl: add hlist_bl_move_list and two macros Woody Zhang
2024-08-21 23:05 ` [PATCH 5/5] debugobjects: use list_bl to save memory for hash slot spinlocks Woody Zhang
2024-08-22  0:11 ` [PATCH 0/5] Minor memory size optimization in debugobjects Thomas Gleixner
2024-08-22 10:26   ` Woody Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox