diff options
author | Dan Williams <dan.j.williams@intel.com> | 2009-12-17 13:55:38 -0700 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2009-12-17 13:55:38 -0700 |
commit | 21fd461fa81a0a170f68b39fdea7efc1f5adc29e (patch) | |
tree | 3c4a1f8f5d9347a6a1ccde7952532cee5df0931d /crypto/async_tx | |
parent | fa1753c68b55aade9ad6e59f493814cf50b6eef8 (diff) | |
download | linux-crypto-21fd461fa81a0a170f68b39fdea7efc1f5adc29e.tar.gz linux-crypto-21fd461fa81a0a170f68b39fdea7efc1f5adc29e.zip |
async_tx: expand async raid6 test to cover ioatdma corner case
Add explicit 11 and 12 disks cases to exercise the 0 < src_cnt % 8 < 3
corner case in the ioatdma driver.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to '')
-rw-r--r-- | crypto/async_tx/raid6test.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crypto/async_tx/raid6test.c b/crypto/async_tx/raid6test.c index 3ec27c7e..f84f6b43 100644 --- a/crypto/async_tx/raid6test.c +++ b/crypto/async_tx/raid6test.c @@ -214,6 +214,13 @@ static int raid6_test(void) err += test(4, &tests); if (NDISKS > 5) err += test(5, &tests); + /* the 11 and 12 disk cases are special for ioatdma (p-disabled + * q-continuation without extended descriptor) + */ + if (NDISKS > 12) { + err += test(11, &tests); + err += test(12, &tests); + } err += test(NDISKS, &tests); pr("\n"); |