mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
0839875e0c
commit
c7141d005a
|
@ -373,8 +373,8 @@ iop_adma_alloc_slots(struct iop_adma_chan *iop_chan, int num_slots,
|
||||||
if (!retry++)
|
if (!retry++)
|
||||||
goto retry;
|
goto retry;
|
||||||
|
|
||||||
/* try to free some slots if the allocation fails */
|
/* perform direct reclaim if the allocation fails */
|
||||||
tasklet_schedule(&iop_chan->irq_tasklet);
|
__iop_adma_slot_cleanup(iop_chan);
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue