UBI: block: Set disk_capacity out of the mutex
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Mon, 5 May 2014 10:11:53 +0000 (07:11 -0300)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Mon, 28 Jul 2014 15:52:10 +0000 (18:52 +0300)
There's no need to set the disk capacity with the mutex held, so this
commit takes the variable setting out of the mutex. This simplifies
the disk capacity fix for very large volumes in a follow up commit.

Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
drivers/mtd/ubi/block.c

Simple merge