diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2007-12-25 11:13:33 -0500 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2007-12-26 12:15:17 -0500 |
commit | 783b273afab43437dca731a229d53d72faf77fd3 (patch) | |
tree | daadf822539189bcc81d64a609f2b084849114e5 /drivers/mtd/ubi/ubi.h | |
parent | 897a316c9e6f7fea6f1d3759797b75c0ebaec479 (diff) |
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>
Diffstat (limited to 'drivers/mtd/ubi/ubi.h')
-rw-r--r-- | drivers/mtd/ubi/ubi.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/ubi/ubi.h b/drivers/mtd/ubi/ubi.h index 2a6171226f1f..ef22f922f580 100644 --- a/drivers/mtd/ubi/ubi.h +++ b/drivers/mtd/ubi/ubi.h | |||
@@ -392,6 +392,7 @@ struct ubi_device { | |||
392 | void *peb_buf1; | 392 | void *peb_buf1; |
393 | void *peb_buf2; | 393 | void *peb_buf2; |
394 | struct mutex buf_mutex; | 394 | struct mutex buf_mutex; |
395 | struct mutex ckvol_mutex; | ||
395 | #ifdef CONFIG_MTD_UBI_DEBUG | 396 | #ifdef CONFIG_MTD_UBI_DEBUG |
396 | void *dbg_peb_buf; | 397 | void *dbg_peb_buf; |
397 | struct mutex dbg_buf_mutex; | 398 | struct mutex dbg_buf_mutex; |