md/raid5: clearly differentiate 'before' and 'after' stripes during reshape.
authorNeilBrown <neilb@suse.de>
Tue, 31 Mar 2009 04:19:03 +0000 (15:19 +1100)
committerNeilBrown <neilb@suse.de>
Tue, 31 Mar 2009 04:19:03 +0000 (15:19 +1100)
commit86b42c713be3e5f6807aa14b4cbdb005d35c64d5
treed6c70a966a6bda99e6cd4ce055efa84ab0ded701
parent11373542344bdc35be1e6e68b0baadd1b6f7acbb
md/raid5: clearly differentiate 'before' and 'after' stripes during reshape.

During a raid5 reshape, we have some stripes in the cache that are
'before' the reshape (and are still to be processed) and some that are
'after'.  They are currently differentiated by having different
->disks values as the only reshape current supported involves changing
the number of disks.

However we will soon support reshapes that do not change the number
of disks (chunk parity or chunk size).  So make the difference more
explicit with a 'generation' number.

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