UBI: fix deadlock
commit4df581f3dc6a91a63b9965ac8bdb47d8db294e37
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Thu, 4 Dec 2008 18:52:44 +0000 (4 20:52 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 5 Dec 2008 11:46:49 +0000 (5 13:46 +0200)
treeddd44e9b424c999b615185c6c6d34c1d2983f6f4
parented45819f315b5a8844b5bfce881a18e9f3a055e7
UBI: fix deadlock

We cannot call 'ubi_wl_get_peb()' with @ubi->buf_mutex locked,
because 'ubi_wl_get_peb()' may force erasure, which, in turn,
may call 'torture_peb()' which also locks the @ubi->buf_mutex
and deadlocks.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/eba.c