[MTD] [NAND] fix race in nand_base.c
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 23 Jul 2007 13:06:50 +0000 (16:06 +0300)
committerDavid Woodhouse <dwmw2@infradead.org>
Thu, 2 Aug 2007 20:46:21 +0000 (21:46 +0100)
commit06a7643cd3d440a1d15a6b3aa7ee431f3f4791b4
tree7b64346fe8f0451f77dcc5492d7c7ab66f526a1f
parent9d7b4b5562b60c826c71cf2e1b7b63add42e527f
[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