From: Jens Axboe <axboe@kernel.dk>
To: hch@lst.de, brauner@kernel.org, dsterba@suse.com, hare@suse.de,
jinpu.wang@ionos.com, Yu Kuai <yukuai1@huaweicloud.com>
Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org,
yukuai3@huawei.com, yi.zhang@huawei.com, yangerkun@huawei.com
Subject: Re: [PATCH -next v2] block: fix wrong mode for blkdev_get_by_dev() from disk_scan_partitions()
Date: Tue, 20 Jun 2023 07:18:23 -0600 [thread overview]
Message-ID: <168726710308.3595534.13269294720973239157.b4-ty@kernel.dk> (raw)
In-Reply-To: <20230618140402.7556-1-yukuai1@huaweicloud.com>
On Sun, 18 Jun 2023 22:04:02 +0800, Yu Kuai wrote:
> After commit 2736e8eeb0cc ("block: use the holder as indication for
> exclusive opens"), blkdev_get_by_dev() will warn if holder is NULL and
> mode contains 'FMODE_EXCL'.
>
> holder from blkdev_get_by_dev() from disk_scan_partitions() is always NULL,
> hence it should not use 'FMODE_EXCL', which is broben by the commit. For
> consequence, WARN_ON_ONCE() will be triggered from blkdev_get_by_dev()
> if user scan partitions with device opened exclusively.
>
> [...]
Applied, thanks!
[1/1] block: fix wrong mode for blkdev_get_by_dev() from disk_scan_partitions()
commit: 985958b8584cc143555f1bd735e7ab5066c944a7
Best regards,
--
Jens Axboe
prev parent reply other threads:[~2023-06-20 13:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-18 14:04 Yu Kuai
2023-06-19 4:59 ` Christoph Hellwig
2023-06-20 9:54 ` Christian Brauner
2023-06-20 13:18 ` Jens Axboe [this message]
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=168726710308.3595534.13269294720973239157.b4-ty@kernel.dk \
--to=axboe@kernel.dk \
--cc=brauner@kernel.org \
--cc=dsterba@suse.com \
--cc=hare@suse.de \
--cc=hch@lst.de \
--cc=jinpu.wang@ionos.com \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=yangerkun@huawei.com \
--cc=yi.zhang@huawei.com \
--cc=yukuai1@huaweicloud.com \
--cc=yukuai3@huawei.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®