Dan Williams da17bf4306 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 0a82a623:

     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>
2009-10-19 23:34:46 -07:00
..
2008-04-21 10:19:34 +08:00
2009-08-05 19:35:34 +10:00
2008-04-21 10:19:34 +08:00
2008-04-21 10:19:34 +08:00
2007-11-02 08:47:06 +01:00
2008-12-25 11:02:07 +11:00
2008-06-02 15:46:51 +10:00
2008-04-21 10:19:34 +08:00
2008-08-29 15:50:02 +10:00
2009-08-06 15:34:26 +10:00
2009-03-04 14:43:52 +08:00
2009-07-24 15:18:41 +08:00
2008-04-21 10:19:34 +08:00
2009-02-17 20:00:11 +08:00
2008-04-21 10:19:34 +08:00
2008-12-25 11:02:16 +11:00
2008-12-25 11:02:18 +11:00
2008-12-25 11:02:09 +11:00
2008-12-25 11:02:10 +11:00
2008-12-25 11:02:12 +11:00
2008-12-25 11:02:13 +11:00
2009-08-13 11:53:56 +10:00
2007-10-10 16:55:38 -07:00
2008-04-21 10:19:34 +08:00
2008-04-21 10:19:34 +08:00
2008-12-25 11:02:21 +11:00
2008-04-21 10:19:34 +08:00
2008-12-25 11:02:22 +11:00
2008-03-06 18:56:19 +08:00