diff options
| author | Mark Johnston <markj@FreeBSD.org> | 2026-06-05 16:28:18 +0000 |
|---|---|---|
| committer | Mark Johnston <markj@FreeBSD.org> | 2026-06-05 16:54:59 +0000 |
| commit | 2404d8d741f281e445233f86b0734d6dcf02c173 (patch) | |
| tree | 65903ea28ca17df6346204656dd1f5b5ed856020 | |
| parent | 77fdeba18c07e243ea1e20916ee0dc31b9d6ac32 (diff) | |
linux: Drop unneeded PHOLDs
There's no point in acquiring a hold if the proc lock isn't going to be
dropped.
Reviewed by: kib
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D57468
| -rw-r--r-- | sys/i386/linux/linux_ptrace_machdep.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/i386/linux/linux_ptrace_machdep.c b/sys/i386/linux/linux_ptrace_machdep.c index 8d88f8540fd5..92f382d01439 100644 --- a/sys/i386/linux/linux_ptrace_machdep.c +++ b/sys/i386/linux/linux_ptrace_machdep.c @@ -377,10 +377,8 @@ linux_ptrace(struct thread *td, struct linux_ptrace_args *uap) } if (req == PTRACE_GETFPXREGS) { - _PHOLD(p); /* may block */ td2 = FIRST_THREAD_IN_PROC(p); error = linux_proc_read_fpxregs(td2, &r.fpxreg); - _PRELE(p); PROC_UNLOCK(p); if (error == 0) error = copyout(&r.fpxreg, (void *)uap->data, @@ -388,10 +386,8 @@ linux_ptrace(struct thread *td, struct linux_ptrace_args *uap) } else { /* clear dangerous bits exactly as Linux does*/ r.fpxreg.mxcsr &= 0xffbf; - _PHOLD(p); /* may block */ td2 = FIRST_THREAD_IN_PROC(p); error = linux_proc_write_fpxregs(td2, &r.fpxreg); - _PRELE(p); PROC_UNLOCK(p); } break; |
