diff options
author | Andrew Kaster <akaster@serenityos.org> | 2021-08-22 22:06:44 -0600 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-28 20:53:38 +0200 |
commit | 72de228695f3b689825768a2cf60fe98b9c8c65d (patch) | |
tree | 93f599ac5ebd6cf3146d230d582f3b9608d79269 /Toolchain | |
parent | 4f2520674caa937dedc6572fdf310f5e0ae42074 (diff) | |
download | serenity-72de228695f3b689825768a2cf60fe98b9c8c65d.zip |
Kernel: Verify interrupts are disabled when interacting with Mutexes
This should help prevent deadlocks where a thread blocks on a Mutex
while interrupts are disabled, and makes it impossible for the holder of
the Mutex to make forward progress because it cannot be scheduled in.
Hide it behind a new debug macro LOCK_IN_CRITICAL_DEBUG for now, because
Ext2FS takes a series of Mutexes from the page fault handler, which
executes with interrupts disabled.
Diffstat (limited to 'Toolchain')
0 files changed, 0 insertions, 0 deletions