mtd_blkdevs: don't hold del_mtd_blktrans_dev in blktrans_{open, release}
authorChristoph Hellwig <hch@lst.de>
Mon, 23 Aug 2021 07:33:52 +0000 (09:33 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 23 Aug 2021 08:00:59 +0000 (10:00 +0200)
commit799ae31c58ae766a4ce9b198658b286ecaf2c575
tree0e4c01a1cc865ef7377bc05b3c7bdc44b804ba60
parenta89d69a44e282be95ae76125dddc79515541efeb
mtd_blkdevs: don't hold del_mtd_blktrans_dev in blktrans_{open, release}

There is nothing that this protects against except for slightly reducing
the window when new opens can appear just before calling del_gendisk.

Reported-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210823073359.705281-2-hch@lst.de
drivers/mtd/mtd_blkdevs.c