diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2003-04-22 20:01:56 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2003-04-22 20:01:56 +0000 |
| commit | eeec6bab2eb21adebaf271058599b53666dd7f83 (patch) | |
| tree | ea348fa385a95b324d1a7caec25bb96bb7f3d226 /sys/kern/sys_process.c | |
| parent | 664f718ba1d4f11463ef6ee07ec717977c209510 (diff) | |
Notes
Diffstat (limited to 'sys/kern/sys_process.c')
| -rw-r--r-- | sys/kern/sys_process.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c index eed2329d711c..b12d8a1c8eb5 100644 --- a/sys/kern/sys_process.c +++ b/sys/kern/sys_process.c @@ -82,12 +82,11 @@ #define PROC_ACTION(action) do { \ int error; \ \ - mtx_lock_spin(&sched_lock); \ + PROC_LOCK_ASSERT(td->td_proc, MA_OWNED); \ if ((td->td_proc->p_sflag & PS_INMEM) == 0) \ error = EIO; \ else \ error = (action); \ - mtx_unlock_spin(&sched_lock); \ return (error); \ } while(0) |
