Skip to content

Commit

Permalink
async_tx: avoid the async xor_zero_sum path when src_cnt > device->ma…
Browse files Browse the repository at this point in the history
…x_xor

If the channel cannot perform the operation in one call to
->device_prep_dma_zero_sum, then fallback to the xor+page_is_zero path.
This only affects users with arrays larger than 16 devices on iop13xx or
32 devices on iop3xx.

Cc: <[email protected]>
Cc: Neil Brown <[email protected]>
Signed-off-by: Dan Williams <[email protected]>
  • Loading branch information
djbw committed Mar 19, 2008
1 parent f79abb6 commit 8d8002f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/async_tx/async_xor.c
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ async_xor_zero_sum(struct page *dest, struct page **src_list,

BUG_ON(src_cnt <= 1);

if (device) {
if (device && src_cnt <= device->max_xor) {
dma_addr_t *dma_src = (dma_addr_t *) src_list;
unsigned long dma_prep_flags = cb_fn ? DMA_PREP_INTERRUPT : 0;
int i;
Expand Down

0 comments on commit 8d8002f

Please sign in to comment.