summaryrefslogtreecommitdiffstats
path: root/sys/geom/raid3/g_raid3.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2004-12-30 20:29:58 +0000
committerjhb <jhb@FreeBSD.org>2004-12-30 20:29:58 +0000
commit7b611b0cb22347b6dcb39cb97b7826908f188d10 (patch)
tree3db78404a3bf8319128dcd14795f6b1149c927aa /sys/geom/raid3/g_raid3.c
parent5624553de421f01520096aaaedc63434e38c8e31 (diff)
downloadFreeBSD-src-7b611b0cb22347b6dcb39cb97b7826908f188d10.zip
FreeBSD-src-7b611b0cb22347b6dcb39cb97b7826908f188d10.tar.gz
Stop explicitly touching td_base_pri outside of the scheduler and simply
set a thread's priority via sched_prio() when that is the desired action. The schedulers will start managing td_base_pri internally shortly.
Diffstat (limited to 'sys/geom/raid3/g_raid3.c')
-rw-r--r--sys/geom/raid3/g_raid3.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/geom/raid3/g_raid3.c b/sys/geom/raid3/g_raid3.c
index 5dbf94b..939eeb3 100644
--- a/sys/geom/raid3/g_raid3.c
+++ b/sys/geom/raid3/g_raid3.c
@@ -43,6 +43,7 @@ __FBSDID("$FreeBSD$");
#include <geom/geom.h>
#include <sys/proc.h>
#include <sys/kthread.h>
+#include <sys/sched.h>
#include <geom/raid3/g_raid3.h>
@@ -1729,7 +1730,9 @@ g_raid3_worker(void *arg)
u_int nreqs;
sc = arg;
- curthread->td_base_pri = PRIBIO;
+ mtx_lock_spin(&sched_lock);
+ sched_prio(curthread, PRIBIO);
+ mtx_unlock_spin(&sched_lock);
nreqs = 0;
for (;;) {
OpenPOWER on IntegriCloud