From: Adam Borowski <kilobyte@angband.pl>
To: Chris Mason <clm@fb.com>,
linux-btrfs@vger.kernel.org, Eric Biggers <ebiggers3@gmail.com>
Subject: Re: WARNING at fs/btrfs/inode.c:9261 btrfs_destroy_inode()
Date: Wed, 11 May 2016 20:25:14 +0200 [thread overview]
Message-ID: <20160511182514.GA6423@angband.pl> (raw)
In-Reply-To: <20160510235758.3ow2wdumtisauw4n@floor.thefacebook.com>
Chris Mason wrote:
> On Tue, May 10, 2016 at 06:19:20PM -0500, Eric Biggers wrote:
> > The following warning has been triggering for me since about v4.6-rc3:
> >
> > WARN_ON(BTRFS_I(inode)->csum_bytes);
> >
> > On one machine the warning has occurred 657 times since v4.6-rc5. On another it
> > has occurred 3 times since v4.6-rc3. Both are now on v4.6-rc7, where I have
> > still observed the warning. The warnings occur in groups, and do_unlinkat() and
> > evict() are always in the call stack.
>
> It is a known issue, but I'm having a very hard time triggering it
> quickly enough to track it down. I do know csum_bytes is only 4096 or
> 8192 when it hits, but beyond that I haven't been able to trigger it
> consistently enough to test a patch.
It happens for me after no more than a few minutes of regular use that
includes unlink, destructive rename or snapshot deletion, even without
deliberately trying to trigger it. On the other hand, repeating the same
operation that triggered the warning doesn't trigger it again (on live fs, I
did not try a whole-device snapshot of the filesystem).
Effective mount options for this fs:
/dev/sda1 on / type btrfs (rw,noatime,compress=lzo,ssd,space_cache,subvolid=4996,subvol=/sys)
/dev/sda1 on /var/cache type btrfs (rw,noatime,compress=lzo,ssd,space_cache,subvolid=263,subvol=/syscache)
/dev/sda1 on /home type btrfs (rw,noatime,compress=lzo,ssd,space_cache,subvolid=258,subvol=/home)
/dev/sda1 on /mnt/btr1 type btrfs (rw,noatime,compress=lzo,ssd,space_cache,subvolid=5,subvol=/)
/dev/sda1 on /home/kilobyte/.cache type btrfs (rw,noatime,compress=lzo,ssd,space_cache,subvolid=259,subvol=/kb-cache)
/dev/sda1 on /home/kilobyte/tmp type btrfs (rw,noatime,compress=lzo,ssd,space_cache,subvolid=260,subvol=/kb-tmp)
/dev/sda1 on /srv/chroots type btrfs (rw,noatime,compress=lzo,ssd,space_cache,subvolid=5,subvol=/chroots)
I've been running with asserts/etc and a s/WARN_ON/printk/ patch I'll send
after this mail for almost two weeks already, no data loss or any
inconsistency. My use is mostly sbuild: snapshot+lots of dpkg+lots of
gcc+snapshot deletion.
Could you confirm my understanding? I don't know btrfs internals, but it
appears to me that unsaved pending checksums attached to an inode don't
matter if the inode is being deleted anyway. Is this correct?
If so, please apply the patch to silence the warning in non-ASSERTS builds;
people rightfully panic when they see a WARN with tainted kernel and so on,
believing the filesystem needs an immediate fsck + possibly restore.
Having such pending checksums means badness elsewhere -- they should have
been already saved at this point, right? But no matter the cause, it
doesn't break btrfs_destroy_inode.
Meow!
--
How to exploit the Bible for weight loss:
Pr28:25: he that putteth his trust in the ʟᴏʀᴅ shall be made fat.
next prev parent reply other threads:[~2016-05-11 18:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-10 23:19 WARNING at fs/btrfs/inode.c:9261 btrfs_destroy_inode() Eric Biggers
2016-05-10 23:57 ` Chris Mason
2016-05-11 18:25 ` Adam Borowski [this message]
2016-05-11 18:29 ` [PATCH for 4.6] btrfs: disable a spurious WARN_ON in btrfs_destroy_inode Adam Borowski
2016-05-11 20:17 ` Josef Bacik
2016-05-14 0:56 ` WARNING at fs/btrfs/inode.c:9261 btrfs_destroy_inode() Chris Mason
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=20160511182514.GA6423@angband.pl \
--to=kilobyte@angband.pl \
--cc=clm@fb.com \
--cc=ebiggers3@gmail.com \
--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;
as well as URLs for NNTP newsgroup(s).