From: Jens Axboe <axboe@kernel.dk>
To: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>,
Christoph Hellwig <hch@lst.de>,
linux-block <linux-block@vger.kernel.org>
Subject: Re: [PATCH] block: genhd: don't call blkdev_show() with major_names_lock held
Date: Tue, 7 Sep 2021 08:36:48 -0600 [thread overview]
Message-ID: <75efddd1-726c-4065-709c-0c88c03c38ed@kernel.dk> (raw)
In-Reply-To: <18a02da2-0bf3-550e-b071-2b4ab13c49f0@i-love.sakura.ne.jp>
On 9/7/21 5:52 AM, Tetsuo Handa wrote:
> The simplest fix is to call probe function without holding
> major_names_lock [1], but Christoph Hellwig does not like such idea.
> Therefore, instead of holding major_names_lock in blkdev_show(),
> introduce a different lock for blkdev_show() in order to break
> "sb_writers#$N => &p->lock => major_names_lock" dependency chain.
Agree, that's probably the easiest fix here. Applied, thanks.
--
Jens Axboe
next prev parent reply other threads:[~2021-09-07 14:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-07 11:52 [PATCH] block: genhd: don't call blkdev_show() with major_names_lock held Tetsuo Handa
2021-09-07 14:36 ` Jens Axboe [this message]
2021-09-07 14:42 ` Tetsuo Handa
2021-09-07 17:16 ` Jens Axboe
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=75efddd1-726c-4065-709c-0c88c03c38ed@kernel.dk \
--to=axboe@kernel.dk \
--cc=hch@lst.de \
--cc=linux-block@vger.kernel.org \
--cc=penguin-kernel@i-love.sakura.ne.jp \
/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