linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Marc MERLIN <marc@merlins.org>
To: linux-btrfs@vger.kernel.org
Subject: 3.5.3: kernel BUG at fs/btrfs/ctree.c:3451!
Date: Thu, 20 Sep 2012 10:17:47 -0700	[thread overview]
Message-ID: <20120920171747.GG26105@merlins.org> (raw)

I had a btrfs built on top of 5 drives (dmcrypt devices).

The drive then died while I was writing to the filesystem and my system
crashed and rebooted:

[384555.534020] sd 10:0:0:0: rejecting I/O to offline device                    
[384555.535057] sd 10:0:0:0: rejecting I/O to offline device                    
[384556.666885] ------------[ cut here ]------------                            
[384556.667909] sd 10:0:0:0: [sdj] Synchronizing SCSI cache                     
[384556.677509] kernel BUG at fs/btrfs/ctree.c:3451!                            
[384556.682551] invalid opcode: 0000 [#1] PREEMPT SMP                           
[384556.687878] CPU 2                                                           

	/* push data from right to left */
	copy_extent_buffer(left, right,
			   btrfs_item_nr_offset(btrfs_header_nritems(left)),
			   btrfs_item_nr_offset(0),
			   push_items * sizeof(struct btrfs_item));

	push_space = BTRFS_LEAF_DATA_SIZE(root) -
		     btrfs_item_offset_nr(right, push_items - 1);

	copy_extent_buffer(left, right, btrfs_leaf_data(left) +
		     leaf_data_end(root, left) - push_space,
		     btrfs_leaf_data(right) +
		     btrfs_item_offset_nr(right, push_items - 1),
		     push_space);
	old_left_nritems = btrfs_header_nritems(left);
	BUG_ON(old_left_nritems <= 0);  <<<<<<< 3451

Marc
-- 
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems ....
                                      .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/  

             reply	other threads:[~2012-09-20 17:17 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-20 17:17 Marc MERLIN [this message]
2012-09-21  3:46 ` kernel BUG at fs/btrfs/extent_io.c:1884! Marc MERLIN
2012-09-21  3:51   ` cwillu
2012-09-21  4:11     ` Marc MERLIN
2012-09-21  3:53   ` Liu Bo
2012-09-21  4:57   ` Stefan Behrens
2012-09-21  5:43     ` Marc MERLIN
2012-09-23 16:16   ` crash in read_extent_buffer+0xb7/0xfb Marc MERLIN
2012-09-24 13:08     ` David Sterba
2012-09-24 14:41       ` Marc MERLIN
2012-09-24 15:37         ` David Sterba

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=20120920171747.GG26105@merlins.org \
    --to=marc@merlins.org \
    --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).