archive mirror
 help / color / mirror / Atom feed
From: Miquel Raynal <>
To: Desmond Cheong Zhi Xi <>
Cc: Christoph Hellwig <>, Hillf Danton <>,
	syzbot <>,,,,
Subject: Re: [syzbot] possible deadlock in loop_add
Date: Fri, 16 Jul 2021 01:00:28 +0200	[thread overview]
Message-ID: <20210716010028.4218b0de@xps13> (raw)
In-Reply-To: <>


Desmond Cheong Zhi Xi <> wrote on Mon, 12 Jul
2021 16:29:16 +0800:

> On 12/7/21 1:27 pm, Christoph Hellwig wrote:
> > On Sat, Jul 10, 2021 at 09:16:38PM +0800, Hillf Danton wrote:  
> >> To break the lock chain, un/register blkdev without mtd_table_mutex held.  
> > 
> > Yes, Desmond Cheong Zhi Xi sent pretty much the same patch on June 18th
> > (mtd: break circular locks in register_mtd_blktrans), but it did not get
> > picked up.
> >   
> I believe Miquèl was waiting for -rc1 to apply it.

Indeed, I already applied it but did not advertise yet.

> But taking a closer look, although the fix for the register path is the same, Hillf Danton's proposed patch additionally avoids inverting the lock hierarchy on the unregister path. So I believe this new patch should be more robust.

We can definitely do this in two steps if you want.


  reply	other threads:[~2021-07-15 23:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-10 11:01 [syzbot] possible deadlock in loop_add syzbot
     [not found] ` <>
2021-07-12  5:27   ` Christoph Hellwig
2021-07-12  8:29     ` Desmond Cheong Zhi Xi
2021-07-15 23:00       ` Miquel Raynal [this message]
2021-07-17  9:41         ` Desmond Cheong Zhi Xi

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210716010028.4218b0de@xps13 \ \ \ \ \ \ \ \ \ \

* 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;
as well as URLs for NNTP newsgroup(s).