UBI: use separate mutex for volumes checking
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Tue, 25 Dec 2007 16:13:33 +0000 (18:13 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Mon, 25 May 2009 14:08:27 +0000 (17:08 +0300)
commitcc85904cb68e6d8ae6a1fad490a6d0930914e7a1
tree1652a032b902c51f52d145938738dd6f2e7e46c0
parent0c36ef989ad0d9babf5b346c1b18f6abb1eb95f0
UBI: use separate mutex for volumes checking

Introduce a separate mutex which serializes volumes checking,
because we cammot really use volumes_mutex - it cases reverse
locking problems with mtd_tbl_mutex when gluebi is used -
thanks to lockdep.

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