lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Sat, 13 Aug 2011 11:57:05 +0800
From:	Hillf Danton <dhillf@...il.com>
To:	"Koul, Vinod" <vinod.koul@...el.com>
Cc:	LKML <linux-kernel@...r.kernel.org>
Subject: [RFC patch resend] DMA engine/Langwell: process pending descriptors

Descriptors could be added onto the queue list, though pending descriptors are
checked in intel_mid_dma_issue_pending(), they are not processed by scanning
the queue list. Now it is added.

Signed-off-by: Hillf Danton <dhillf@...il.com>
---

--- a/drivers/dma/intel_mid_dma.c	Sat Aug 13 11:44:46 2011
+++ intel_mid_dma.c	Sat Aug 13 11:52:35 2011
@@ -338,8 +338,12 @@ static void midc_scan_descriptors(struct
 		if (desc->status == DMA_IN_PROGRESS)
 			midc_descriptor_complete(midc, desc);
 	}
-	return;
+	list_for_each_entry_safe(desc, _desc, &midc->queue, desc_node) {
+		if (desc->status == DMA_IN_PROGRESS)
+			midc_descriptor_complete(midc, desc);
 	}
+}
+
 /**
  * midc_lli_fill_sg -		Helper function to convert
  *				SG list to Linked List Items.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ