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

From: Brian Norris
Date: Fri Oct 30 2015 - 20:27:32 EST


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@xxxxxx>
> Tested-by: Felipe Balbi <balbi@xxxxxx>
> Signed-off-by: Brian Norris <computersforpeace@xxxxxxxxx>
> Cc: <stable@xxxxxxxxxxxxxxx>

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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/