aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid1.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2009-09-23 18:09:45 +1000
committerNeilBrown <neilb@suse.de>2009-09-23 18:09:45 +1000
commit0da3c6194ec2f32617b272df4505a1cf022faea5 (patch)
tree5864b61b8fac2e7477668bdb9a493d2a64d0b3dd /drivers/md/raid1.c
parentmd: remove sparse warnings about lock context. (diff)
downloadlinux-dev-0da3c6194ec2f32617b272df4505a1cf022faea5.tar.xz
linux-dev-0da3c6194ec2f32617b272df4505a1cf022faea5.zip
md: Improve name of threads created by md_register_thread
The management thread for raid4,5,6 arrays are all called mdX_raid5, independent of the actual raid level, which is wrong and can be confusion. So change md_register_thread to use the name from the personality unless no alternate name (like 'resync' or 'reshape') is given. This is simpler and more correct. Cc: Jinzc <zhenchengjin@gmail.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/raid1.c')
-rw-r--r--drivers/md/raid1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c
index ff7ed3335995..7efdeb44097f 100644
--- a/drivers/md/raid1.c
+++ b/drivers/md/raid1.c
@@ -2047,7 +2047,7 @@ static int run(mddev_t *mddev)
conf->last_used = j;
- mddev->thread = md_register_thread(raid1d, mddev, "%s_raid1");
+ mddev->thread = md_register_thread(raid1d, mddev, NULL);
if (!mddev->thread) {
printk(KERN_ERR
"raid1: couldn't allocate thread for %s\n",