Skip to content

Commit

Permalink
iop_adma: directly reclaim descriptors on allocation failure
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Williams committed Jul 18, 2008
1 parent 0839875 commit c7141d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/dma/iop-adma.c
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,8 @@ iop_adma_alloc_slots(struct iop_adma_chan *iop_chan, int num_slots,
if (!retry++)
goto retry;

/* try to free some slots if the allocation fails */
tasklet_schedule(&iop_chan->irq_tasklet);
/* perform direct reclaim if the allocation fails */
__iop_adma_slot_cleanup(iop_chan);

return NULL;
}
Expand Down

0 comments on commit c7141d0

Please sign in to comment.