aboutsummaryrefslogtreecommitdiff
path: root/sys/geom
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2010-04-15 16:34:06 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2010-04-15 16:34:06 +0000
commit31c4cef715a139f573d9fc3da1c93c63308f5426 (patch)
tree3f9b8966cab5d21321706319ae14e3c412dde882 /sys/geom
parente1a4e3fa37d5e5fd069f75f0c5842714d9b9728b (diff)
downloadsrc-31c4cef715a139f573d9fc3da1c93c63308f5426.tar.gz
src-31c4cef715a139f573d9fc3da1c93c63308f5426.zip
Use lower priority for GELI worker threads. This improves system
responsiveness under heavy GELI load. MFC after: 3 days
Notes
Notes: svn path=/head/; revision=206665
Diffstat (limited to 'sys/geom')
-rw-r--r--sys/geom/eli/g_eli.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/geom/eli/g_eli.c b/sys/geom/eli/g_eli.c
index 2a405c5b5027..a3746c09e1a5 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);