From f80157341c611ec02c386e86fc233bf587b28d5e Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Mon, 17 Feb 2003 03:17:43 -0800 Subject: [PATCH] Add name of md device to name of thread managing that device. This allows the thread to easily identified and signalled. The point of signalling will appear in the next patch. --- include/linux/raid/md_k.h | 1 + include/linux/raid/raid1.h | 1 + include/linux/raid/raid5.h | 1 + 3 files changed, 3 insertions(+) (limited to 'include/linux/raid') diff --git a/include/linux/raid/md_k.h b/include/linux/raid/md_k.h index d6f2928fc8c7..b80acc351130 100644 --- a/include/linux/raid/md_k.h +++ b/include/linux/raid/md_k.h @@ -29,6 +29,7 @@ #define LEVEL_LINEAR (-1) #define MaxSector (~(sector_t)0) +#define MD_THREAD_NAME_MAX 14 static inline int pers_to_level (int pers) { diff --git a/include/linux/raid/raid1.h b/include/linux/raid/raid1.h index 7095e77cb63e..9ed30f4d0748 100644 --- a/include/linux/raid/raid1.h +++ b/include/linux/raid/raid1.h @@ -34,6 +34,7 @@ struct r1_private_data_s { mempool_t *r1bio_pool; mempool_t *r1buf_pool; + char thread_name[MD_THREAD_NAME_MAX]; }; typedef struct r1_private_data_s conf_t; diff --git a/include/linux/raid/raid5.h b/include/linux/raid/raid5.h index 9d08de50d13a..636e10b84502 100644 --- a/include/linux/raid/raid5.h +++ b/include/linux/raid/raid5.h @@ -226,6 +226,7 @@ struct raid5_private_data { * waiting for 25% to be free */ spinlock_t device_lock; + char thread_name[MD_THREAD_NAME_MAX]; }; typedef struct raid5_private_data raid5_conf_t; -- cgit v1.2.3