]> www.infradead.org Git - users/willy/xarray.git/commit
workqueue: Add interface for user-defined workqueue lockdep map
authorMatthew Brost <matthew.brost@intel.com>
Fri, 9 Aug 2024 22:28:25 +0000 (15:28 -0700)
committerTejun Heo <tj@kernel.org>
Tue, 13 Aug 2024 19:05:51 +0000 (09:05 -1000)
commitec0a7d44b358afaaf52856d03c72e20587bc888b
tree10b58f5bb8f6088eb6ddbb946256287abf5dc194
parent4f022f430e21e456893283036bc2ea78ac6bd2a1
workqueue: Add interface for user-defined workqueue lockdep map

Add an interface for a user-defined workqueue lockdep map, which is
helpful when multiple workqueues are created for the same purpose. This
also helps avoid leaking lockdep maps on each workqueue creation.

v2:
 - Add alloc_workqueue_lockdep_map (Tejun)
v3:
 - Drop __WQ_USER_OWNED_LOCKDEP (Tejun)
 - static inline alloc_ordered_workqueue_lockdep_map (Tejun)

Cc: Tejun Heo <tj@kernel.org>
Cc: Lai Jiangshan <jiangshanlai@gmail.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
include/linux/workqueue.h
kernel/workqueue.c