From: Brian Behlendorf Date: Thu, 28 Oct 2010 17:36:50 +0000 (-0700) Subject: Shorten zio_* thread names X-Git-Tag: zfs-0.5.2~15 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=451041db531dfec52c9e70fbd5d4179e30d61e2f;p=zfs 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. --- 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" }; /*