Re: [PATCH 6/8] mtd_blkdevs: remove blktrans_ref_mutex

Miquel Raynal
2021-08-23T08:34:33Z

On Mon, 2021-08-23 at 07:33:57 UTC, Christoph Hellwig wrote:
> 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>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks.

Miquel