diff options
author | Dan Williams <dan.j.williams@intel.com> | 2008-03-18 21:23:59 -0700 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2008-03-18 17:01:00 -0700 |
commit | 360ec583b70d131f08cb4f6e32088dd9382251c3 (patch) | |
tree | 37593394cf9c68446d0524cb3c5b2e16290c9721 /crypto/async_tx | |
parent | adc58377844e598436cb15a51ba1da242369861f (diff) | |
download | linux-crypto-360ec583b70d131f08cb4f6e32088dd9382251c3.tar.gz linux-crypto-360ec583b70d131f08cb4f6e32088dd9382251c3.zip |
async_tx: avoid the async xor_zero_sum path when src_cnt > device->max_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: <stable@kernel.org>
Cc: Neil Brown <neilb@suse.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'crypto/async_tx')
-rw-r--r-- | crypto/async_tx/async_xor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/async_tx/async_xor.c b/crypto/async_tx/async_xor.c index 7a9db353..1c445c7b 100644 --- a/crypto/async_tx/async_xor.c +++ b/crypto/async_tx/async_xor.c @@ -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; |