[MTD] [NAND] fix race in nand_base.c
commitc0b8ba7bfe7b4c1f11b3356b65520405b005bd33
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 23 Jul 2007 13:06:50 +0000 (23 16:06 +0300)
committerDavid Woodhouse <dwmw2@infradead.org>
Mon, 23 Jul 2007 12:09:52 +0000 (23 13:09 +0100)
tree8a9a2ddccad561d21dc25ebd92b900a9bcc2d634
parent0bf9733d0d65ebb413d62204ad8e328e0a0b9407
[MTD] [NAND] fix race in nand_base.c

When we mark block bad we have to get chip because this involves
writing to the page's OOB. We hit this bug in UBI - we observed
random obscure crashes when it marks block bad from the background
thread and there is some parallel task which utilizes flash.

This patch also adds a TODO note about BBT table protection which
it seems does not exist.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/nand/nand_base.c