]> bbs.cooldavid.org Git - net-next-2.6.git/commit
net_dma: poll for a descriptor after allocation failure
authorDan Williams <dan.j.williams@intel.com>
Tue, 8 Sep 2009 19:02:15 +0000 (12:02 -0700)
committerDan Williams <dan.j.williams@intel.com>
Wed, 9 Sep 2009 00:38:54 +0000 (17:38 -0700)
commit4b652f0db3be891c7b76b109c3b55003b920fc96
treea7747543a2076a2f58f423297e0da78b2963a04d
parenta309218acee8606f7e235da20cc826eb06d9b0f6
net_dma: poll for a descriptor after allocation failure

Handle descriptor allocation failures by polling for a descriptor.  The
driver will force forward progress when polled.  In the best case this
polling interval will be the time it takes for one dma memcpy
transaction to complete.  In the worst case, channel hang, we will need
to wait 100ms for the cleanup watchdog to fire (ioatdma driver).

Signed-off-by: Maciej Sosnowski <maciej.sosnowski@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dma/iovlock.c