JFFS2 deadlock in erase callback

Thomas Gleixner tglx at linutronix.de
Wed Oct 10 15:51:22 EDT 2007


On Mon, 8 Oct 2007, Adrian Hunter wrote:
>         [MTD] [NAND] Avoid deadlock in erase callback; release chip lock first.
>     
>         When the erase callback performs some other action on the flash, it's
>         highly likely to deadlock unless we actually release the chip lock
>         before calling it.
>     
>         Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
> 
> Can you confirm, that adding the "Avoid deadlock..." patch is better
> than reverting "Reduce time..." patch.

Yep, it's safe and definitely better.

I remember vaguely that we planned/discussed to move the release
before the callback some time ago, but the patch never made it into
mainline.
 
	tglx



More information about the linux-mtd mailing list