]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: mtdblock: remove the needless mtdblks_lock
authorGu Zheng <guz.fnst@cn.fujitsu.com>
Wed, 3 Dec 2014 02:19:52 +0000 (10:19 +0800)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 7 Jan 2015 20:51:56 +0000 (12:51 -0800)
commitde251e6cd8e3dafe8198eefa63d844c14d181915
tree572f5ca2d9d560e265a31f198b5c8ef2e6810553
parent459a7170317741d0f2f7750e7b8068ff4b1a8ae2
mtd: mtdblock: remove the needless mtdblks_lock

The global lock mtdblks_lock was used to protect the original mtdblks
array to avoid race conditions. As the mtdblks array was already gone,
but the mtdblks_lock is left, and it causes latency when open/release dev.
So we need to remove it here.

Signed-off-by: Gu Zheng <guz.fnst@cn.fujitsu.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/mtdblock.c