debugobjects: Allow object pool refill mostly in non-atomic context
Get series with b4
b4 am [email protected]Versions newest first
- v3 Latest2 patches 1 replyIn review
Changes in v3 from the cover letter
- Use deferred printk for printing the debug object disable message.
- Drop the last timer specific memory allocation disablement patch & limit memory allocation mostly to non-atomic context instead.
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | debugobjects: Show the state of debug_objects_enabledlib/ | +12 | 0 replies | |
| 2/2 | debugobjects: Allow object pool refill mostly in non-atomic contextlib/ lib/ | +12 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [PATCH v3 0/2] debugobjects: Allow object pool refill mostly in non-atomic context
v3:
- Use deferred printk for printing the debug object disable message.
- Drop the last timer specific memory allocation disablement patch & limit memory allocation mostly to non-atomic context instead.
A circular locking dependency was reported by lockdep involving printk() called from within the memory allocator, console driver with timeout capability and timer code calling debug_object_activate() doing object pool refill by allocating memory.
The original approach of disabling memory allocation for timer debug objects didn't work. Now this series try to limit memory allocation mostly to non-atomic contexts instead. This will ensure that new object allocation won't happen in contexts where a spinlock (or a raw spinlock) has been held or in a non-task context except for the init call, though a sleeping lock may still be held. This should reduce the chance of deadlock due to this kind of circular lock dependency.
Waiman Long (2):
debugobjects: Show the state of debug_objects_enabled
debugobjects: Allow object pool refill mostly in non-atomic context
lib/Kconfig.debug | 1 + lib/debugobjects.c | 34 +++++++++++++++++++++++----------- 2 files changed, 24 insertions(+), 11 deletions(-)
Signature · 1 line
2.49.0