1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-02 12:20:51 +00:00

Set priority of vdev_geom threads and zvol threads to PRIBIO.

This commit is contained in:
Pawel Jakub Dawidek 2009-08-23 11:27:08 +00:00
parent 1869987e42
commit 4ec2b0e7ce
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=196457
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);