Shorten zio_* thread names
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 28 Oct 2010 17:36:50 +0000 (10:36 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 8 Nov 2010 22:03:35 +0000 (14:03 -0800)
Linux kernel thread names are expected to be short.  This change shortens
the zio thread names to 10 characters leaving a few chracters to append
the /<cpuid> to which the thread is bound.  For example: z_wr_iss/0.

module/zfs/spa.c
module/zfs/zio.c

index a4e493e..9365038 100644 (file)
@@ -95,7 +95,7 @@ typedef struct zio_taskq_info {
 } zio_taskq_info_t;
 
 static const char *const zio_taskq_types[ZIO_TASKQ_TYPES] = {
-       "issue", "issue_high", "intr", "intr_high"
+       "iss", "iss_h", "int", "int_h"
 };
 
 /*
index 9f34a23..3c256aa 100644 (file)
@@ -61,8 +61,7 @@ uint8_t zio_priority_table[ZIO_PRIORITY_TABLE_SIZE] = {
  * ==========================================================================
  */
 char *zio_type_name[ZIO_TYPES] = {
-       "zio_null", "zio_read", "zio_write", "zio_free", "zio_claim",
-       "zio_ioctl"
+       "z_null", "z_rd", "z_wr", "z_fr", "z_cl", "z_ioctl"
 };
 
 /*