[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#769576: linux: Btrfs goes forced readonly when qgroup already exists



Control: found 3.16.5-1~bpo70+1

On Fri 14 Nov 2014 at 17:51:17 +0100, Sebastiaan L. Zoutendijk wrote:
> There is a patch for this bug upstream [1], which has been applied to
> 3.17 [2].  As far as I know, it wasn't applied to 3.16.  I have not
> tried this patch for reasons of time, but I can if you want me to.  The
> patch is also included at the end of this mail.
> 
>  [1] https://patchwork.kernel.org/patch/4739211/
>  [2] https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/?id=fe9133f10ca56e54c5f5075a802bc08e61ad8456

I have tried and succeeded to reproduce this in the latest version
backported to wheezy, 3.16.1-1~bpo70+1 a.k.a. 3.16-0.bpo.3.  Command
output was the same, uname and dmesg are below

$ uname -a
Linux andromeda 3.16-0.bpo.3-amd64 #1 SMP Debian 3.16.5-1~bpo70+1 (2014-11-02) x86_64 GNU/Linux
$ dmesg
[*snip*]
[  119.583914] ------------[ cut here ]------------
[  119.583951] WARNING: CPU: 0 PID: 3698 at /build/linux-LrLd2z/linux-3.16.5/fs/btrfs/super.c:259 __btrfs_abort_transaction+0x5f/0x140 [btrfs]()
[  119.583954] BTRFS: Transaction aborted (error -17)
[  119.583956] Modules linked in: ppdev lp nfsd auth_rpcgss oid_registry nfs_acl nfs lockd fscache sunrpc ctr ccm ext4 crc16 mbcache jbd2 snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic snd_hda_intel snd_hda_controller snd_hda_codec snd_hwdep intel_powerclamp iTCO_wdt snd_pcm evdev arc4 iTCO_vendor_support snd_seq ath9k ath9k_common ath9k_hw i915 ath video drm_kms_helper drm mac80211 i2c_algo_bit i2c_i801 psmouse serio_raw snd_seq_device pcspkr tpm_infineon snd_timer parport_pc snd parport i2c_core tpm_tis acpi_cpufreq asus_atk0110 cfg80211 lpc_ich soundcore rfkill tpm mfd_core processor mei_me mei kvm_intel button kvm thermal_sys btrfs xor raid6_pq dm_crypt dm_mod ses enclosure usb_storage hid_generic usbhid hid sg sr_mod sd_mod cdrom crc_t10dif ata_generic crct10dif_pclmul crct10dif_common crc32_pclmul crc32c_intel ata_piix ghash_clmulni_intel aesni_intel ehci_pci ehci_hcd libata aes_x86_64 scsi_mod lrw r8169 gf128mul mii glue_helper ablk_helper cryptd usbcore usb_common
[  119.584043] CPU: 0 PID: 3698 Comm: btrfs Not tainted 3.16-0.bpo.3-amd64 #1 Debian 3.16.5-1~bpo70+1
[  119.584046] Hardware name: System manufacturer System Product Name/P7H55-M, BIOS 1101    08/18/2010
[  119.584048]  0000000000000000 ffffffffa02d1a28 ffffffff8154144f ffff88020ce179f8
[  119.584052]  ffffffff8106ce5c 00000000ffffffef ffff8800d7e2b800 ffff8800d95a9980
[  119.584056]  000000000000050d ffffffffa02ce080 ffffffff8106cf4a ffffffffa02d1b08
[  119.584060] Call Trace:
[  119.584070]  [<ffffffff8154144f>] ? dump_stack+0x41/0x51
[  119.584077]  [<ffffffff8106ce5c>] ? warn_slowpath_common+0x8c/0xc0
[  119.584082]  [<ffffffff8106cf4a>] ? warn_slowpath_fmt+0x4a/0x50
[  119.584099]  [<ffffffffa0242906>] ? btrfs_run_delayed_refs+0x246/0x2a0 [btrfs]
[  119.584112]  [<ffffffffa0224e0f>] ? __btrfs_abort_transaction+0x5f/0x140 [btrfs]
[  119.584129]  [<ffffffffa02521ff>] ? create_pending_snapshot+0x60f/0xa00 [btrfs]
[  119.584142]  [<ffffffffa022c98e>] ? read_block_for_search.isra.40+0xce/0x3d0 [btrfs]
[  119.584160]  [<ffffffffa0252679>] ? create_pending_snapshots+0x89/0xa0 [btrfs]
[  119.584178]  [<ffffffffa025396a>] ? btrfs_commit_transaction+0x35a/0xa10 [btrfs]
[  119.584197]  [<ffffffffa0287b83>] ? btrfs_mksubvol.isra.62+0x4d3/0x4f0 [btrfs]
[  119.584203]  [<ffffffff810b0080>] ? __wake_up_sync+0x20/0x20
[  119.584220]  [<ffffffffa0287d5e>] ? btrfs_ioctl_snap_create_transid+0x1be/0x1d0 [btrfs]
[  119.584238]  [<ffffffffa0287f15>] ? btrfs_ioctl_snap_create_v2+0x115/0x150 [btrfs]
[  119.584256]  [<ffffffffa028b09b>] ? btrfs_ioctl+0x10bb/0x1ea0 [btrfs]
[  119.584262]  [<ffffffff81328609>] ? fbcon_cursor+0x149/0x1f0
[  119.584266]  [<ffffffff810b47e2>] ? up+0x12/0x50
[  119.584271]  [<ffffffff8132b280>] ? update_attr.isra.3+0xa0/0xa0
[  119.584275]  [<ffffffff810c15c0>] ? console_unlock+0x250/0x400
[  119.584279]  [<ffffffff810afd9e>] ? remove_wait_queue+0x1e/0x70
[  119.584284]  [<ffffffff8138b84c>] ? n_tty_write+0x1cc/0x4f0
[  119.584290]  [<ffffffff811f7a5c>] ? fsnotify+0x1cc/0x260
[  119.584294]  [<ffffffff811cda26>] ? do_vfs_ioctl+0x86/0x4e0
[  119.584299]  [<ffffffff811bbedc>] ? vfs_write+0x17c/0x1f0
[  119.584303]  [<ffffffff811cdf21>] ? SyS_ioctl+0xa1/0xc0
[  119.584307]  [<ffffffff8154792d>] ? system_call_fast_compare_end+0x10/0x15
[  119.584310] ---[ end trace b118632d3508f5fe ]---
[  119.584314] BTRFS: error (device dm-0) in create_pending_snapshot:1293: errno=-17 Object already exists
[  119.584383] BTRFS info (device dm-0): forced readonly
[  119.584387] BTRFS warning (device dm-0): Skipping commit of aborted transaction.
[  119.584390] BTRFS: error (device dm-0) in cleanup_transaction:1571: errno=-17 Object already exists

Subsequently, I applied the patch to the Debian sources of this kernel
and rebuilt it.  I could not reproduce the bug on this patched kernel,
so the patch seems to work.  Maybe I can try this with an official
jessie kernel sometime soon, but I doubt the result will be different.


Reply to: