diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2004-12-30 20:29:58 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2004-12-30 20:29:58 +0000 |
| commit | 63710c4d35ceb301e9f8af073aac89e95c1fe66b (patch) | |
| tree | 3db78404a3bf8319128dcd14795f6b1149c927aa /sys/dev | |
| parent | 753d1af16593d9609a8e8872a4eb11cadb35765c (diff) | |
Notes
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/md/md.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c index 8c35d8561df81..550fd5fffb168 100644 --- a/sys/dev/md/md.c +++ b/sys/dev/md/md.c @@ -71,6 +71,7 @@ #include <sys/namei.h> #include <sys/proc.h> #include <sys/queue.h> +#include <sys/sched.h> #include <sys/sf_buf.h> #include <sys/sysctl.h> #include <sys/vnode.h> @@ -618,7 +619,9 @@ md_kthread(void *arg) int error, hasgiant; sc = arg; - curthread->td_base_pri = PRIBIO; + mtx_lock_spin(&sched_lock); + sched_prio(curthread, PRIBIO); + mtx_unlock_spin(&sched_lock); switch (sc->type) { case MD_VNODE: |
