summaryrefslogtreecommitdiffstats
path: root/drivers/md/multipath.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/multipath.c
parentee305acef5c7841dc25cc32e84bb94f744e1e9b9 (diff)
downloadlinux-0da3c6194ec2f32617b272df4505a1cf022faea5.tar.bz2
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/multipath.c')
-rw-r--r--drivers/md/multipath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/multipath.c b/drivers/md/multipath.c
index d2d3fd54cc68..94c21c11b9bc 100644
--- a/drivers/md/multipath.c
+++ b/drivers/md/multipath.c
@@ -504,7 +504,7 @@ static int multipath_run (mddev_t *mddev)
}
{
- mddev->thread = md_register_thread(multipathd, mddev, "%s_multipath");
+ mddev->thread = md_register_thread(multipathd, mddev, NULL);
if (!mddev->thread) {
printk(KERN_ERR "multipath: couldn't allocate thread"
" for %s\n", mdname(mddev));