mtd_blkdevs: use lockdep_assert_held
authorChristoph Hellwig <hch@lst.de>
Mon, 23 Aug 2021 07:33:53 +0000 (09:33 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 23 Aug 2021 08:01:01 +0000 (10:01 +0200)
commitf214eebf8de4d2e412a35ff140687d88f056143a
tree8afe41b18da53106f96dd6a9a4de08ce5b9a74db
parent799ae31c58ae766a4ce9b198658b286ecaf2c575
mtd_blkdevs: use lockdep_assert_held

Use lockdep_assert_held to ensure mtd_table_mutex is held instead of
mutex_trylock games.

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-3-hch@lst.de
drivers/mtd/mtd_blkdevs.c