Thread (2 messages) 2 messages, 2 authors, 2021-12-13

Re: [PATCH] dmaengine: idxd: fix missed completion on abort path

From: Vinod Koul <vkoul@kernel.org>
Date: 2021-12-13 05:40:56

On 08-12-21, 10:01, Dave Jiang wrote:
Ming reported that with the abort path of the descriptor submission, there
can be a window where a completed descriptor can be missed to be completed
by the irq completion thread:

CPU A				CPU B
Submit (successful)

Submit (fail)
				irq_process_work_list() // empty

llist_abort_desc()
// remove all descs from pending list

				irq_process_pending_llist() // empty
				exit idxd_wq_thread() with no processing

Add opportunistic descriptor completion in the abort path in order to
remove the missed completion.
Applied, thanks

-- 
~Vinod
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help