ioat: switch watchdog and reset handler from workqueue to timer
authorDan Williams <dan.j.williams@intel.com>
Tue, 8 Sep 2009 19:01:49 +0000 (12:01 -0700)
committerDan Williams <dan.j.williams@intel.com>
Wed, 9 Sep 2009 00:30:24 +0000 (17:30 -0700)
commit09c8a5b85e5f1e74a19bdd7c85547429d51df1cd
tree9bb255d9f596ab062996de49032875e8b9253971
parentad643f54c8514998333bc6c7b201fda2267496be
ioat: switch watchdog and reset handler from workqueue to timer

In order to support dynamic resizing of the descriptor ring or polling
for a descriptor in the presence of a hung channel the reset handler
needs to make progress while in a non-preemptible context.  The current
workqueue implementation precludes polling channel reset completion
under spin_lock().

This conversion also allows us to return to opportunistic cleanup in the
ioat2 case as the timer implementation guarantees at least one cleanup
after every descriptor is submitted.  This means the worst case
completion latency becomes the timer frequency (for exceptional
circumstances), but with the benefit of avoiding busy waiting when the
lock is contended.

Signed-off-by: Maciej Sosnowski <maciej.sosnowski@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dma/ioat/dma.c
drivers/dma/ioat/dma.h
drivers/dma/ioat/dma_v2.c
drivers/dma/ioat/dma_v2.h
drivers/dma/ioat/registers.h
drivers/idle/i7300_idle.c