[PATCH] mtd: blkdevs: fix potential deadlock + lockdep warnings

Brian Norris computersforpeace at gmail.com
Fri Oct 30 17:27:23 PDT 2015


On Mon, Oct 26, 2015 at 07:38:49PM -0700, Brian Norris wrote:
> Commit 073db4a51ee4 ("mtd: fix: avoid race condition when accessing
> mtd->usecount") fixed a race condition but due to poor ordering of the
> mutex acquisition, introduced a potential deadlock.
[...]
> 
> Fixes: 073db4a51ee4 ("mtd: fix: avoid race condition when accessing mtd->usecount")
> Reported-by: Felipe Balbi <balbi at ti.com>
> Tested-by: Felipe Balbi <balbi at ti.com>
> Signed-off-by: Brian Norris <computersforpeace at gmail.com>
> Cc: <stable at vger.kernel.org>

Pushed to l2-mtd.git.

> ---
> Resending as a proper patch
> 
> Note: I tried to reproduce this lockdep warning myself but couldn't. But I saw
> no problem under the new patch either.



More information about the linux-mtd mailing list