From 451041db531dfec52c9e70fbd5d4179e30d61e2f Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Thu, 28 Oct 2010 10:36:50 -0700 Subject: [PATCH] Shorten zio_* thread names 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 / to which the thread is bound. For example: z_wr_iss/0. --- module/zfs/spa.c | 2 +- module/zfs/zio.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/module/zfs/spa.c b/module/zfs/spa.c index a4e493ec8..93650386e 100644 --- a/module/zfs/spa.c +++ b/module/zfs/spa.c @@ -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" }; /* diff --git a/module/zfs/zio.c b/module/zfs/zio.c index 9f34a2338..3c256aa95 100644 --- a/module/zfs/zio.c +++ b/module/zfs/zio.c @@ -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" }; /*