diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2001-01-24 10:28:19 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2001-01-24 10:28:19 +0000 |
| commit | e7d904a13a40f7a1aec1987885d82bb47d3fcee7 (patch) | |
| tree | bcd10d2f4fea096b03b5a72c43ba7892c928fef2 /sys/dev/vinum | |
| parent | 2ae8bab0b67208083ce0a48877eaac8b2d839fb8 (diff) | |
Notes
Diffstat (limited to 'sys/dev/vinum')
| -rw-r--r-- | sys/dev/vinum/vinumdaemon.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/vinum/vinumdaemon.c b/sys/dev/vinum/vinumdaemon.c index 9a04a4490374..99c1751733b4 100644 --- a/sys/dev/vinum/vinumdaemon.c +++ b/sys/dev/vinum/vinumdaemon.c @@ -69,7 +69,12 @@ vinum_daemon(void) int s; struct daemonq *request; - curproc->p_flag |= P_INMEM | P_SYSTEM; /* we're a system process */ + PROC_LOCK(curproc); + curproc->p_flag |= P_SYSTEM; /* we're a system process */ + PROC_UNLOCK(curproc); + mtx_enter(&sched_lock, MTX_SPIN); + curproc->p_sflag |= PS_INMEM; + mtx_exit(&sched_lock, MTX_SPIN); daemon_save_config(); /* start by saving the configuration */ daemonpid = curproc->p_pid; /* mark our territory */ while (1) { |
