Date: Fri, 8 Apr 2016 11:58:24 +0000 (UTC) From: Andriy Gapon <avg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r297709 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs Message-ID: <201604081158.u38BwO50097375@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: avg Date: Fri Apr 8 11:58:24 2016 New Revision: 297709 URL: https://svnweb.freebsd.org/changeset/base/297709 Log: zio write issue threads should have lower (numerically greater) priority This is because they might do data compression which is quite CPU expensive. The original code is correct for illumos, because there a higher priority corresponds to a greater number. MFC after: 2 weeks Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c ============================================================================== --- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c Fri Apr 8 11:43:22 2016 (r297708) +++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c Fri Apr 8 11:58:24 2016 (r297709) @@ -929,7 +929,7 @@ spa_taskqs_init(spa_t *spa, zio_type_t t * than the other taskqs. */ if (t == ZIO_TYPE_WRITE && q == ZIO_TASKQ_ISSUE) - pri--; + pri++; tq = taskq_create_proc(name, value, pri, 50, INT_MAX, spa->spa_proc, flags);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604081158.u38BwO50097375>