Set priority of vdev_geom threads and zvol threads to PRIBIO.

This commit is contained in:
pjd 2009-08-23 11:27:08 +00:00
parent 97a1f428d9
commit 2009ac01b8
2 changed files with 8 additions and 0 deletions

View File

@ -194,6 +194,10 @@ vdev_geom_worker(void *arg)
zio_t *zio;
struct bio *bp;
thread_lock(curthread);
sched_prio(curthread, PRIBIO);
thread_unlock(curthread);
ctx = arg;
for (;;) {
mtx_lock(&ctx->gc_queue_mtx);

View File

@ -402,6 +402,10 @@ zvol_worker(void *arg)
zvol_state_t *zv;
struct bio *bp;
thread_lock(curthread);
sched_prio(curthread, PRIBIO);
thread_unlock(curthread);
zv = arg;
for (;;) {
mtx_lock(&zv->zv_queue_mtx);