diff options
author | pjd <pjd@FreeBSD.org> | 2010-04-15 16:34:06 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2010-04-15 16:34:06 +0000 |
commit | 1e56ad0204a47f5efcdf93ba6846ce1a86ef0a61 (patch) | |
tree | 3f9b8966cab5d21321706319ae14e3c412dde882 /sys/geom/eli/g_eli.c | |
parent | 6f9b9b66713e64172ef432706bac97f237fbd29d (diff) | |
download | FreeBSD-src-1e56ad0204a47f5efcdf93ba6846ce1a86ef0a61.zip FreeBSD-src-1e56ad0204a47f5efcdf93ba6846ce1a86ef0a61.tar.gz |
Use lower priority for GELI worker threads. This improves system
responsiveness under heavy GELI load.
MFC after: 3 days
Diffstat (limited to 'sys/geom/eli/g_eli.c')
-rw-r--r-- | sys/geom/eli/g_eli.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/geom/eli/g_eli.c b/sys/geom/eli/g_eli.c index 2a405c5b..a3746c0 100644 --- a/sys/geom/eli/g_eli.c +++ b/sys/geom/eli/g_eli.c @@ -340,7 +340,7 @@ g_eli_worker(void *arg) } #endif thread_lock(curthread); - sched_prio(curthread, PRIBIO); + sched_prio(curthread, PUSER); if (sc->sc_crypto == G_ELI_CRYPTO_SW && g_eli_threads == 0) sched_bind(curthread, wr->w_number); thread_unlock(curthread); @@ -361,8 +361,7 @@ g_eli_worker(void *arg) mtx_unlock(&sc->sc_queue_mtx); kproc_exit(0); } - msleep(sc, &sc->sc_queue_mtx, PRIBIO | PDROP, - "geli:w", 0); + msleep(sc, &sc->sc_queue_mtx, PDROP, "geli:w", 0); continue; } mtx_unlock(&sc->sc_queue_mtx); |