Kernel: Mark sys$get_dir_entries as not needing the big lock

After examination of all overriden Inode::traverse_as_directory methods
it seems like proper locking is already existing everywhere, so there's
no need to take the big process lock anymore, as there's no access to
shared process structures anyway.
This commit is contained in:
Liav A 2023-05-26 14:08:40 +03:00 committed by Andreas Kling
commit 8142f7b196
Notes: sideshowbarker 2024-07-17 22:01:16 +09:00
2 changed files with 2 additions and 2 deletions

View file

@ -86,7 +86,7 @@ enum class NeedsBigProcessLock {
S(ftruncate, NeedsBigProcessLock::No) \
S(futex, NeedsBigProcessLock::Yes) \
S(futimens, NeedsBigProcessLock::No) \
S(get_dir_entries, NeedsBigProcessLock::Yes) \
S(get_dir_entries, NeedsBigProcessLock::No) \
S(get_root_session_id, NeedsBigProcessLock::No) \
S(get_stack_bounds, NeedsBigProcessLock::No) \
S(get_thread_name, NeedsBigProcessLock::No) \