aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2008-07-17 20:59:56 -0400
committerDan Williams <dan.j.williams@intel.com>2008-07-17 20:59:56 -0400
commitc7141d005a19d2a0a316b3bf9c170d3bedf07bfd (patch)
treecac1072c6230a3c8f33213802f399a70fdc7e882 /drivers
parent0839875e0c197ded56bbae820e699f26d6fa2697 (diff)
iop_adma: directly reclaim descriptors on allocation failure
Force callers that trigger an "out of descriptors" condition to run the cleanup loop directly. Alleviates the requirement to have soft-irqs enabled when polling for a descriptor in async_xor. Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/dma/iop-adma.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dma/iop-adma.c b/drivers/dma/iop-adma.c
index 434013d41288..8acbc3ab0b92 100644
--- a/drivers/dma/iop-adma.c
+++ b/drivers/dma/iop-adma.c
@@ -373,8 +373,8 @@ retry:
373 if (!retry++) 373 if (!retry++)
374 goto retry; 374 goto retry;
375 375
376 /* try to free some slots if the allocation fails */ 376 /* perform direct reclaim if the allocation fails */
377 tasklet_schedule(&iop_chan->irq_tasklet); 377 __iop_adma_slot_cleanup(iop_chan);
378 378
379 return NULL; 379 return NULL;
380} 380}