[46585.259131] run fstests btrfs/232 at 2022-11-23 09:49:15
[46585.743259] BTRFS info (device dm-0): using crc32c (crc32c-intel) checksum algorithm
[46585.743266] BTRFS info (device dm-0): using free space tree
[46585.747055] BTRFS info (device dm-0): auto enabling async discard
[46585.966233] BTRFS: device fsid 3b35c7d2-6597-4d4c-a8f2-09b79739cd2c devid 1 transid 6 /dev/mapper/vg0-lv9 scanned by mkfs.btrfs (2793715)
[46586.003584] BTRFS info (device dm-9): using crc32c (crc32c-intel) checksum algorithm
[46586.003592] BTRFS info (device dm-9): using free space tree
[46586.022068] BTRFS info (device dm-9): auto enabling async discard
[46586.022217] BTRFS info (device dm-9): checking UUID tree
[46593.552974] BTRFS warning (device dm-9): qgroup rescan is already in progress
[46593.581209] BTRFS info (device dm-9): qgroup scan completed (inconsistency flag cleared)
[46650.960728] ------------[ cut here ]------------
[46650.961093] qgroup 5 data reserved space underflow, have 0 to free 4096
[46650.961128] WARNING: CPU: 1 PID: 2748170 at fs/btrfs/qgroup.c:81 qgroup_rsv_release+0x17c/0x190
[46650.961154] 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 ip6_tables nft_compat ip_set rfkill nf_tables nfnetlink snd_hda_codec_generic snd_hda_intel snd_intel_dspcfg snd_hda_codec intel_rapl_msr snd_hwdep i2c_i801 iTCO_wdt iTCO_vendor_support intel_rapl_common i2c_smbus joydev snd_hda_core virtio_balloon snd_pcm snd_timer snd soundcore lpc_ich zram ip_tables xfs crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel serio_raw qemu_fw_cfg
[46650.961317] CPU: 1 PID: 2748170 Comm: kworker/u4:7 Not tainted 6.1.0-rc6+ #916
[46650.961322] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[46650.961330] Workqueue: btrfs-flush_delalloc btrfs_work_helper
[46650.961338] RIP: 0010:qgroup_rsv_release+0x17c/0x190
[46650.961344] Code: fc 01 74 14 41 83 fc 02 48 c7 c2 4f 4a 82 8e b8 00 00 00 00 48 0f 45 d0 48 8b 33 49 89 e8 48 c7 c7 d0 a8 82 8e e8 ed ed 7c 00 <0f> 0b e9 3f ff ff ff 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 0f 1f
[46650.961347] RSP: 0018:ffffa4ae06887808 EFLAGS: 00010296
[46650.961352] RAX: 000000000000003b RBX: ffff8d7ec1570a00 RCX: 0000000000000000
[46650.961355] RDX: 0000000000000002 RSI: ffffffff8e83f9ef RDI: 00000000ffffffff
[46650.961357] RBP: 0000000000001000 R08: 0000000000000000 R09: 0000000100012d66
[46650.961360] R10: ffffa4ae068876c0 R11: ffffffff8eb59050 R12: 0000000000000000
[46650.961363] R13: 000000000000000a R14: 0000000000000000 R15: ffff8d7ec6819788
[46650.961366] FS:  0000000000000000(0000) GS:ffff8d7efbd00000(0000) knlGS:0000000000000000
[46650.961369] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[46650.961371] CR2: 0000000001f2d000 CR3: 000000014fbf6006 CR4: 0000000000370ee0
[46650.961377] Call Trace:
[46650.961380]  
[46650.961389]  btrfs_qgroup_free_refroot+0x155/0x190
[46650.961401]  __btrfs_qgroup_release_data+0x2a2/0x2f0
[46650.961418]  btrfs_add_ordered_extent+0x56/0x460
[46650.961433]  run_delalloc_nocow+0x592/0x690
[46650.961460]  btrfs_run_delalloc_range+0x8c/0x630
[46650.961469]  ? find_lock_delalloc_range+0x23a/0x260
[46650.961481]  writepage_delalloc+0xa7/0x170
[46650.961493]  __extent_writepage+0x171/0x4d0
[46650.961504]  extent_write_cache_pages+0x175/0x510
[46650.961521]  ? __lock_acquire+0x374/0x1df0
[46650.961534]  ? proc_sched_show_task+0xae6/0xec0
[46650.961547]  extent_writepages+0x6a/0xf0
[46650.961556]  do_writepages+0xbf/0x1c0
[46650.961568]  ? lock_release+0x137/0x2d0
[46650.961577]  ? _raw_spin_unlock+0x29/0x50
[46650.961595]  filemap_fdatawrite_wbc+0x66/0x90
[46650.961602]  __filemap_fdatawrite_range+0x46/0x50
[46650.961616]  btrfs_run_delalloc_work+0x17/0x40
[46650.961622]  btrfs_work_helper+0xf2/0x3e0
[46650.961626]  ? lock_is_held_type+0xe2/0x140
[46650.961637]  process_one_work+0x271/0x590
[46650.961661]  ? process_one_work+0x590/0x590
[46650.961666]  worker_thread+0x52/0x3b0
[46650.961675]  ? process_one_work+0x590/0x590
[46650.961680]  kthread+0xf0/0x120
[46650.961688]  ? kthread_complete_and_exit+0x20/0x20
[46650.961696]  ret_from_fork+0x1f/0x30
[46650.961721]  
[46650.961723] irq event stamp: 5674317
[46650.961725] hardirqs last  enabled at (5674323): [] __up_console_sem+0x5e/0x70
[46650.961732] hardirqs last disabled at (5674328): [] __up_console_sem+0x43/0x70
[46650.961736] softirqs last  enabled at (5673866): [] __irq_exit_rcu+0xfd/0x150
[46650.961742] softirqs last disabled at (5673861): [] __irq_exit_rcu+0xfd/0x150
[46650.961747] ---[ end trace 0000000000000000 ]---
[46663.305819] BTRFS info (device dm-9): using crc32c (crc32c-intel) checksum algorithm
[46663.305827] BTRFS info (device dm-9): using free space tree
[46663.309544] BTRFS info (device dm-9): auto enabling async discard