mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +00:00
Kernel: Mark sys$prctl() as not needing the big lock
This syscall has sufficient locking and therefore it doesn't need the big lock being taken.
This commit is contained in:
parent
41980675f2
commit
8a50c967b8
Notes:
sideshowbarker
2024-07-17 06:51:40 +09:00
Author: https://github.com/supercomputer7 Commit: https://github.com/SerenityOS/serenity/commit/8a50c967b8 Pull-request: https://github.com/SerenityOS/serenity/pull/17617
2 changed files with 2 additions and 2 deletions
|
@ -136,7 +136,7 @@ enum class NeedsBigProcessLock {
|
|||
S(pledge, NeedsBigProcessLock::No) \
|
||||
S(poll, NeedsBigProcessLock::Yes) \
|
||||
S(posix_fallocate, NeedsBigProcessLock::No) \
|
||||
S(prctl, NeedsBigProcessLock::Yes) \
|
||||
S(prctl, NeedsBigProcessLock::No) \
|
||||
S(profiling_disable, NeedsBigProcessLock::Yes) \
|
||||
S(profiling_enable, NeedsBigProcessLock::Yes) \
|
||||
S(profiling_free_buffer, NeedsBigProcessLock::Yes) \
|
||||
|
|
|
@ -11,7 +11,7 @@ namespace Kernel {
|
|||
|
||||
ErrorOr<FlatPtr> Process::sys$prctl(int option, FlatPtr arg1, [[maybe_unused]] FlatPtr arg2)
|
||||
{
|
||||
VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this);
|
||||
VERIFY_NO_PROCESS_BIG_LOCK(this);
|
||||
return with_mutable_protected_data([&](auto& protected_data) -> ErrorOr<FlatPtr> {
|
||||
switch (option) {
|
||||
case PR_GET_DUMPABLE:
|
||||
|
|
Loading…
Reference in a new issue