svn commit: r196457 -
head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Pawel Jakub Dawidek
pjd at FreeBSD.org
Sun Aug 23 11:27:08 UTC 2009
Author: pjd
Date: Sun Aug 23 11:27:08 2009
New Revision: 196457
URL: http://svn.freebsd.org/changeset/base/196457
Log:
Set priority of vdev_geom threads and zvol threads to PRIBIO.
Modified:
head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c
head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c
Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c Sun Aug 23 11:22:46 2009 (r196456)
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c Sun Aug 23 11:27:08 2009 (r196457)
@@ -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);
Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c Sun Aug 23 11:22:46 2009 (r196456)
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c Sun Aug 23 11:27:08 2009 (r196457)
@@ -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);
More information about the svn-src-head
mailing list