mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 01:22:43 +00:00 
			
		
		
		
	Kernel: Mark sys$fstat() as not needing the big lock
This syscall doesn't access any data that was implicitly protected by the big lock.
This commit is contained in:
		
							parent
							
								
									23822febd2
								
							
						
					
					
						commit
						be7ec52ed0
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		|  | @ -76,7 +76,7 @@ enum class NeedsBigProcessLock { | |||
|     S(fchown, NeedsBigProcessLock::Yes)                     \ | ||||
|     S(fcntl, NeedsBigProcessLock::Yes)                      \ | ||||
|     S(fork, NeedsBigProcessLock::Yes)                       \ | ||||
|     S(fstat, NeedsBigProcessLock::Yes)                      \ | ||||
|     S(fstat, NeedsBigProcessLock::No)                       \ | ||||
|     S(fstatvfs, NeedsBigProcessLock::Yes)                   \ | ||||
|     S(fsync, NeedsBigProcessLock::Yes)                      \ | ||||
|     S(ftruncate, NeedsBigProcessLock::Yes)                  \ | ||||
|  |  | |||
|  | @ -13,7 +13,7 @@ namespace Kernel { | |||
| 
 | ||||
| ErrorOr<FlatPtr> Process::sys$fstat(int fd, Userspace<stat*> user_statbuf) | ||||
| { | ||||
|     VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this) | ||||
|     VERIFY_NO_PROCESS_BIG_LOCK(this); | ||||
|     TRY(require_promise(Pledge::stdio)); | ||||
|     auto description = TRY(open_file_description(fd)); | ||||
|     auto buffer = TRY(description->stat()); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling