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:
parent
1869987e42
commit
4ec2b0e7ce
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=196457
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user