Linux Btrfs filesystem development
 help / color / mirror / Atom feed
From: Josef Bacik <josef@redhat.com>
To: Stefan Kleijkers <stefan@unilogicnetworks.net>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: WARNING: at fs/btrfs/inode.c:2198 btrfs_orphan_commit_root+0xa8/0xc0
Date: Wed, 9 Nov 2011 10:35:53 -0500	[thread overview]
Message-ID: <20111109153552.GB1810@localhost.localdomain> (raw)
In-Reply-To: <4EBA54F2.3030801@unilogicnetworks.net>

On Wed, Nov 09, 2011 at 11:24:50AM +0100, Stefan Kleijkers wrote:
> Hello,
> 
> I'm seeing a lot of warnings in dmesg with a BTRFS filesystem. I'm
> using the 3.1 kernel, I found a patch for these warnings (
> http://marc.info/?l=linux-btrfs&m=131547325515336&w=2)
> <http://marc.info/?l=linux-btrfs&m=131547325515336&w=2>, but that
> patch has already been included in 3.1. Are there any other patches
> I can try?
> 
> I'm using BTRFS in combination with Ceph and it looks like after a
> while with a high rsync workload that the IO stalls for some time,
> could the warnings result in IO stall?
> 

Can you run with this patch and see if you get warnings from extent-tree.c?
Thanks,

Josef


diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index 0b044e5..144cd8e 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -3721,6 +3721,7 @@ static void block_rsv_release_bytes(struct btrfs_block_rsv *block_rsv,
 	spin_lock(&block_rsv->lock);
 	if (num_bytes == (u64)-1)
 		num_bytes = block_rsv->size;
+	WARN_ON(block_rsv->size < num_bytes);
 	block_rsv->size -= num_bytes;
 	if (block_rsv->reserved >= block_rsv->size) {
 		num_bytes = block_rsv->reserved - block_rsv->size;

  parent reply	other threads:[~2011-11-09 15:35 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-09 10:24 WARNING: at fs/btrfs/inode.c:2198 btrfs_orphan_commit_root+0xa8/0xc0 Stefan Kleijkers
2011-11-09 14:01 ` Christian Brunner
2011-11-09 15:35 ` Josef Bacik [this message]
2011-11-10 12:13   ` Stefan Kleijkers
2011-11-14 16:03     ` Josef Bacik
2011-11-15 19:13       ` Stefan Kleijkers
2011-11-15 19:29         ` Josef Bacik
2011-11-18 19:30           ` Stefan Kleijkers
     [not found]           ` <4EC2C940.40605@unilogicnetworks.net>
2011-11-18 19:52             ` Josef Bacik
2011-11-26 14:14               ` Stefan Kleijkers
2011-11-26 21:21                 ` Christian Brunner
2011-12-01 15:14                 ` Josef Bacik
2011-12-01 20:03                   ` Stefan Kleijkers

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=20111109153552.GB1810@localhost.localdomain \
    --to=josef@redhat.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=stefan@unilogicnetworks.net \
    /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