mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-13 11:42:38 +03:00
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:
parent
00818b8447
commit
c7ad4c6c32
Notes:
sideshowbarker
2024-07-18 07:23:54 +09:00
Author: https://github.com/IdanHo Commit: https://github.com/SerenityOS/serenity/commit/c7ad4c6c322 Pull-request: https://github.com/SerenityOS/serenity/pull/9236 Reviewed-by: https://github.com/tomuta ✅
@ -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) \
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user