Re: kernel BUG at fs/btrfs/extent_io.c:1893!

2012-07-10 Thread Stefan Behrens
On Tue, 10 Jul 2012 09:48:27 +1000, Shavi N wrote:
> Hi,
> 
> I have this problem after trying to run btrfsck.
> I have new 11 HDDs WD 2tb, on two RAID controllers
> Arch Linux, latest kernel. What I was doing was copying and reading
> multiple data at the same time
> After getting I/O errors while trying to access through samba and
> while trying to run a VM with files stored on volume, I ran a btrfsck
> but it failed.


> [ 7155.563435] kernel BUG at fs/btrfs/extent_io.c:1893!
> [ 7155.563437] invalid opcode:  [#2] PREEMPT SMP
> [ 7155.563439] CPU 1
> [ 7155.563439] Modules linked in: nfnetlink_log nfnetlink hwmon_vid
> reiserfs btrfs zlib_deflate libcrc32c microcode ghash_clmulni_intel
> cryptd cx22702 cx88_dvb videobuf_dvb cx88_vp3054_i2c dvb_core
> rc_winfast tuner_simple tuner_types eeepc_wmi asus_wmi pci_hotplug
> tuner cx88_alsa snd_pcm snd_page_alloc snd_timer snd i915
> drm_kms_helper cx8802 cx8800 cx88xx tveeprom btcx_risc videobuf_dma_sg
> mei(C) i2c_i801 drm intel_agp soundcore i2c_algo_bit videobuf_core
> v4l2_common e1000e videodev media rc_core i2c_core iTCO_wdt
> iTCO_vendor_support button acpi_cpufreq mperf processor pcspkr fan
> video thermal sparse_keymap rfkill coretemp intel_gtt wmi evdev
> vboxnetflt(O) crc32c_intel vboxdrv(O) ext4 crc16 jbd2 mbcache usbhid
> hid sd_mod mptsas scsi_transport_sas mptscsih mptbase ahci libahci
> libata xhci_hcd ehci_hcd scsi_mod usbcore usb_common
> [ 7155.563469]
> [ 7155.563471] Pid: 2550, comm: btrfs-delayed-m Tainted: G  D  C O
> 3.4.4-2-ARCH #1 System manufacturer System Product Name/P8Z68-V LX
> [ 7155.563473] RIP: 0010:[]  []
> repair_io_failure+0x17f/0x1c0 [btrfs]
> [ 7155.563485] RSP: 0018:8802f34bb7d0  EFLAGS: 00010246
> [ 7155.563487] RAX: 8802f34bb800 RBX: 023f77d8 RCX: 
> 023f77d8
> [ 7155.563488] RDX: 1000 RSI: 023f77d8 RDI: 
> 8803fa4a0108
> [ 7155.563489] RBP: 8802f34bb840 R08: ea000f21d400 R09: 
> 
> [ 7155.563491] R10: 57ffad78bf21d400 R11: 0001 R12: 
> 1000
> [ 7155.563492] R13: ea000f21d400 R14: 8803fa4a0108 R15: 
> 
> [ 7155.563494] FS:  () GS:88041f28()
> knlGS:
> [ 7155.563496] CS:  0010 DS:  ES:  CR0: 8005003b
> [ 7155.563497] CR2: 0111dc40 CR3: 0180b000 CR4: 
> 000427e0
> [ 7155.563498] DR0:  DR1:  DR2: 
> 
> [ 7155.563500] DR3:  DR6: 0ff0 DR7: 
> 0400
> [ 7155.563502] Process btrfs-delayed-m (pid: 2550, threadinfo
> 8802f34ba000, task 8803eac44f60)
> [ 7155.563503] Stack:
> [ 7155.563504]  8802f34bb7d0 023f77d8 
> 
> [ 7155.563506]    8802f34bb800
> 8802f34bb800
> [ 7155.563508]  88020001 023f77d8 
> 8803fa4a0108
> [ 7155.563511] Call Trace:
> [ 7155.563520]  [] repair_eb_io_failure+0x82/0xb0 [btrfs]
> [ 7155.563534]  []
> btree_read_extent_buffer_pages.constprop.111+0x112/0x120 [btrfs]
> [ 7155.563539]  [] read_tree_block+0x3a/0x50 [btrfs]
> [ 7155.563544]  []
> read_block_for_search.isra.32+0x124/0x3d0 [btrfs]
> [ 7155.563548]  [] ?
> generic_bin_search.constprop.34+0x6b/0x180 [btrfs]
> [ 7155.563554]  [] ? btrfs_tree_read_unlock+0x72/0xb0 
> [btrfs]
> [ 7155.563558]  [] btrfs_search_slot+0x3ec/0x900 [btrfs]
> [ 7155.563563]  [] ?
> add_delayed_tree_ref.isra.4+0xb1/0x1f0 [btrfs]
> [ 7155.563568]  [] ?
> add_delayed_ref_head.isra.1+0xbd/0x1b0 [btrfs]
> [ 7155.563573]  [] btrfs_lookup_extent_info+0x84/0x2f0 
> [btrfs]
> [ 7155.563578]  [] ?
> btrfs_alloc_free_block+0x25c/0x380 [btrfs]
> [ 7155.563582]  [] update_ref_for_cow+0x17a/0x300 [btrfs]
> [ 7155.563586]  [] __btrfs_cow_block+0x230/0x510 [btrfs]
> [ 7155.563591]  [] ? btrfs_buffer_uptodate+0x6d/0x80 [btrfs]
> [ 7155.563596]  [] btrfs_cow_block+0xf7/0x230 [btrfs]
> [ 7155.563600]  [] btrfs_search_slot+0x193/0x900 [btrfs]
> [ 7155.563605]  [] ?
> btrfs_run_delayed_refs+0x1cb/0x450 [btrfs]
> [ 7155.563610]  [] btrfs_lookup_inode+0x2f/0xa0 [btrfs]
> [ 7155.563612]  [] ? mutex_lock+0x16/0x30
> [ 7155.563617]  []
> btrfs_update_delayed_inode+0x71/0x150 [btrfs]
> [ 7155.563622]  []
> btrfs_async_run_delayed_node_done+0x12a/0x1b0 [btrfs]
> [ 7155.563628]  [] worker_loop+0x13d/0x570 [btrfs]
> [ 7155.563633]  [] ? btrfs_queue_worker+0x320/0x320 [btrfs]
> [ 7155.563635]  [] kthread+0x93/0xa0
> [ 7155.563637]  [] kernel_thread_helper+0x4/0x10
> [ 7155.563638]  [] ? kthread_freezable_should_stop+0x70/0x70
> [ 7155.563640]  [] ? gs_change+0x13/0x13
> [ 7155.5

kernel BUG at fs/btrfs/extent_io.c:1893!

2012-07-09 Thread Shavi N
Hi,

I have this problem after trying to run btrfsck.
I have new 11 HDDs WD 2tb, on two RAID controllers
Arch Linux, latest kernel. What I was doing was copying and reading
multiple data at the same time
After getting I/O errors while trying to access through samba and
while trying to run a VM with files stored on volume, I ran a btrfsck
but it failed.

[ 7155.485832] [ cut here ]
[ 7155.486210] kernel BUG at fs/btrfs/extent_io.c:1893!
[ 7155.486575] invalid opcode:  [#1] PREEMPT SMP
[ 7155.486965] CPU 2
[ 7155.486975] Modules linked in: nfnetlink_log nfnetlink hwmon_vid
reiserfs btrfs zlib_deflate libcrc32c microcode ghash_clmulni_intel
cryptd cx22702 cx88_dvb videobuf_dvb cx88_vp3054_i2c dvb_core
rc_winfast tuner_simple tuner_types eeepc_wmi asus_wmi pci_hotplug
tuner cx88_alsa snd_pcm snd_page_alloc snd_timer snd i915
drm_kms_helper cx8802 cx8800 cx88xx tveeprom btcx_risc videobuf_dma_sg
mei(C) i2c_i801 drm intel_agp soundcore i2c_algo_bit videobuf_core
v4l2_common e1000e videodev media rc_core i2c_core iTCO_wdt
iTCO_vendor_support button acpi_cpufreq mperf processor pcspkr fan
video thermal sparse_keymap rfkill coretemp intel_gtt wmi evdev
vboxnetflt(O) crc32c_intel vboxdrv(O) ext4 crc16 jbd2 mbcache usbhid
hid sd_mod mptsas scsi_transport_sas mptscsih mptbase ahci libahci
libata xhci_hcd ehci_hcd scsi_mod usbcore usb_common
[ 7155.490485]
[ 7155.491187] Pid: 2549, comm: btrfs-delayed-m Tainted: G C O
3.4.4-2-ARCH #1 System manufacturer System Product Name/P8Z68-V LX
[ 7155.491976] RIP: 0010:[]  []
repair_io_failure+0x17f/0x1c0 [btrfs]
[ 7155.492849] RSP: 0018:8803e5a4b740  EFLAGS: 00010246
[ 7155.493679] RAX: 8803e5a4b770 RBX: 023f77d8 RCX: 023f77d8
[ 7155.494536] RDX: 1000 RSI: 023f77d8 RDI: 8803fa4a0108
[ 7155.495410] RBP: 8803e5a4b7b0 R08: ea000f21d400 R09: 
[ 7155.496301] R10:  R11: 0001 R12: 1000
[ 7155.497206] R13: ea000f21d400 R14: 8803fa4a0108 R15: 
[ 7155.498128] FS:  () GS:88041f30()
knlGS:
[ 7155.499096] CS:  0010 DS:  ES:  CR0: 8005003b
[ 7155.500062] CR2: 7f3ea3ee7000 CR3: 0180b000 CR4: 000427e0
[ 7155.501059] DR0:  DR1:  DR2: 
[ 7155.502073] DR3:  DR6: 0ff0 DR7: 0400
[ 7155.503103] Process btrfs-delayed-m (pid: 2549, threadinfo
8803e5a4a000, task 880406bb7710)
[ 7155.504168] Stack:
[ 7155.505234]  8803e5a4b740 023f77d8 

[ 7155.506354]    8803e5a4b770
8803e5a4b770
[ 7155.507493]  88030001 023f77d8 
8803fa4a0108
[ 7155.508663] Call Trace:
[ 7155.509822]  [] repair_eb_io_failure+0x82/0xb0 [btrfs]
[ 7155.511018]  []
btree_read_extent_buffer_pages.constprop.111+0x112/0x120 [btrfs]
[ 7155.512249]  [] read_tree_block+0x3a/0x50 [btrfs]
[ 7155.513491]  []
read_block_for_search.isra.32+0x203/0x3d0 [btrfs]
[ 7155.514761]  [] ?
generic_bin_search.constprop.34+0x6b/0x180 [btrfs]
[ 7155.516046]  [] ? unlock_up+0x159/0x180 [btrfs]
[ 7155.517344]  [] btrfs_search_slot+0x3ec/0x900 [btrfs]
[ 7155.518662]  []
lookup_inline_extent_backref+0xa3/0x470 [btrfs]
[ 7155.520001]  []
insert_inline_extent_backref+0x63/0x100 [btrfs]
[ 7155.521342]  [] ? kmem_cache_alloc+0x13f/0x150
[ 7155.522703]  [] ? __btrfs_free_extent+0x229/0x7b0 [btrfs]
[ 7155.524083]  [] __btrfs_inc_extent_ref+0xa1/0x1f0 [btrfs]
[ 7155.525481]  [] run_clustered_refs+0x5f8/0xa00 [btrfs]
[ 7155.526891]  [] ?
generic_bin_search.constprop.34+0x6b/0x180 [btrfs]
[ 7155.528330]  [] ? __find_space_info+0x85/0xa0 [btrfs]
[ 7155.529781]  [] btrfs_run_delayed_refs+0x175/0x450 [btrfs]
[ 7155.531254]  [] ?
block_rsv_release_bytes+0xec/0x1b0 [btrfs]
[ 7155.532718]  [] ? __mutex_lock_slowpath+0x24e/0x340
[ 7155.534153]  [] __btrfs_end_transaction+0x9f/0x350 [btrfs]
[ 7155.535560]  []
btrfs_end_transaction_dmeta+0x18/0x20 [btrfs]
[ 7155.536986]  []
btrfs_async_run_delayed_node_done+0x16a/0x1b0 [btrfs]
[ 7155.538437]  [] worker_loop+0x13d/0x570 [btrfs]
[ 7155.539892]  [] ? btrfs_queue_worker+0x320/0x320 [btrfs]
[ 7155.541358]  [] kthread+0x93/0xa0
[ 7155.542831]  [] kernel_thread_helper+0x4/0x10
[ 7155.544314]  [] ? kthread_freezable_should_stop+0x70/0x70
[ 7155.545819]  [] ? gs_change+0x13/0x13
[ 7155.547301] Code: 68 f4 ba e0 b8 fb ff ff ff 48 8b 5d d8 4c 8b 65
e0 4c 8b 6d e8 4c 8b 75 f0 4c 8b 7d f8 c9 c3 0f 1f 44 00 00 b8 fb ff
ff ff eb de <0f> 0b 0f 0b 49 8b 45 08 49 8b 8f 88 00 00 00 4d 89 f0 48
8b 55
[ 7155.550585] RIP  [] repair_io_failure+0x17f/0x1c0 [btrfs]
[ 7155.552217]  RSP 
[ 7155.560702] [ cut here ]
[ 7155.560725] ---[ end trace a9e42293494b43b8 ]---
[ 7155.563435] kernel BUG at fs/btrfs/extent_io.c:1893!
[ 7155.563437] invalid opcode:  [#2] PREEM