Skip to content

Commit

Permalink
async_tx: expand async raid6 test to cover ioatdma corner case
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
djbw committed Dec 17, 2009
1 parent cd78809 commit e02a0e4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions crypto/async_tx/raid6test.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit e02a0e4

Please sign in to comment.