]> git.baikalelectronics.ru Git - kernel.git/commit
md: change hot_remove_disk to take an rdev rather than a number.
authorNeilBrown <neilb@suse.de>
Thu, 22 Dec 2011 23:17:51 +0000 (10:17 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 22 Dec 2011 23:17:51 +0000 (10:17 +1100)
commitfd0c7bef9fa83b5e44a5673339a230a285fe8e26
tree3fc4c9b253435753d2154d9bd697a7869163c29a
parent786fce2ec419b1fb75e1fcf3197b4b594a237360
md: change hot_remove_disk to take an rdev rather than a number.

Soon an array will be able to have multiple devices with the
same raid_disk number (an original and a replacement).  So removing
a device based on the number won't work.  So pass the actual device
handle instead.

Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/md.c
drivers/md/md.h
drivers/md/multipath.c
drivers/md/raid1.c
drivers/md/raid10.c
drivers/md/raid5.c