linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Josef Bacik <jbacik@fusionio.com>
To: Miao Xie <miaox@cn.fujitsu.com>
Cc: <linux-btrfs@vger.kernel.org>
Subject: Re: [PATCH 2/3] Btrfs: fix oops caused by the space balance and dead roots
Date: Wed, 25 Sep 2013 10:11:25 -0400	[thread overview]
Message-ID: <20130925141125.GE18681@localhost.localdomain> (raw)
In-Reply-To: <1380116865-23406-2-git-send-email-miaox@cn.fujitsu.com>

On Wed, Sep 25, 2013 at 09:47:44PM +0800, Miao Xie wrote:
> When doing space balance and subvolume destroy at the same time, we met
> the following oops:
> 
> kernel BUG at fs/btrfs/relocation.c:2247!
> RIP: 0010: [<ffffffffa04cec16>] prepare_to_merge+0x154/0x1f0 [btrfs]
> Call Trace:
>  [<ffffffffa04b5ab7>] relocate_block_group+0x466/0x4e6 [btrfs]
>  [<ffffffffa04b5c7a>] btrfs_relocate_block_group+0x143/0x275 [btrfs]
>  [<ffffffffa0495c56>] btrfs_relocate_chunk.isra.27+0x5c/0x5a2 [btrfs]
>  [<ffffffffa0459871>] ? btrfs_item_key_to_cpu+0x15/0x31 [btrfs]
>  [<ffffffffa048b46a>] ? btrfs_get_token_64+0x7e/0xcd [btrfs]
>  [<ffffffffa04a3467>] ? btrfs_tree_read_unlock_blocking+0xb2/0xb7 [btrfs]
>  [<ffffffffa049907d>] btrfs_balance+0x9c7/0xb6f [btrfs]
>  [<ffffffffa049ef84>] btrfs_ioctl_balance+0x234/0x2ac [btrfs]
>  [<ffffffffa04a1e8e>] btrfs_ioctl+0xd87/0x1ef9 [btrfs]
>  [<ffffffff81122f53>] ? path_openat+0x234/0x4db
>  [<ffffffff813c3b78>] ? __do_page_fault+0x31d/0x391
>  [<ffffffff810f8ab6>] ? vma_link+0x74/0x94
>  [<ffffffff811250f5>] vfs_ioctl+0x1d/0x39
>  [<ffffffff811258c8>] do_vfs_ioctl+0x32d/0x3e2
>  [<ffffffff811259d4>] SyS_ioctl+0x57/0x83
>  [<ffffffff813c3bfa>] ? do_page_fault+0xe/0x10
>  [<ffffffff813c73c2>] system_call_fastpath+0x16/0x1b
> 

Can you put this into an xfstest please so I can reproduce and verify your patch
fixes the problem?  Thanks,

Josef

  reply	other threads:[~2013-09-25 14:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-25 13:47 [PATCH 1/3] Btrfs: insert orphan roots into fs radix tree Miao Xie
2013-09-25 13:47 ` [PATCH 2/3] Btrfs: fix oops caused by the space balance and dead roots Miao Xie
2013-09-25 14:11   ` Josef Bacik [this message]
2013-09-26  9:29     ` Miao Xie
2013-09-25 13:47 ` [PATCH 3/3] Btrfs: fix BUG_ON() casued by the reserved space migration Miao Xie

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=20130925141125.GE18681@localhost.localdomain \
    --to=jbacik@fusionio.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=miaox@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 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).