Kernel: Disable big process lock for sys$dbgputstr

This syscall doesn't touch any intra-process shared resources and
already holds the global logging lock so there's no reason to hold
the big lock.
This commit is contained in:
Idan Horowitz 2021-08-06 14:33:14 +03:00 committed by Andreas Kling
parent 00818b8447
commit c7ad4c6c32
Notes: sideshowbarker 2024-07-18 07:23:54 +09:00
2 changed files with 2 additions and 2 deletions

View File

@ -146,7 +146,7 @@ enum class NeedsBigProcessLock {
S(umount, NeedsBigProcessLock::Yes) \
S(dump_backtrace, NeedsBigProcessLock::No) \
S(dbgputch, NeedsBigProcessLock::Yes) \
S(dbgputstr, NeedsBigProcessLock::Yes) \
S(dbgputstr, NeedsBigProcessLock::No) \
S(create_inode_watcher, NeedsBigProcessLock::Yes) \
S(inode_watcher_add_watch, NeedsBigProcessLock::Yes) \
S(inode_watcher_remove_watch, NeedsBigProcessLock::Yes) \

View File

@ -27,7 +27,7 @@ KResultOr<FlatPtr> Process::sys$dbgputch(u8 ch)
KResultOr<FlatPtr> Process::sys$dbgputstr(Userspace<const u8*> characters, size_t size)
{
VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this);
VERIFY_NO_PROCESS_BIG_LOCK(this);
if (size == 0)
return 0;