diff options
author | NeilBrown <neilb@suse.de> | 2009-09-23 18:09:45 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2009-09-23 18:09:45 +1000 |
commit | 0da3c6194ec2f32617b272df4505a1cf022faea5 (patch) | |
tree | 5864b61b8fac2e7477668bdb9a493d2a64d0b3dd /drivers/md/raid10.c | |
parent | ee305acef5c7841dc25cc32e84bb94f744e1e9b9 (diff) | |
download | op-kernel-dev-0da3c6194ec2f32617b272df4505a1cf022faea5.zip op-kernel-dev-0da3c6194ec2f32617b272df4505a1cf022faea5.tar.gz |
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/raid10.c')
-rw-r--r-- | drivers/md/raid10.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c index 8bca383..7872968 100644 --- a/drivers/md/raid10.c +++ b/drivers/md/raid10.c @@ -2188,7 +2188,7 @@ static int run(mddev_t *mddev) } - mddev->thread = md_register_thread(raid10d, mddev, "%s_raid10"); + mddev->thread = md_register_thread(raid10d, mddev, NULL); if (!mddev->thread) { printk(KERN_ERR "raid10: couldn't allocate thread for %s\n", |