linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* btrfs balance segfault, kernel BUG at fs/btrfs/extent-tree.c:7727
@ 2014-10-09 14:19 Petr Janecek
  2014-10-13 15:12 ` Rich Freeman
  0 siblings, 1 reply; 5+ messages in thread
From: Petr Janecek @ 2014-10-09 14:19 UTC (permalink / raw)
  To: linux-btrfs

Hello,

  I have trouble finishing btrfs balance on five disk raid10 fs.
I added a disk to 4x3TB raid10 fs and run "btrfs balance start
/mnt/b3", which segfaulted after few hours, probably because of the BUG
below. "btrfs check" does not find any errors, both before the balance
and after reboot (the fs becomes un-umountable).

This was second attempt of balance run, the first one ended the same,
see Comment 10 on bugzilla https://bugzilla.kernel.org/show_bug.cgi?id=64961

There are ~7.5M files on /mnt/b3; one subvolume with 4.8M files has been
snapshot 85 times.

root@fs0:~# uname -a
Linux fs0 3.17.0 #10 SMP Mon Oct 6 11:31:13 CEST 2014 x86_64 GNU/Linux
root@fs0:~# btrfs fi show /mnt/b3
Label: 'BTR3'  uuid: f181dd81-c219-44fc-b113-3a8cfd0d3295
	Total devices 5 FS bytes used 2.35TiB
	devid    1 size 2.73TiB used 1.05TiB path /dev/sde
	devid    2 size 2.73TiB used 1.05TiB path /dev/sdf
	devid    3 size 2.73TiB used 1.05TiB path /dev/sdg
	devid    4 size 2.73TiB used 1.05TiB path /dev/sdh
	devid    5 size 3.64TiB used 524.03GiB path /dev/sdp

Btrfs v3.16
root@fs0:~# btrfs fi df /mnt/b3
Data, RAID10: total=2.34TiB, used=2.34TiB
System, RAID1: total=32.00MiB, used=304.00KiB
Metadata, RAID1: total=15.00GiB, used=13.75GiB
unknown, single: total=512.00MiB, used=496.00KiB


[22717.728944] BTRFS info (device sdp): relocating block group 2777799458816 flags 65
[22735.276539] BTRFS info (device sdp): found 60187 extents
[22744.233882] ------------[ cut here ]------------
[22744.238559] WARNING: CPU: 0 PID: 4211 at fs/btrfs/extent-tree.c:876 btrfs_lookup_extent_info+0x292/0x30a [btrfs]()
[22744.248953] Modules linked in: nfsd auth_rpcgss oid_registry nfs_acl nfs lockd fscache sunrpc xfs libcrc32c loop raid10 md_mod iTCO_wdt x86_pkg_temp_thermal coretemp kvm_intel kvm crc32_pclmul ghash_clmulni_intel iTCO_vendor_support aesni_intel aes_x86_64 ablk_helper cryptd lrw gf128mul glue_helper lpc_ich mfd_core i2c_i801 i2c_core pcspkr psmouse evdev microcode serio_raw battery ipmi_si ipmi_msghandler video tpm_tis tpm button acpi_cpufreq processor ie31200_edac edac_core btrfs xor raid6_pq sg sd_mod uas usb_storage hid_generic usbhid hid ahci libahci mpt2sas raid_class libata scsi_transport_sas crc32c_intel ehci_pci e1000e ehci_hcd ptp pps_core scsi_mod thermal fan thermal_sys usbcore usb_common
[22744.312827] CPU: 0 PID: 4211 Comm: btrfs Not tainted 3.17.0 #10
[22744.318770] Hardware name: Supermicro X9SCL/X9SCM/X9SCL/X9SCM, BIOS 2.0a 06/08/2012
[22744.326475]  0000000000000000 0000000000000009 ffffffff813a6a46 0000000000000000
[22744.333983]  ffffffff8103b591 0000000000000000 ffffffffc0593cc4 ffff88027beef380
[22744.341503]  ffff88028da8ff50 0000000000000000 0000000000000000 ffff880136d1a000
[22744.349019] Call Trace:
[22744.351493]  [<ffffffff813a6a46>] ? dump_stack+0x41/0x51
[22744.356827]  [<ffffffff8103b591>] ? warn_slowpath_common+0x78/0x90
[22744.363037]  [<ffffffffc0593cc4>] ? btrfs_lookup_extent_info+0x292/0x30a [btrfs]
[22744.370471]  [<ffffffffc0593cc4>] ? btrfs_lookup_extent_info+0x292/0x30a [btrfs]
[22744.377912]  [<ffffffffc059438f>] ? walk_down_proc+0xaf/0x1e3 [btrfs]
[22744.384373]  [<ffffffff8110bc2a>] ? kmem_cache_alloc+0x91/0x104
[22744.390321]  [<ffffffffc05965b8>] ? walk_down_tree+0x40/0xa9 [btrfs]
[22744.396706]  [<ffffffffc0598f3e>] ? btrfs_drop_snapshot+0x2c4/0x656 [btrfs]
[22744.403702]  [<ffffffffc05e6297>] ? merge_reloc_roots+0xf0/0x1ca [btrfs]
[22744.410434]  [<ffffffffc05e6972>] ? relocate_block_group+0x445/0x4bd [btrfs]
[22744.417520]  [<ffffffffc05e6b39>] ? btrfs_relocate_block_group+0x14f/0x267 [btrfs]
[22744.425138]  [<ffffffffc05c56b7>] ? btrfs_relocate_chunk.isra.58+0x58/0x5e2 [btrfs]
[22744.432862]  [<ffffffffc0586786>] ? btrfs_item_key_to_cpu+0x12/0x30 [btrfs]
[22744.439851]  [<ffffffffc05ba695>] ? btrfs_get_token_64+0x76/0xc6 [btrfs]
[22744.446590]  [<ffffffffc05c190b>] ? release_extent_buffer+0x9d/0xa4 [btrfs]
[22744.453585]  [<ffffffffc05c8186>] ? btrfs_balance+0x9b0/0xb9d [btrfs]
[22744.460064]  [<ffffffffc05cf646>] ? btrfs_ioctl_balance+0x21a/0x297 [btrfs]
[22744.467057]  [<ffffffffc05d2462>] ? btrfs_ioctl+0x10f4/0x20a5 [btrfs]
[22744.473531]  [<ffffffff81121b9e>] ? path_openat+0x233/0x4c5
[22744.479129]  [<ffffffff81030620>] ? __do_page_fault+0x339/0x3df
[22744.485072]  [<ffffffff810f2b9c>] ? __vma_link_rb+0x58/0x73
[22744.490668]  [<ffffffff810f2c22>] ? vma_link+0x6b/0x8a
[22744.495824]  [<ffffffff811237f8>] ? do_vfs_ioctl+0x3ec/0x435
[22744.501509]  [<ffffffff8105b9e0>] ? vtime_account_user+0x35/0x40
[22744.507539]  [<ffffffff8112388a>] ? SyS_ioctl+0x49/0x77
[22744.512781]  [<ffffffff813aafac>] ? tracesys+0x7e/0xe2
[22744.517935]  [<ffffffff813ab00b>] ? tracesys+0xdd/0xe2
[22744.523092] ---[ end trace fac5e12cd6384894 ]---
22744.527735] ------------[ cut here ]------------
[22744.532378] kernel BUG at fs/btrfs/extent-tree.c:7727!
[22744.537532] invalid opcode: 0000 [#1] SMP 
[22744.541684] Modules linked in: nfsd auth_rpcgss oid_registry nfs_acl nfs lockd fscache sunrpc xfs libcrc32c loop raid10 md_mod iTCO_wdt x86_pkg_temp_thermal coretemp kvm_intel kvm crc32_pclmul ghash_clmulni_intel iTCO_vendor_support aesni_intel aes_x86_64 ablk_helper cryptd lrw gf128mul glue_helper lpc_ich mfd_core i2c_i801 i2c_core pcspkr psmouse evdev microcode serio_raw battery ipmi_si ipmi_msghandler video tpm_tis tpm button acpi_cpufreq processor ie31200_edac edac_core btrfs xor raid6_pq sg sd_mod uas usb_storage hid_generic usbhid hid ahci libahci mpt2sas raid_class libata scsi_transport_sas crc32c_intel ehci_pci e1000e ehci_hcd ptp pps_core scsi_mod thermal fan thermal_sys usbcore usb_common
[22744.605414] CPU: 0 PID: 4211 Comm: btrfs Tainted: G        W      3.17.0 #10
[22744.612491] Hardware name: Supermicro X9SCL/X9SCM/X9SCL/X9SCM, BIOS 2.0a 06/08/2012
[22744.620185] task: ffff8800d265b2d0 ti: ffff8802c7608000 task.ti: ffff8802c7608000
[22744.627707] RIP: 0010:[<ffffffffc05943a5>]  [<ffffffffc05943a5>] walk_down_proc+0xc5/0x1e3 [btrfs]
[22744.636726] RSP: 0018:ffff8802c760b908  EFLAGS: 00010246
[22744.647531] RAX: 0000000000000000 RBX: ffff88018b980e70 RCX: 0000000000000007
[22744.654697] RDX: 0000000000000056 RSI: ffff88028da8ff50 RDI: ffff8800373d9400
[22744.661853] RBP: ffff88027beef380 R08: 0000000000000000 R09: 000000000000bd96
[22744.669010] R10: 0000000000000000 R11: 000000000000bd96 R12: 0000000000000002
[22744.676176] R13: ffff880136d1a000 R14: ffff88040d51e400 R15: 0000000000000002
[22744.683333] FS:  00007fa1217c9880(0000) GS:ffff88041fc00000(0000) knlGS:0000000000000000
[22744.691460] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[22744.697222] CR2: 00007f1f93f9c020 CR3: 000000011869a000 CR4: 00000000001407f0
[22744.704380] Stack:
[22744.706416]  ffff88040d51e450 ffffffff8110bc2a 0000000000000000 ffff8803325a8d40
[22744.713927]  0000000000000001 ffff88027beef380 0000000000000002 ffff88040d51e400
[22744.721449]  ffff8803325a8d40 ffff8803325a8d40 ffff880136d1a000 ffffffffc05965b8
[22744.728961] Call Trace:
[22744.731430]  [<ffffffff8110bc2a>] ? kmem_cache_alloc+0x91/0x104
[22744.737373]  [<ffffffffc05965b8>] ? walk_down_tree+0x40/0xa9 [btrfs]
[22744.743751]  [<ffffffffc0598f3e>] ? btrfs_drop_snapshot+0x2c4/0x656 [btrfs]
[22744.750744]  [<ffffffffc05e6297>] ? merge_reloc_roots+0xf0/0x1ca [btrfs]
[22744.757469]  [<ffffffffc05e6972>] ? relocate_block_group+0x445/0x4bd [btrfs]
[22744.764546]  [<ffffffffc05e6b39>] ? btrfs_relocate_block_group+0x14f/0x267 [btrfs]
[22744.772156]  [<ffffffffc05c56b7>] ? btrfs_relocate_chunk.isra.58+0x58/0x5e2 [btrfs]
[22744.779854]  [<ffffffffc0586786>] ? btrfs_item_key_to_cpu+0x12/0x30 [btrfs]
[22744.786840]  [<ffffffffc05ba695>] ? btrfs_get_token_64+0x76/0xc6 [btrfs]
[22744.793574]  [<ffffffffc05c190b>] ? release_extent_buffer+0x9d/0xa4 [btrfs]
[22744.800567]  [<ffffffffc05c8186>] ? btrfs_balance+0x9b0/0xb9d [btrfs]
[22744.807039]  [<ffffffffc05cf646>] ? btrfs_ioctl_balance+0x21a/0x297 [btrfs]
[22744.814030]  [<ffffffffc05d2462>] ? btrfs_ioctl+0x10f4/0x20a5 [btrfs]
[22744.820488]  [<ffffffff81121b9e>] ? path_openat+0x233/0x4c5
[22744.826085]  [<ffffffff81030620>] ? __do_page_fault+0x339/0x3df
[22744.832028]  [<ffffffff810f2b9c>] ? __vma_link_rb+0x58/0x73
[22744.837616]  [<ffffffff810f2c22>] ? vma_link+0x6b/0x8a
[22744.842772]  [<ffffffff811237f8>] ? do_vfs_ioctl+0x3ec/0x435
[22744.848446]  [<ffffffff8105b9e0>] ? vtime_account_user+0x35/0x40
[22744.854470]  [<ffffffff8112388a>] ? SyS_ioctl+0x49/0x77
[22744.859711]  [<ffffffff813aafac>] ? tracesys+0x7e/0xe2
[22744.864866]  [<ffffffff813ab00b>] ? tracesys+0xdd/0xe2
[22744.870020] Code: 00 00 00 4c 89 f9 4c 89 ee 48 89 04 24 48 8b 13 e8 a3 f6 ff ff 83 f8 f4 75 02 0f 0b 85 c0 0f 85 16 01 00 00 4b 83 3c fe 00 75 02 <0f> 0b 41 83 be 94 00 00 00 01 49 63 c4 75 41 49 83 3c c6 01 0f 
[22744.890261] RIP  [<ffffffffc05943a5>] walk_down_proc+0xc5/0x1e3 [btrfs]
[22744.896924]  RSP <ffff8802c760b908>
[22744.900871] ---[ end trace fac5e12cd6384895 ]---



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: btrfs balance segfault, kernel BUG at fs/btrfs/extent-tree.c:7727
  2014-10-09 14:19 btrfs balance segfault, kernel BUG at fs/btrfs/extent-tree.c:7727 Petr Janecek
@ 2014-10-13 15:12 ` Rich Freeman
  2014-10-26  1:41   ` Rich Freeman
  0 siblings, 1 reply; 5+ messages in thread
From: Rich Freeman @ 2014-10-13 15:12 UTC (permalink / raw)
  To: Petr Janecek; +Cc: Btrfs BTRFS

On Thu, Oct 9, 2014 at 10:19 AM, Petr Janecek <janecek@ucw.cz> wrote:
>
>   I have trouble finishing btrfs balance on five disk raid10 fs.
> I added a disk to 4x3TB raid10 fs and run "btrfs balance start
> /mnt/b3", which segfaulted after few hours, probably because of the BUG
> below. "btrfs check" does not find any errors, both before the balance
> and after reboot (the fs becomes un-umountable).
>
> [22744.238559] WARNING: CPU: 0 PID: 4211 at fs/btrfs/extent-tree.c:876 btrfs_lookup_extent_info+0x292/0x30a [btrfs]()
>
> [22744.532378] kernel BUG at fs/btrfs/extent-tree.c:7727!

I am running into something similar. I just added a 3TB drive to my
raid1 btrfs and started a balance.  The balance segfaulted, and I find
this in dmesg:


[453046.291762] BTRFS info (device sde2): relocating block group
10367073779712 flags 17
[453062.494151] BTRFS info (device sde2): found 13 extents
[453069.283368] ------------[ cut here ]------------
[453069.283468] kernel BUG at
/data/src/linux-3.17.0-gentoo/fs/btrfs/relocation.c:931!
[453069.283590] invalid opcode: 0000 [#1] SMP
[453069.283666] Modules linked in: vhost_net vhost macvtap macvlan tun
ipt_MASQUERADE xt_conntrack veth nfsd auth_rpcgss oid_registry lockd
iptable_mangle iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4
nf_nat_ipv4 nf_nat nf_conntrack iptable_filter ip_tables it87
hwmon_vid hid_logitech_dj nxt200x cx88_dvb videobuf_dvb dvb_core
cx88_vp3054_i2c tuner_simple tuner_types tuner mousedev hid_generic
usbhid cx88_alsa radeon cx8800 cx8802 cx88xx snd_hda_codec_realtek
btcx_risc snd_hda_codec_generic videobuf_dma_sg videobuf_core kvm_amd
tveeprom kvm rc_core v4l2_common cfbfillrect fbcon videodev cfbimgblt
snd_hda_intel bitblit snd_hda_controller cfbcopyarea softcursor font
tileblit i2c_algo_bit k10temp snd_hda_codec backlight drm_kms_helper
snd_hwdep i2c_piix4 ttm snd_pcm snd_timer drm snd soundcore 8250 evdev
[453069.285043]  serial_core ext4 crc16 jbd2 mbcache zram lz4_compress
zsmalloc ata_generic pata_acpi btrfs xor zlib_deflate atkbd raid6_pq
ohci_pci firewire_ohci firewire_core crc_itu_t pata_atiixp ehci_pci
ohci_hcd ehci_hcd usbcore usb_common r8169 mii sunrpc dm_mirror
dm_region_hash dm_log dm_mod
[453069.285552] CPU: 1 PID: 17270 Comm: btrfs Not tainted 3.17.0-gentoo #1
[453069.285657] Hardware name: Gigabyte Technology Co., Ltd.
GA-880GM-UD2H/GA-880GM-UD2H, BIOS F8 10/11/2010
[453069.285806] task: ffff88040ec556e0 ti: ffff88010cf94000 task.ti:
ffff88010cf94000
[453069.285925] RIP: 0010:[<ffffffffa02ddd62>]  [<ffffffffa02ddd62>]
build_backref_tree+0x1152/0x11b0 [btrfs]
[453069.286137] RSP: 0018:ffff88010cf97848  EFLAGS: 00010206
[453069.286223] RAX: ffff8800ae67c800 RBX: ffff880122e94000 RCX:
ffff880122e949c0
[453069.286336] RDX: 000009270788d000 RSI: ffff880054c3fbc0 RDI:
ffff8800ae67c800
[453069.286449] RBP: ffff88010cf97958 R08: 00000000000159a0 R09:
ffff880122e94000
[453069.286561] R10: 0000000000000003 R11: 0000000000000000 R12:
ffff8802da313000
[453069.286674] R13: ffff8802da313c60 R14: ffff880122e94780 R15:
ffff88040c277000
[453069.286787] FS:  00007f175ac51880(0000) GS:ffff880427c40000(0000)
knlGS:00000000f7333b40
[453069.286913] CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[453069.287005] CR2: 00007f208de58000 CR3: 00000003b0a9c000 CR4:
00000000000007e0
[453069.287116] Stack:
[453069.287151]  ffff88010cf97868 ffff880122e94000 01ff880122e94300
ffff880342156060
[453069.287282]  ffff880122e94780 ffff8802da313c60 ffff880122e94600
ffff8800ae67c800
[453069.287412]  ffff880122e947c0 ffff8802da313000 ffff88040c277120
ffff880100000005
[453069.287542] Call Trace:
[453069.287640]  [<ffffffffa02ddfa3>] relocate_tree_blocks+0x1e3/0x630 [btrfs]
[453069.287796]  [<ffffffffa02e0550>] relocate_block_group+0x3d0/0x650 [btrfs]
[453069.287951]  [<ffffffffa02e0958>]
btrfs_relocate_block_group+0x188/0x2a0 [btrfs]
[453069.288113]  [<ffffffffa02b48f0>]
btrfs_relocate_chunk.isra.61+0x70/0x780 [btrfs]
[453069.288276]  [<ffffffffa02c7fd0>] ?
btrfs_set_lock_blocking_rw+0x70/0xc0 [btrfs]
[453069.288438]  [<ffffffffa02b0e79>] ? free_extent_buffer+0x59/0xb0 [btrfs]
[453069.288590]  [<ffffffffa02b8e99>] btrfs_balance+0x829/0xf40 [btrfs]
[453069.288738]  [<ffffffffa02bf80f>] btrfs_ioctl_balance+0x1af/0x510 [btrfs]
[453069.288890]  [<ffffffffa02c59e4>] btrfs_ioctl+0xa54/0x2950 [btrfs]
[453069.288995]  [<ffffffff8111d016>] ?
lru_cache_add_active_or_unevictable+0x26/0x90
[453069.289119]  [<ffffffff8113a061>] ? handle_mm_fault+0xbe1/0xdb0
[453069.289219]  [<ffffffff811ffdce>] ? cred_has_capability+0x5e/0x100
[453069.289323]  [<ffffffff8104065c>] ? __do_page_fault+0x1fc/0x4f0
[453069.289422]  [<ffffffff8117d80e>] do_vfs_ioctl+0x7e/0x4f0
[453069.289513]  [<ffffffff811ff64f>] ? file_has_perm+0x8f/0xa0
[453069.289606]  [<ffffffff8117dd09>] SyS_ioctl+0x89/0xa0
[453069.289692]  [<ffffffff81040a1c>] ? do_page_fault+0xc/0x10
[453069.289785]  [<ffffffff814f5752>] system_call_fastpath+0x16/0x1b
[453069.289881] Code: ff ff 48 8b 9d 20 ff ff ff e9 11 ff ff ff 0f 0b
be ec 03 00 00 48 c7 c7 d0 f0 30 a0 e8 28 00 d7 e0 e9 06 f3 ff ff e8
c4 42 02 00 <0f> 0b 3c b0 0f 84 72 f1 ff ff be 22 03 00 00 48 c7 c7 d0
f0 30
[453069.290429] RIP  [<ffffffffa02ddd62>]
build_backref_tree+0x1152/0x11b0 [btrfs]
[453069.290591]  RSP <ffff88010cf97848>
[453069.316194] ---[ end trace 5fdc0af4cc62bf41 ]---

It looks like I can't cancel the balance, so I'll probably have to reboot.

--
Rich

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: btrfs balance segfault, kernel BUG at fs/btrfs/extent-tree.c:7727
  2014-10-13 15:12 ` Rich Freeman
@ 2014-10-26  1:41   ` Rich Freeman
  2014-10-26  1:51     ` Chris Samuel
  2014-10-26  2:02     ` Duncan
  0 siblings, 2 replies; 5+ messages in thread
From: Rich Freeman @ 2014-10-26  1:41 UTC (permalink / raw)
  To: Btrfs BTRFS

On Mon, Oct 13, 2014 at 11:12 AM, Rich Freeman
<r-btrfs@thefreemanclan.net> wrote:
> On Thu, Oct 9, 2014 at 10:19 AM, Petr Janecek <janecek@ucw.cz> wrote:
>>
>>   I have trouble finishing btrfs balance on five disk raid10 fs.
>> I added a disk to 4x3TB raid10 fs and run "btrfs balance start
>> /mnt/b3", which segfaulted after few hours, probably because of the BUG
>> below. "btrfs check" does not find any errors, both before the balance
>> and after reboot (the fs becomes un-umountable).
>>
>> [22744.238559] WARNING: CPU: 0 PID: 4211 at fs/btrfs/extent-tree.c:876 btrfs_lookup_extent_info+0x292/0x30a [btrfs]()
>>
>> [22744.532378] kernel BUG at fs/btrfs/extent-tree.c:7727!
>
> I am running into something similar. I just added a 3TB drive to my
> raid1 btrfs and started a balance.  The balance segfaulted, and I find
> this in dmesg:

I got another one of these crashes during a balance today, and this is
on 3.17.1 with the "Btrfs: race free update of commit root for ro
snapshots" patch.  So, there is something else in 3.17.1 that causes
this problem.  I did see mention of an extent error of some kind on
the lists and I don't have that patch - I believe it is planned for
3.17.2.

After the crash the filesystem became read-only.

I didn't have any way to easily capture the logs, but I got repeated
crashes when trying to re-mount the filesystem after rebooting.  The
dmesg log showed read errors from one of the devices (bdev /dev/sdb2
errs: wr 0, rd 1361, flush 0, corrupt 0, gen 0).  When I tried to
btrfs check the filesystem with btrfs-progs 3.17 it abruptly
terminated and output an error mentioning could not find extent items
followed by root and a really large number.

I finally managed to recover by mounting the device with skip_balance
- I suspect that it was crashing due to attempts to restart the
failing balance.  Then after letting the filesystem settle down I
unmounted it cleanly and rebooted and everything was back to normal.

However, i'm still getting "bdev /dev/sdb2 errs: wr 0, rd 1361, flush
0, corrupt 0, gen 0" in my dmesg logs.  I have tried scrubbing the
device with no errors found.

--
Rich

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: btrfs balance segfault, kernel BUG at fs/btrfs/extent-tree.c:7727
  2014-10-26  1:41   ` Rich Freeman
@ 2014-10-26  1:51     ` Chris Samuel
  2014-10-26  2:02     ` Duncan
  1 sibling, 0 replies; 5+ messages in thread
From: Chris Samuel @ 2014-10-26  1:51 UTC (permalink / raw)
  To: linux-btrfs

On Sat, 25 Oct 2014 09:41:27 PM Rich Freeman wrote:

> So, there is something else in 3.17.1 that causes
> this problem.  I did see mention of an extent error of some kind on
> the lists and I don't have that patch - I believe it is planned for
> 3.17.2.

There are currently 13 patches for btrfs queued for 3.17.2:

queue-3.17/btrfs-add-missing-compression-property-remove-in-btrfs_ioctl_setflags.patch                                                                                                                                                       
queue-3.17/btrfs-cleanup-error-handling-in-build_backref_tree.patch                                                                                                                                                                          
queue-3.17/btrfs-don-t-do-async-reclaim-during-log-replay.patch                                                                                                                                                                              
queue-3.17/btrfs-don-t-go-readonly-on-existing-qgroup-items.patch                                                                                                                                                                            
queue-3.17/btrfs-fix-a-deadlock-in-btrfs_dev_replace_finishing.patch                                                                                                                                                                         
queue-3.17/btrfs-fix-and-enhance-merge_extent_mapping-to-insert-best-fitted-extent-map.patch                                                                                                                                                 
queue-3.17/btrfs-fix-build_backref_tree-issue-with-multiple-shared-blocks.patch                                                                                                                                                              
queue-3.17/btrfs-fix-race-in-wait_sync-ioctl.patch                                                                                                                                                                                           
queue-3.17/btrfs-fix-the-wrong-condition-judgment-about-subset-extent-map.patch                                                                                                                                                              
queue-3.17/btrfs-fix-up-bounds-checking-in-lseek.patch                                                                                                                                                                                       
queue-3.17/btrfs-try-not-to-enospc-on-log-replay.patch                                                                                                                                                                                       
queue-3.17/btrfs-wake-up-transaction-thread-from-sync_fs-ioctl.patch                                                                                                                                                                         
queue-3.17/revert-btrfs-race-free-update-of-commit-root-for-ro-snapshots.patch

You can grab them here:

http://git.kernel.org/cgit/linux/kernel/git/stable/stable-queue.git/tree/queue-3.17

Hope this helps!
Chris
-- 
 Chris Samuel  :  http://www.csamuel.org/  :  Melbourne, VIC



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: btrfs balance segfault, kernel BUG at fs/btrfs/extent-tree.c:7727
  2014-10-26  1:41   ` Rich Freeman
  2014-10-26  1:51     ` Chris Samuel
@ 2014-10-26  2:02     ` Duncan
  1 sibling, 0 replies; 5+ messages in thread
From: Duncan @ 2014-10-26  2:02 UTC (permalink / raw)
  To: linux-btrfs

Rich Freeman posted on Sat, 25 Oct 2014 21:41:27 -0400 as excerpted:

> However, i'm still getting "bdev /dev/sdb2 errs: wr 0, rd 1361, flush 0,
> corrupt 0, gen 0" in my dmesg logs.  I have tried scrubbing the device
> with no errors found.

Note that error counts do /not/ reset at boot.  The counts are therefore 
since either the last mkfs, or the last time the error counts were reset 
manually, and if you know you've had errors (as you did here), all you 
need to do is take note of the count and ensure it's not increasing 
unexpectedly.

Meanwhile, btrfs device stats can be used to print the error counts on 
demand and its -z option resets them after that print, thus being the 
manual reset I mentioned above.

So chances are those read errors are the same ones you had previously.  
As long as the number isn't increasing, you're not registering any 
further errors.

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-10-26  2:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-09 14:19 btrfs balance segfault, kernel BUG at fs/btrfs/extent-tree.c:7727 Petr Janecek
2014-10-13 15:12 ` Rich Freeman
2014-10-26  1:41   ` Rich Freeman
2014-10-26  1:51     ` Chris Samuel
2014-10-26  2:02     ` Duncan

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).