UBI: remove redundant mutex
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Thu, 7 May 2009 08:25:54 +0000 (11:25 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 18 May 2009 09:26:41 +0000 (12:26 +0300)
commit383d08e045faddd89797959786233d4c0e1ace80
tree3f7456e3aea9b69fe18920791cf06bda6497a64f
parent1406de8e11eb043681297adf86d6892ff8efc27a
UBI: remove redundant mutex

The @mult_mutex does not serve any purpose. We already have
@volumes_mutex and it is enough. The @volume mutex is pushed
down to the 'ubi_rename_volumes()', because we want first
to open all volumes in the exclusive mode, and then lock the
mutex, just like all other ioctl's (remove, re-size, etc) do.

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