Linux Btrfs filesystem development
 help / color / mirror / Atom feed
From: David Sterba <dsterba@suse.cz>
To: Anand Jain <anand.jain@oracle.com>
Cc: Su Yue <l@damenly.su>, Btrfs BTRFS <linux-btrfs@vger.kernel.org>
Subject: Re: [report] lockdep warning when mounting seed device
Date: Fri, 26 Feb 2021 16:10:44 +0100	[thread overview]
Message-ID: <20210226151044.GL7604@twin.jikos.cz> (raw)
In-Reply-To: <50ff53e3-6e6f-bc6d-31dc-ac376ed944ce@oracle.com>

On Fri, Feb 26, 2021 at 01:01:02PM +0800, Anand Jain wrote:
> On 25/02/2021 12:39, Su Yue wrote:
> > 
> > While playing with seed device(misc/next and v5.11), lockdep complains 
> > the following:
> > 
> > To reproduce:
> > 
> > dev1=/dev/sdb1
> > dev2=/dev/sdb2
> > 
> > umount /mnt
> > 
> > mkfs.btrfs -f $dev1
> > 
> > btrfstune -S 1 $dev1
> > 
> > mount $dev1 /mnt
> > 
> > btrfs device add $dev2 /mnt/ -f
> > 
> > umount /mnt
> > 
> > mount $dev2 /mnt
> > 
> > umount /mnt
> > 
> > 
> 
> In my understanding the commit 01d01caf19ff7c537527d352d169c4368375c0a1
>   (btrfs: move the chunk_mutex in btrfs_read_chunk_tree
>   fixed this bug in 5.9.
> Could you please try this [1] patch,
> [1] 
> https://patchwork.kernel.org/project/linux-btrfs/patch/20200717100525.320697-1-anand.jain@oracle.com/
> Patch [1] still relevant as the device_list_mutex in clone_fs_devices() 
> is redundant. We could remove it as well.

So the fix 01d01caf19ff7c was not sufficient, the lockdep splat is
reproducible.

  parent reply	other threads:[~2021-02-26 15:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-25  4:39 [report] lockdep warning when mounting seed device Su Yue
2021-02-26  5:01 ` Anand Jain
2021-02-26  5:59   ` Su Yue
2021-02-26 15:10   ` David Sterba [this message]
2021-03-02  5:04     ` Anand Jain
2021-03-02 11:16       ` David Sterba
2021-02-27  1:12 ` Chris Murphy
2021-02-27  3:34   ` damenly

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=20210226151044.GL7604@twin.jikos.cz \
    --to=dsterba@suse.cz \
    --cc=anand.jain@oracle.com \
    --cc=l@damenly.su \
    --cc=linux-btrfs@vger.kernel.org \
    /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