mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +00:00
No need to lock Giant around call to nanosleep1() in nanosleep().
This commit is contained in:
parent
faea679930
commit
b338d59fef
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=110288
@ -294,9 +294,7 @@ nanosleep(struct thread *td, struct nanosleep_args *uap)
|
||||
if (uap->rmtp &&
|
||||
!useracc((caddr_t)uap->rmtp, sizeof(rmt), VM_PROT_WRITE))
|
||||
return (EFAULT);
|
||||
mtx_lock(&Giant);
|
||||
error = nanosleep1(td, &rqt, &rmt);
|
||||
mtx_unlock(&Giant);
|
||||
if (error && uap->rmtp) {
|
||||
int error2;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user