]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md/raid1: Allocate spare to store replacement devices and their bios.
authorNeilBrown <neilb@suse.de>
Fri, 9 Dec 2011 03:27:08 +0000 (14:27 +1100)
committerNeilBrown <neilb@suse.de>
Fri, 9 Dec 2011 03:27:08 +0000 (14:27 +1100)
commit3d7f764ebd7a6cc9762d921080fb2c41e834245b
treea4e4d8d3413efd5f9d4f7ce965cbdc51168e8ccd
parent24753666d6dd3d2de9895af6235be0a9af36b8bd
md/raid1: Allocate spare to store replacement devices and their bios.

In RAID1, a replacement is much like a normal device, so we just
double the size of the relevant arrays and look at all possible
devices for reads and writes.

This means that the array looks like it is now double the size in some
way - we need to be careful about that.
In particular, we checking if the array is still degraded while
creating a recovery request we need to only consider the first 'half'
- i.e. the real (non-replacement) devices.

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid1.c
drivers/md/raid1.h