md/raid1: Allocate spare to store replacement devices and their bios.
authorNeilBrown <neilb@suse.de>
Thu, 22 Dec 2011 23:17:56 +0000 (10:17 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 22 Dec 2011 23:17:56 +0000 (10:17 +1100)
commit8f19ccb2fd70deb1f278be5e75076074cfddee46
tree59419e814d4d02dfdefaf6f5ef152c3468c890e8
parent301946364e0aa67c4cfaec82e94c389993c9f7c6
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
This page took 0.025954 seconds and 5 git commands to generate.