diff options
author | peter <peter@FreeBSD.org> | 2001-12-19 01:31:12 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2001-12-19 01:31:12 +0000 |
commit | 12f2610cb5fd215c51d36de2cbe51871b7b98f5d (patch) | |
tree | 453a1928686abed90a1e485ce457ef1a21d92127 /sys/kern/kern_kthread.c | |
parent | bf71f604c6e6f5c1866c862c5a93dbc1cd482913 (diff) | |
download | FreeBSD-src-12f2610cb5fd215c51d36de2cbe51871b7b98f5d.zip FreeBSD-src-12f2610cb5fd215c51d36de2cbe51871b7b98f5d.tar.gz |
Use a different mechanism to get the vnlru process to wake up and notice
the shutdown request at reboot/halt time.
Disable the printf 'vnlru process getting nowhere, pausing...' and instead
export the count to the debug.vnlru_nowhere sysctl.
Diffstat (limited to 'sys/kern/kern_kthread.c')
-rw-r--r-- | sys/kern/kern_kthread.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/kern_kthread.c b/sys/kern/kern_kthread.c index b5ed8d4..09fcbad 100644 --- a/sys/kern/kern_kthread.c +++ b/sys/kern/kern_kthread.c @@ -149,6 +149,7 @@ kthread_suspend(struct proc *p, int timo) return (EINVAL); } SIGADDSET(p->p_siglist, SIGSTOP); + wakeup(p); return msleep(&p->p_siglist, &p->p_mtx, PPAUSE | PDROP, "suspkt", timo); } |