From: Miquel Raynal <miquel.raynal@bootlin.com>
To: Christoph Hellwig <hch@lst.de>,
Miquel Raynal <miquel.raynal@bootlin.com>,
Richard Weinberger <richard@nod.at>,
Vignesh Raghavendra <vigneshr@ti.com>
Cc: Guenter Roeck <linux@roeck-us.net>, linux-mtd@lists.infradead.org
Subject: Re: [PATCH 6/8] mtd_blkdevs: remove blktrans_ref_mutex
Date: Mon, 23 Aug 2021 10:33:22 +0200 [thread overview]
Message-ID: <20210823083322.9191-1-miquel.raynal@bootlin.com> (raw)
In-Reply-To: <20210823073359.705281-7-hch@lst.de>
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
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
next prev parent reply other threads:[~2021-08-23 8:34 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-23 7:33 mtd locking fix and cleanups Christoph Hellwig
2021-08-23 7:33 ` [PATCH 1/8] mtd_blkdevs: don't hold del_mtd_blktrans_dev in blktrans_{open, release} Christoph Hellwig
2021-08-23 8:33 ` Miquel Raynal
2021-08-23 7:33 ` [PATCH 2/8] mtd_blkdevs: use lockdep_assert_held Christoph Hellwig
2021-08-23 8:33 ` Miquel Raynal
2021-08-23 7:33 ` [PATCH 3/8] mtd/ftl: don't cast away the type when calling add_mtd_blktrans_dev Christoph Hellwig
2021-08-23 8:33 ` Miquel Raynal
2021-08-23 7:33 ` [PATCH 4/8] mtd/rfd_ftl: " Christoph Hellwig
2021-08-23 8:33 ` Miquel Raynal
2021-08-23 7:33 ` [PATCH 5/8] mtd_blkdevs: simplify blktrans_dev_get Christoph Hellwig
2021-08-23 8:33 ` Miquel Raynal
2021-08-23 7:33 ` [PATCH 6/8] mtd_blkdevs: remove blktrans_ref_mutex Christoph Hellwig
2021-08-23 8:33 ` Miquel Raynal [this message]
2021-08-23 7:33 ` [PATCH 7/8] mtd_blkdevs: simplify blktrans_getgeo Christoph Hellwig
2021-08-23 8:33 ` Miquel Raynal
2021-08-23 7:33 ` [PATCH 8/8] mtd_blkdevs: simplify the refcounting in blktrans_{open, release} Christoph Hellwig
2021-08-23 8:33 ` Miquel Raynal
2021-08-23 8:30 ` mtd locking fix and cleanups Miquel Raynal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210823083322.9191-1-miquel.raynal@bootlin.com \
--to=miquel.raynal@bootlin.com \
--cc=hch@lst.de \
--cc=linux-mtd@lists.infradead.org \
--cc=linux@roeck-us.net \
--cc=richard@nod.at \
--cc=vigneshr@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.