I got this problem since 3.8.5 + for-linus (from that time). Have just tried 3.8.6 + for-linus with "git merge -X theirs btrfs/for-linus" but still same problem. Going back to 3.7.4 + for-linus (from that time) doesn't give me the problem. This is an production nfs server with 2x2TB raid1, so cant reboot it that often. Have seen this same problem on another system (also raid1) once, but rebooting helped, no problems since. Both systems use autodefrag, maybe that sometimes triggers it? I really would like to help, so i can stay on the latest kernels. What should i do? Ahmet
[35103.977604] ------------[ cut here ]------------ [35103.977633] kernel BUG at fs/btrfs/ctree.c:1144! [35103.977653] invalid opcode: 0000 [#1] SMP [35103.977674] Modules linked in: dm_mod fuse snd_hda_codec_analog snd_hda_intel snd_hda_codec snd_pcm snd_page_alloc snd_timer snd soundcore ppdev iTCO_wdt lpc_ich mfd_core parport_pc parport kvm [35103.977771] CPU 1 [35103.977783] Pid: 2989, comm: btrfs-endio-wri Not tainted 3.8.6-ainan #119 Dell Inc. OptiPlex 755 /0GM819 [35103.977825] RIP: 0010:[<ffffffff812ae1eb>] [<ffffffff812ae1eb>] __tree_mod_log_rewind+0x25b/0x260 [35103.977864] RSP: 0018:ffff880107a8f7b8 EFLAGS: 00010297 [35103.977885] RAX: 0000000000000000 RBX: ffff88006a9094d0 RCX: ffff8801126124c0 [35103.977912] RDX: 000000000b6398ee RSI: 000000000000066c RDI: ffff880182953a40 [35103.977939] RBP: ffff880107a8f7e8 R08: 0000000000001000 R09: ffff880107a8f760 [35103.977965] R10: 000000000016ed05 R11: 0000000000000000 R12: ffff880222fb76c0 [35103.977993] R13: 000000000000002f R14: ffff8801126124c0 R15: 0000000000000cd2 [35103.978019] FS: 0000000000000000(0000) GS:ffff880237c40000(0000) knlGS:0000000000000000 [35103.978049] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b [35103.978071] CR2: 0000000000b89308 CR3: 00000001b5b2f000 CR4: 00000000000007e0 [35103.978097] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [35103.978123] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 [35103.978150] Process btrfs-endio-wri (pid: 2989, threadinfo ffff880107a8e000, task ffff88014516c0c0) [35103.978182] Stack: [35103.978192] ffff88006a909a44 0000000000000002 ffff88006a9094d0 ffff88006a909a10 [35103.978227] ffff8801355bd400 0000160000000000 ffff880107a8f888 ffffffff812b6266 [35103.978261] ffff880107a8f828 ffff880222fb76c0 ffff88022dea8000 0000000100000cd2 [35103.978295] Call Trace: [35103.978309] [<ffffffff812b6266>] btrfs_search_old_slot+0x646/0x990 [35103.978336] [<ffffffff8132f8ef>] __resolve_indirect_refs+0x16f/0x610 [35103.978363] [<ffffffff812f5e28>] ? free_extent_buffer+0x58/0xb0 [35103.978387] [<ffffffff8132fe19>] ? __add_missing_keys.clone.13+0x89/0x130 [35103.978415] [<ffffffff812f5e28>] ? free_extent_buffer+0x58/0xb0 [35103.978439] [<ffffffff81330446>] find_parent_nodes+0x586/0x9a0 [35103.978462] [<ffffffff812afcc1>] ? btrfs_set_path_blocking+0x31/0x70 [35103.978488] [<ffffffff81330901>] btrfs_find_all_roots+0xa1/0x100 [35103.978513] [<ffffffff812d9810>] ? record_extent_backrefs+0xf0/0xf0 [35103.978538] [<ffffffff81331273>] iterate_extent_inodes+0x183/0x2d0 [35103.978562] [<ffffffff812ed89f>] ? btrfs_get_token_64+0x5f/0xf0 [35103.978587] [<ffffffff812f5e28>] ? free_extent_buffer+0x58/0xb0 [35103.978612] [<ffffffff81331467>] iterate_inodes_from_logical+0xa7/0xb0 [35103.978638] [<ffffffff812d9810>] ? record_extent_backrefs+0xf0/0xf0 [35103.978664] [<ffffffff812d9798>] record_extent_backrefs+0x78/0xf0 [35103.978689] [<ffffffff812e3736>] btrfs_finish_ordered_io+0x186/0xa70 [35103.978715] [<ffffffff81043946>] ? try_to_del_timer_sync+0x76/0xa0 [35103.978740] [<ffffffff81043200>] ? cascade+0xf0/0x190 [35103.978762] [<ffffffff812e4030>] finish_ordered_fn+0x10/0x20 [35103.978785] [<ffffffff813039a8>] worker_loop+0xb8/0x540 [35103.978807] [<ffffffff813038f0>] ? btrfs_queue_worker+0x310/0x310 [35103.978832] [<ffffffff813038f0>] ? btrfs_queue_worker+0x310/0x310 [35103.978857] [<ffffffff81054796>] kthread+0xc6/0xd0 [35103.978877] [<ffffffff810546d0>] ? kthread_freezable_should_stop+0x70/0x70 [35103.978905] [<ffffffff81b1caac>] ret_from_fork+0x7c/0xb0 [35103.978927] [<ffffffff810546d0>] ? kthread_freezable_should_stop+0x70/0x70 [35103.978952] Code: c1 49 63 46 58 48 89 c2 48 c1 e2 05 48 8d 54 10 65 49 63 46 2c 48 89 c6 48 c1 e6 05 48 8d 74 30 65 e8 fa 9b 04 00 e9 ad fe ff ff <0f> 0b 0f 0b 90 55 48 89 e5 41 56 49 89 d6 41 55 49 89 f5 41 54 [35103.979149] RIP [<ffffffff812ae1eb>] __tree_mod_log_rewind+0x25b/0x260 [35103.979178] RSP <ffff880107a8f7b8> [35103.991131] ---[ end trace 3a477bfb86e5ca4a ]---
