diff options
| author | Neil Brown <neilb@cse.unsw.edu.au> | 2003-02-17 03:17:43 -0800 |
|---|---|---|
| committer | James Bottomley <jejb@raven.il.steeleye.com> | 2003-02-17 03:17:43 -0800 |
| commit | f80157341c611ec02c386e86fc233bf587b28d5e (patch) | |
| tree | ff239caa46b58b208dd5c82774bfad9660b82e29 /include/linux/raid | |
| parent | 0b8838abe39c4d0b07b012131de3cf395ab44984 (diff) | |
[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.
Diffstat (limited to 'include/linux/raid')
| -rw-r--r-- | include/linux/raid/md_k.h | 1 | ||||
| -rw-r--r-- | include/linux/raid/raid1.h | 1 | ||||
| -rw-r--r-- | include/linux/raid/raid5.h | 1 |
3 files changed, 3 insertions, 0 deletions
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; |
