]> git.baikalelectronics.ru Git - kernel.git/commit
ioat3: fix pq completion versus channel deallocation race
authorDan Williams <dan.j.williams@intel.com>
Fri, 20 Nov 2009 00:11:03 +0000 (17:11 -0700)
committerDan Williams <dan.j.williams@intel.com>
Fri, 20 Nov 2009 06:21:03 +0000 (23:21 -0700)
commitd7bb0c95546d0b5da83fbf342f0d8a2a94ccc0f6
treec64b4585518028b5c8ae749b93d9f560d536f649
parentb61d93a85d0df8533f77cd0ceb6c0a3c26417da5
ioat3: fix pq completion versus channel deallocation race

The completion of a pq operation is notified with a null descriptor
appended to the end of the chain.  This descriptor needs to be visible
to dma clients otherwise the client is precluded from ensuring all
operations are quiesced before freeing channel resources, i.e. due to
descriptor polling it may get the completion notification ahead of the
interrupt delivered by the null descriptor.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dma/ioat/dma_v3.c