Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c7141d00 authored by Dan Williams's avatar Dan Williams
Browse files

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: default avatarDan Williams <dan.j.williams@intel.com>
parent 0839875e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
}