]> git.baikalelectronics.ru Git - kernel.git/commit
mtd_blkdevs: remove blktrans_ref_mutex
authorChristoph Hellwig <hch@lst.de>
Mon, 23 Aug 2021 07:33:57 +0000 (09:33 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 23 Aug 2021 08:01:11 +0000 (10:01 +0200)
commit1e3e5842f1934c1eed0da5ba6ac980b17778c93e
treee6c110218ec2e49702e4866674d7daf5035be381
parentba7c1f91d84fcb8f677153afca35484d3f66ea21
mtd_blkdevs: remove blktrans_ref_mutex

blktrans_ref_mutex is not actually needed.  The kref is serialized
internally, and devnum assignment in add_mtd_blktrans_dev happens before
the disk is added and thus any of the block_device_operations methods
otherwise using it are called.  It  is also already serialized by the
global mtd_table_mutex.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210823073359.705281-7-hch@lst.de
drivers/mtd/mtd_blkdevs.c