diff options
author | Dan Williams <dan.j.williams@intel.com> | 2009-10-19 14:05:12 -0700 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2009-10-19 23:34:46 -0700 |
commit | d1470c1ea588560f8a60b5910f6a554262e95a79 (patch) | |
tree | de8ded5502a9e4b4a0970a5ce4f9dea97711a84a /crypto/async_tx/async_pq.c | |
parent | f17aa980063ab7190cf806cbaa7942c3ac375ce3 (diff) | |
download | linux-crypto-d1470c1ea588560f8a60b5910f6a554262e95a79.tar.gz linux-crypto-d1470c1ea588560f8a60b5910f6a554262e95a79.zip |
async_tx: fix asynchronous raid6 recovery for ddf layouts
The raid6 recovery code currently requires special handling of the
4-disk and 5-disk recovery scenarios for the native layout. Quoting
from commit 128e0d32:
In these situations the default N-disk algorithm will present
0-source or 1-source operations to dma devices. To cover for
dma devices where the minimum source count is 2 we implement
4-disk and 5-disk handling in the recovery code.
The ddf layout presents disks=6 and disks=7 to the recovery code in
these situations. Instead of looking at the number of disks count the
number of non-zero sources in the list and call the special case code
when the number of non-failed sources is 0 or 1.
[neilb@suse.de: replace 'ddf' flag with counting good sources]
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions