[ 6777.890721] run fstests btrfs/232 at 2022-10-28 22:43:39
[ 6778.340889] BTRFS info (device dm-0): using crc32c (crc32c-intel) checksum algorithm
[ 6778.340896] BTRFS info (device dm-0): using free space tree
[ 6778.345382] BTRFS info (device dm-0): auto enabling async discard
[ 6778.590187] BTRFS: device fsid c9053831-ff7e-4a92-b900-d6fd158a01f2 devid 1 transid 6 /dev/mapper/vg0-lv7 scanned by mkfs.btrfs (874922)
[ 6778.624654] BTRFS info (device dm-7): using crc32c (crc32c-intel) checksum algorithm
[ 6778.624664] BTRFS info (device dm-7): using free space tree
[ 6778.646546] BTRFS info (device dm-7): auto enabling async discard
[ 6778.646833] BTRFS info (device dm-7): checking UUID tree
[ 6786.385880] BTRFS warning (device dm-7): qgroup rescan is already in progress
[ 6786.398726] BTRFS info (device dm-7): qgroup scan completed (inconsistency flag cleared)
[ 6859.264037] ------------[ cut here ]------------
[ 6859.264281] qgroup 5 data reserved space underflow, have 0 to free 4096
[ 6859.264303] WARNING: CPU: 0 PID: 23112 at fs/btrfs/qgroup.c:80 qgroup_rsv_release+0x17c/0x190
[ 6859.264313] Modules linked in: dm_thin_pool dm_persistent_data dm_bio_prison dm_log_writes dm_dust dm_flakey nft_fib_inet nft_fib_ipv4 nft_fib_ipv6 nft_fib nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_ct nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 rfkill ip6_tables nft_compat ip_set nf_tables nfnetlink xfs intel_rapl_msr iTCO_wdt iTCO_vendor_support joydev snd_hda_codec_generic intel_rapl_common snd_hda_intel snd_intel_dspcfg snd_hda_codec virtio_balloon snd_hwdep snd_hda_core snd_pcm snd_timer snd i2c_i801 lpc_ich soundcore i2c_smbus zram ip_tables crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel serio_raw qemu_fw_cfg
[ 6859.264386] CPU: 0 PID: 23112 Comm: kworker/u4:8 Not tainted 6.1.0-rc2+ #881
[ 6859.264391] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[ 6859.264396] Workqueue: btrfs-flush_delalloc btrfs_work_helper
[ 6859.264405] RIP: 0010:qgroup_rsv_release+0x17c/0x190
[ 6859.264409] Code: fc 01 74 14 41 83 fc 02 48 c7 c2 c7 42 82 ab b8 00 00 00 00 48 0f 45 d0 48 8b 33 49 89 e8 48 c7 c7 b8 a2 82 ab e8 ad ef 7c 00 <0f> 0b e9 3f ff ff ff 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 0f 1f
[ 6859.264412] RSP: 0018:ffff9bd80194f810 EFLAGS: 00010282
[ 6859.264415] RAX: 000000000000003b RBX: ffff8a52864ea200 RCX: 0000000000000000
[ 6859.264417] RDX: 0000000000000002 RSI: ffffffffab83f1ff RDI: 00000000ffffffff
[ 6859.264418] RBP: 0000000000001000 R08: 0000000000000000 R09: 0000000100000f62
[ 6859.264420] R10: ffff9bd80194f6c8 R11: ffffffffabb5be70 R12: 0000000000000000
[ 6859.264422] R13: 000000000000000a R14: 0000000000000000 R15: ffff8a528fc65790
[ 6859.264423] FS: 0000000000000000(0000) GS:ffff8a52fbc00000(0000) knlGS:0000000000000000
[ 6859.264425] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 6859.264427] CR2: 00007fe0bb3e4000 CR3: 000000011318c002 CR4: 0000000000370ef0
[ 6859.264431] Call Trace:
[ 6859.264433]
[ 6859.264439] btrfs_qgroup_free_refroot+0x155/0x190
[ 6859.264447] __btrfs_qgroup_release_data+0x2a2/0x2f0
[ 6859.264458] btrfs_add_ordered_extent+0x56/0x460
[ 6859.264467] run_delalloc_nocow+0x562/0x670
[ 6859.264485] btrfs_run_delalloc_range+0x90/0x630
[ 6859.264490] ? find_lock_delalloc_range+0x23a/0x260
[ 6859.264497] writepage_delalloc+0xa7/0x170
[ 6859.264505] __extent_writepage+0x171/0x4d0
[ 6859.264512] extent_write_cache_pages+0x175/0x510
[ 6859.264523] ? __lock_acquire+0x374/0x1df0
[ 6859.264527] ? proc_sched_show_task+0xa36/0xec0
[ 6859.264535] extent_writepages+0x6a/0xf0
[ 6859.264541] do_writepages+0xbf/0x1c0
[ 6859.264546] ? lock_release+0x137/0x2d0
[ 6859.264552] ? _raw_spin_unlock+0x29/0x50
[ 6859.264558] filemap_fdatawrite_wbc+0x66/0x90
[ 6859.264562] __filemap_fdatawrite_range+0x46/0x50
[ 6859.264571] btrfs_run_delalloc_work+0x17/0x40
[ 6859.264575] btrfs_work_helper+0xf2/0x3e0
[ 6859.264578] ? lock_is_held_type+0xe2/0x140
[ 6859.264585] process_one_work+0x271/0x590
[ 6859.264595] worker_thread+0x52/0x3b0
[ 6859.264600] ? process_one_work+0x590/0x590
[ 6859.264604] kthread+0xf0/0x120
[ 6859.264607] ? kthread_complete_and_exit+0x20/0x20
[ 6859.264612] ret_from_fork+0x1f/0x30
[ 6859.264626]
[ 6859.264627] irq event stamp: 39981133
[ 6859.264629] hardirqs last enabled at (39981139): [] __up_console_sem+0x5e/0x70
[ 6859.264632] hardirqs last disabled at (39981144): [] __up_console_sem+0x43/0x70
[ 6859.264635] softirqs last enabled at (39980304): [] __irq_exit_rcu+0xfd/0x150
[ 6859.264639] softirqs last disabled at (39980299): [] __irq_exit_rcu+0xfd/0x150
[ 6859.264642] ---[ end trace 0000000000000000 ]---
[ 6864.221040] BTRFS info (device dm-7): using crc32c (crc32c-intel) checksum algorithm
[ 6864.221050] BTRFS info (device dm-7): using free space tree
[ 6864.225559] BTRFS info (device dm-7): auto enabling async discard