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);
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to