]> granicus.if.org Git - zfs/commitdiff
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 a4e493ec873a07d07930d27f29174da2c41fc623..93650386e651761fc1c968add69069061bccaa0c 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 9f34a23385f9f7bae43e05e04560a8e01b410f7a..3c256aa95fe5c4b6ce0bcaa8ec3eaaa3f94c55f2 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"
 };
 
 /*