浏览代码

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>
Dan Williams 17 年之前
父节点
当前提交
c7141d005a
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      drivers/dma/iop-adma.c

+ 2 - 2
drivers/dma/iop-adma.c

@@ -373,8 +373,8 @@ retry:
 	if (!retry++)
 	if (!retry++)
 		goto 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;
 	return NULL;
 }
 }