UBI: tweak volumes locking some more
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 17 Dec 2007 15:08:55 +0000 (17:08 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 26 Dec 2007 17:15:16 +0000 (19:15 +0200)
commit40e4d0c1660f8ee01ea4ed570297b32c35c70aa3
treed1fbdf8b790ebc002302259e9f0d507d5a508855
parentd05c77a816974c09f8c7e8f48e5b9f7b59dafdf3
UBI: tweak volumes locking some more

Make the code more consistent by requiring the caller to lock the
ubi->volume_mutex, because this is what we do for updates.

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