md: Improve name of threads created by md_register_thread
authorNeilBrown <neilb@suse.de>
Wed, 23 Sep 2009 08:09:45 +0000 (18:09 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 23 Sep 2009 08:09:45 +0000 (18:09 +1000)
commit0da3c6194ec2f32617b272df4505a1cf022faea5
tree5864b61b8fac2e7477668bdb9a493d2a64d0b3dd
parentee305acef5c7841dc25cc32e84bb94f744e1e9b9
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>
drivers/md/md.c
drivers/md/multipath.c
drivers/md/raid1.c
drivers/md/raid10.c
drivers/md/raid5.c