[PATCH v9 05/18] mtd: rawnand: sunxi: drain interrupts before reusing the completion

Sebastian Andrzej Siewior bigeasy at linutronix.de
Sun Oct 18 23:50:13 PDT 2026


On 2026-10-17 13:46:00 [-0600], James Hilliard wrote:
> 
> This keeps additional synchronization on the timeout path, without a
> driver lock in every interrupt and wait. The caller can sleep, this IRQ
> is not registered as shared, and the handler does not acquire the
> controller mutex held by the caller. The tradeoff is unbounded cleanup
> latency and no priority inheritance: a starved IRQ thread can prevent
> timeout cleanup from returning and block other operations on the
> controller. This is a handler-lifetime boundary, not an RT
> recovery-latency guarantee.
> 
> Fixes: 1fef62c1423b ("mtd: nand: add sunxi NAND flash controller support")
> Reported-by: Sashiko <sashiko-bot at kernel.org>
> Closes: https://lore.kernel.org/r/20260909085434.C8F201F00A3A@smtp.kernel.org
> Signed-off-by: James Hilliard <james.hilliard1 at gmail.com>
Reviewed-by: Sebastian Andrzej Siewior <bigeasy at linutronix.de>

Sebastian



More information about the linux-mtd mailing list