From: Chandan Rajendra <chandan@linux.vnet.ibm.com>
To: Chris Mason <clm@fb.com>
Cc: Gabriel C <nix.or.die@gmail.com>,
linux-btrfs@vger.kernel.org, quwenruo@cn.fujitsu.com
Subject: Re: A lot warnings in dmesg while running thunderbird
Date: Mon, 11 Jul 2016 11:28:01 +0530 [thread overview]
Message-ID: <35812568.Zn4Yz0rfXf@localhost.localdomain> (raw)
In-Reply-To: <73545420-2ce5-c4d3-d59a-98d2114bafd2@fb.com>
On Friday, July 08, 2016 12:02:35 PM Chris Mason wrote:
>
> On 07/08/2016 11:02 AM, Gabriel C wrote:
> > On 08.07.2016 14:41, Chris Mason wrote:
> >
> >>
> >>
> >> On 07/08/2016 05:57 AM, Gabriel C wrote:
> >>> 2016-07-07 21:21 GMT+02:00 Chris Mason <clm@fb.com>:
> >>>>
> >>>>
> >>>> On 07/07/2016 06:24 AM, Gabriel C wrote:
> >>>>>
> >>>>> Hi,
> >>>>>
> >>>>> while running thunderbird on linux 4.6.3 and 4.7.0-rc6 ( didn't tested
> >>>>> other versions )
> >>>>> I trigger the following :
> >>>>
> >>>>
> >>>> I definitely thought we had this fixed in v4.7-rc. Can you easily
> >>>> fsck this filesystem? Something strange is going on.
> >>>
> >>> Yes , btrfs check and btrfs check --check-data-csum are fine , no
> >>> errors found.
> >>>
> >>> If you want me to test any patches let me know.
> >>>
> >>
> >> Can you please try a v4.5 stable kernel? I'm curious if this really
> >> is the same regression that I tried to fix in v4.7
> >>
> >
> > I'm on linux 4.5.7 now and everything is fine. I'm writing this email
> > from thunderbird.. which was not
> > possible in 4.6.3 or 4.7.-rc.
> >
> > Let me know you want me to test other kernels or whatever else may help
> > fixing this problem.
> >
>
> Can you please run the attached test program:
>
> gcc -o short-write short-write.c -lpthread
> ./short-write some-new-file-on-btrfs
>
> I want to see if you're triggering the same problem we've tried to fix,
> or something else.
>
Hi Chris,
I am able to reproduce the issue with the 'short-write' program. But before
the call trace associated with btrfs_destroy_inode(), I see the following call
trace ...
------------[ cut here ]------------
WARNING: CPU: 2 PID: 2311 at /home/chandan/repos/linux/fs/btrfs/extent-tree.c:4303 btrfs_free_reserved_data_space_noquota+0xe8/0x100
Modules linked in:
CPU: 2 PID: 2311 Comm: short-write Not tainted 4.7.0-rc6-ga99cde4 #1
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011
0000000000000000 ffff8818ceb8ba30 ffffffff8145c2a1 0000000000000000
0000000000000000 ffff8818ceb8ba70 ffffffff81056a7c 000010cf81346936
ffff8818bdba4800 0000000000001000 ffff8818bdd5ee00 ffff8818bf1bbd84
Call Trace:
[<ffffffff8145c2a1>] dump_stack+0x4d/0x6c
[<ffffffff81056a7c>] __warn+0xcc/0xf0
[<ffffffff81056b58>] warn_slowpath_null+0x18/0x20
[<ffffffff8134a3c8>] btrfs_free_reserved_data_space_noquota+0xe8/0x100
[<ffffffff81368b39>] btrfs_clear_bit_hook+0x2f9/0x370
[<ffffffff813830e5>] clear_state_bit+0x55/0x1b0
[<ffffffff81383460>] __clear_extent_bit+0x220/0x3b0
[<ffffffff813cb5f2>] ? __btrfs_qgroup_release_data+0x82/0x110
[<ffffffff81383bc5>] clear_extent_bit+0x25/0x30
[<ffffffff8136eb53>] btrfs_invalidatepage+0x273/0x2c0
[<ffffffff81131223>] truncate_inode_page+0x83/0x90
[<ffffffff811313da>] truncate_inode_pages_range+0x17a/0x6c0
[<ffffffff811319c2>] truncate_pagecache+0x42/0x60
[<ffffffff81131a0d>] truncate_setsize+0x2d/0x40
[<ffffffff81370d7f>] btrfs_setattr+0x1ef/0x320
[<ffffffff8119680c>] notify_change+0x1dc/0x380
[<ffffffff811788b1>] do_truncate+0x61/0xa0
[<ffffffff81178c09>] do_sys_ftruncate.constprop.17+0xf9/0x160
[<ffffffff81178c99>] SyS_ftruncate+0x9/0x10
[<ffffffff81a27d1b>] entry_SYSCALL_64_fastpath+0x13/0x8f
---[ end trace 5682b0d8e8a631ed ]---
I will continue to debug and find out the root cause.
--
chandan
next prev parent reply other threads:[~2016-07-11 5:58 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-07 10:24 A lot warnings in dmesg while running thunderbird Gabriel C
2016-07-07 19:21 ` Chris Mason
2016-07-08 9:57 ` Gabriel C
2016-07-08 12:41 ` Chris Mason
2016-07-08 14:05 ` Gabriel C
2016-07-08 15:02 ` Gabriel C
2016-07-08 16:02 ` Chris Mason
2016-07-08 18:21 ` Adam Borowski
2016-07-08 21:47 ` Adam Borowski
2016-07-08 18:23 ` Duncan
2016-07-11 5:58 ` Chandan Rajendra [this message]
2016-07-11 10:51 ` Chris Mason
2016-07-19 11:05 ` Chris Mason
2016-07-20 0:11 ` Gabriel C
2016-07-20 13:50 ` Chris Mason
2016-07-20 17:50 ` Gabriel C
2016-07-21 12:56 ` Chris Mason
2016-07-21 21:25 ` Gabriel C
2016-07-22 0:53 ` Adam Borowski
2016-07-25 0:36 ` Dave Chinner
2016-08-01 15:23 ` Chris Mason
2016-07-15 19:35 ` Chris Mason
2016-07-15 21:08 ` 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=35812568.Zn4Yz0rfXf@localhost.localdomain \
--to=chandan@linux.vnet.ibm.com \
--cc=clm@fb.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=nix.or.die@gmail.com \
--cc=quwenruo@cn.fujitsu.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.