]> git.baikalelectronics.ru Git - kernel.git/commit
md: make 'name' arg to md_register_thread non-optional.
authorNeilBrown <neilb@suse.de>
Tue, 3 Jul 2012 05:56:52 +0000 (15:56 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 3 Jul 2012 05:56:52 +0000 (15:56 +1000)
commitd9a4a5071d7eea73cc94e7a8a937793fdd42a29e
tree18537d016ecc0f12b41b4589818b4c047cd58bcf
parent88bbad16b306d3a9a92b0a3cf7375c4629a154c2
md: make 'name' arg to md_register_thread non-optional.

Having the 'name' arg optional and defaulting to the current
personality name is no necessary and leads to errors, as when
changing the level of an array we can end up using the
name of the old level instead of the new one.

So make it non-optional and always explicitly pass the name
of the level that the array will be.

Reported-by: majianpeng <majianpeng@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