summaryrefslogtreecommitdiff
path: root/crypto/cipher.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2008-07-17 17:59:55 -0700
committerDan Williams <dan.j.williams@intel.com>2008-07-17 17:59:55 -0700
commit4af1fc66eb19dadf73950d7b903a3886bc41f7b4 (patch)
treebab1445b45a548604e68b30f75d0fc4bde21a7a7 /crypto/cipher.c
parent7672bf08f2fc86033d160c63be2fff0998869481 (diff)
downloadlinux-crypto-4af1fc66eb19dadf73950d7b903a3886bc41f7b4.tar.gz
linux-crypto-4af1fc66eb19dadf73950d7b903a3886bc41f7b4.zip
async_tx: fix handling of the "out of descriptor" condition in async_xor
Ensure forward progress is made when a dmaengine driver is unable to allocate an xor descriptor by breaking the dependency chain with async_tx_quisce() and issue any pending descriptors. Tested with iop-adma by setting device->max_xor = 2 to force multiple calls to device_prep_dma_xor for each call to async_xor and limiting the descriptor slot pool to 5. Discovered that the minimum descriptor pool size for iop-adma is 2 * iop_chan_xor_slot_cnt(device->max_xor) + 1. Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'crypto/cipher.c')
0 files changed, 0 insertions, 0 deletions