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)
commit560a3915e3df09125d7b20088a177b2872d2d680
treee6c110218ec2e49702e4866674d7daf5035be381
parent89843828399ec825f8ec3e614634a428a951a2b3
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