mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 17:06:31 +00:00
Kernel: Mark sys$umask as not needing the big lock
The body of this syscall is already serialized by calling with_mutable_protected_data().
This commit is contained in:
parent
6c02c493f1
commit
d8bb32117e
|
@ -189,7 +189,7 @@ enum class NeedsBigProcessLock {
|
|||
S(sync, NeedsBigProcessLock::No) \
|
||||
S(sysconf, NeedsBigProcessLock::No) \
|
||||
S(times, NeedsBigProcessLock::Yes) \
|
||||
S(umask, NeedsBigProcessLock::Yes) \
|
||||
S(umask, NeedsBigProcessLock::No) \
|
||||
S(umount, NeedsBigProcessLock::Yes) \
|
||||
S(uname, NeedsBigProcessLock::No) \
|
||||
S(unlink, NeedsBigProcessLock::No) \
|
||||
|
|
|
@ -10,7 +10,7 @@ namespace Kernel {
|
|||
|
||||
ErrorOr<FlatPtr> Process::sys$umask(mode_t mask)
|
||||
{
|
||||
VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this);
|
||||
VERIFY_NO_PROCESS_BIG_LOCK(this);
|
||||
TRY(require_promise(Pledge::stdio));
|
||||
return with_mutable_protected_data([&](auto& protected_data) -> ErrorOr<FlatPtr> {
|
||||
auto old_mask = protected_data.umask;
|
||||
|
|
Loading…
Reference in a new issue