[39711.639095] run fstests generic/475 at 2022-08-14 07:55:28
[39712.548492] BTRFS: device fsid 4fa5ef25-6d78-44eb-9170-3ed52a20e2bc devid 1 transid 6 /dev/mapper/vg0-lv9 scanned by mkfs.btrfs (1364525)
[39712.781795] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39712.781807] BTRFS info (device dm-11): setting incompat feature flag for COMPRESS_ZSTD (0x10)
[39712.781810] BTRFS info (device dm-11): use zstd compression, level 3
[39712.781813] BTRFS info (device dm-11): turning on async discard
[39712.781815] BTRFS info (device dm-11): disk space caching is enabled
[39712.785004] BTRFS info (device dm-11): checking UUID tree
[39712.822651] btrfs_dev_stat_inc_and_print: 2 callbacks suppressed
[39712.822657] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[39712.824020] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 2, rd 0, flush 0, corrupt 0, gen 0
[39712.824025] BTRFS warning (device dm-11): direct IO failed ino 267 rw 1,34817 sector 0x6b50 len 77824 err no 10
[39712.824321] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 3, rd 0, flush 0, corrupt 0, gen 0
[39712.824326] BTRFS warning (device dm-11): direct IO failed ino 268 rw 1,34817 sector 0x6be8 len 45056 err no 10
[39712.824349] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 4, rd 0, flush 0, corrupt 0, gen 0
[39712.824354] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 5, rd 0, flush 0, corrupt 0, gen 0
[39712.824367] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 6, rd 0, flush 0, corrupt 0, gen 0
[39712.826907] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 7, rd 0, flush 0, corrupt 0, gen 0
[39712.826912] BTRFS warning (device dm-11): direct IO failed ino 268 rw 1,34817 sector 0x6b50 len 28672 err no 10
[39712.830311] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 8, rd 0, flush 0, corrupt 0, gen 0
[39712.832013] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 9, rd 0, flush 0, corrupt 0, gen 0
[39712.833161] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 10, rd 0, flush 0, corrupt 0, gen 0
[39712.833166] BTRFS warning (device dm-11): direct IO failed ino 268 rw 1,34817 sector 0x6b50 len 20480 err no 10
[39712.834179] BTRFS: error (device dm-11: state A) in __btrfs_run_delayed_items:1182: errno=-5 IO failure
[39712.834948] BTRFS info (device dm-11: state EA): forced readonly
[39712.834953] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[39712.834957] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[39712.838741] buffer_io_error: 760 callbacks suppressed
[39712.838744] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[39713.441762] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39713.441771] BTRFS info (device dm-11): setting incompat feature flag for COMPRESS_ZSTD (0x10)
[39713.441774] BTRFS info (device dm-11): use zstd compression, level 3
[39713.441776] BTRFS info (device dm-11): turning on async discard
[39713.441785] BTRFS info (device dm-11): disk space caching is enabled
[39713.445868] BTRFS info (device dm-11): checking UUID tree
[39715.485105] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[39715.485126] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[39715.485141] BTRFS error (device dm-11): error writing primary super block to device 1
[39715.485144] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[39715.485989] BTRFS info (device dm-11: state E): forced readonly
[39715.485995] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[39715.486001] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[39715.486936] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[39715.486944] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[39715.494087] BTRFS warning (device dm-11: state EA): direct IO failed ino 320 rw 0,0 sector 0x114d60 len 4096 err no 10
[39715.494130] BTRFS warning (device dm-11: state EA): direct IO failed ino 334 rw 0,0 sector 0x124e28 len 40960 err no 10
[39715.500807] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[39715.527903] BTRFS warning (device dm-11: state EA): direct IO failed ino 271 rw 0,0 sector 0x11b188 len 8192 err no 10
[39715.528250] BTRFS warning (device dm-11: state EA): direct IO failed ino 258 rw 0,0 sector 0x1262f8 len 8192 err no 10
[39715.529120] BTRFS warning (device dm-11: state EA): direct IO failed ino 334 rw 0,0 sector 0x124e30 len 4096 err no 10
[39716.179433] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39716.179443] BTRFS info (device dm-11): use zstd compression, level 3
[39716.179447] BTRFS info (device dm-11): turning on async discard
[39716.179450] BTRFS info (device dm-11): disk space caching is enabled
[39718.213029] btrfs_dev_stat_inc_and_print: 24 callbacks suppressed
[39718.213033] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[39718.215162] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 2, rd 0, flush 0, corrupt 0, gen 0
[39718.215170] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 3, rd 0, flush 0, corrupt 0, gen 0
[39718.215321] BTRFS: error (device dm-11) in btrfs_commit_transaction:2496: errno=-5 IO failure (Error while writing out transaction)
[39718.216296] BTRFS info (device dm-11: state E): forced readonly
[39718.216301] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[39718.216304] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[39718.224915] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[39718.847403] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39718.847412] BTRFS info (device dm-11): use zstd compression, level 3
[39718.847415] BTRFS info (device dm-11): turning on async discard
[39718.847417] BTRFS info (device dm-11): disk space caching is enabled
[39718.874623] ------------[ cut here ]------------
[39718.874691] WARNING: CPU: 0 PID: 1306129 at fs/btrfs/discard.c:604 btrfs_discard_update_discardable+0x98/0xb0
[39718.874702] 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 intel_rapl_msr iTCO_wdt snd_hda_codec_generic iTCO_vendor_support snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hwdep snd_hda_core intel_rapl_common snd_pcm joydev snd_timer snd virtio_balloon soundcore i2c_i801 lpc_ich i2c_smbus zram ip_tables crct10dif_pclmul crc32_pclmul xfs crc32c_intel ghash_clmulni_intel serio_raw qemu_fw_cfg
[39718.874794] CPU: 0 PID: 1306129 Comm: kworker/u4:1 Tainted: G        W         5.19.0-rc8+ #796
[39718.874797] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[39718.874802] Workqueue: btrfs-cache btrfs_work_helper
[39718.874810] RIP: 0010:btrfs_discard_update_discardable+0x98/0xb0
[39718.874813] Code: 17 00 00 48 8b 83 80 00 00 00 48 89 83 88 00 00 00 5b 5d c3 cc cc cc cc 48 8d 7b 18 be ff ff ff ff e8 2c 9a 7e 00 85 c0 75 ac <0f> 0b eb a8 c3 cc cc cc cc 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f
[39718.874815] RSP: 0018:ffff9aa0c38e7ad0 EFLAGS: 00010246
[39718.874818] RAX: 0000000000000000 RBX: ffff8f1a96e4f400 RCX: 0000000000000001
[39718.874823] RDX: 0000000000000000 RSI: ffffffff92807c5b RDI: ffffffff928a831e
[39718.874824] RBP: ffff8f1a8e1f0000 R08: 0000000000000000 R09: 0000000080270024
[39718.874826] R10: 000000000007804a R11: 00000000009f4b00 R12: ffff8f1a55fb4810
[39718.874828] R13: ffff8f1aa86b3ca0 R14: ffff8f1a8e1f0000 R15: ffff8f1a541669a0
[39718.874830] FS:  0000000000000000(0000) GS:ffff8f1abbc00000(0000) knlGS:0000000000000000
[39718.874832] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[39718.874833] CR2: 00007f347065d42a CR3: 00000001028e6005 CR4: 0000000000370ef0
[39718.874839] Call Trace:
[39718.874843]  
[39718.874848]  __btrfs_remove_free_space_cache+0x27/0x30
[39718.874852]  load_free_space_cache+0xad2/0xaf0
[39718.874894]  caching_thread+0x40b/0x650
[39718.874902]  ? lock_release+0x137/0x2d0
[39718.874910]  btrfs_work_helper+0xf2/0x3e0
[39718.874913]  ? lock_is_held_type+0xe2/0x140
[39718.874920]  process_one_work+0x271/0x590
[39718.874930]  ? process_one_work+0x590/0x590
[39718.874933]  worker_thread+0x52/0x3b0
[39718.874938]  ? process_one_work+0x590/0x590
[39718.874941]  kthread+0xf0/0x120
[39718.874944]  ? kthread_complete_and_exit+0x20/0x20
[39718.874948]  ret_from_fork+0x1f/0x30
[39718.874962]  
[39718.874966] irq event stamp: 8980463
[39718.874968] hardirqs last  enabled at (8980469): [] __up_console_sem+0x5e/0x70
[39718.874972] hardirqs last disabled at (8980474): [] __up_console_sem+0x43/0x70
[39718.874975] softirqs last  enabled at (8979914): [] __irq_exit_rcu+0xeb/0x160
[39718.874978] softirqs last disabled at (8979909): [] __irq_exit_rcu+0xeb/0x160
[39718.874981] ---[ end trace 0000000000000000 ]---
[39718.874984] BTRFS warning (device dm-11): block group 298844160 has wrong amount of free space
[39718.875000] BTRFS warning (device dm-11): failed to load free space cache for block group 298844160, rebuilding it now
[39718.903785] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[39718.903842] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 2, rd 0, flush 0, corrupt 0, gen 0
[39718.903848] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 3, rd 0, flush 0, corrupt 0, gen 0
[39718.903903] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 4, rd 0, flush 0, corrupt 0, gen 0
[39718.903907] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 5, rd 0, flush 0, corrupt 0, gen 0
[39718.903954] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 6, rd 0, flush 0, corrupt 0, gen 0
[39718.903959] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 7, rd 0, flush 0, corrupt 0, gen 0
[39718.907323] BTRFS: error (device dm-11) in btrfs_commit_transaction:2496: errno=-5 IO failure (Error while writing out transaction)
[39718.908173] BTRFS info (device dm-11: state E): forced readonly
[39718.908179] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[39718.908182] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[39718.916181] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[39719.496197] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39719.496205] BTRFS info (device dm-11): use zstd compression, level 3
[39719.496209] BTRFS info (device dm-11): turning on async discard
[39719.496210] BTRFS info (device dm-11): disk space caching is enabled
[39719.527517] ------------[ cut here ]------------
[39719.527594] WARNING: CPU: 0 PID: 1325515 at fs/btrfs/discard.c:604 btrfs_discard_update_discardable+0x98/0xb0
[39719.527600] 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 intel_rapl_msr iTCO_wdt snd_hda_codec_generic iTCO_vendor_support snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hwdep snd_hda_core intel_rapl_common snd_pcm joydev snd_timer snd virtio_balloon soundcore i2c_i801 lpc_ich i2c_smbus zram ip_tables crct10dif_pclmul crc32_pclmul xfs crc32c_intel ghash_clmulni_intel serio_raw qemu_fw_cfg
[39719.527665] CPU: 0 PID: 1325515 Comm: kworker/u4:4 Tainted: G        W         5.19.0-rc8+ #796
[39719.527667] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[39719.527669] Workqueue: btrfs-cache btrfs_work_helper
[39719.527674] RIP: 0010:btrfs_discard_update_discardable+0x98/0xb0
[39719.527677] Code: 17 00 00 48 8b 83 80 00 00 00 48 89 83 88 00 00 00 5b 5d c3 cc cc cc cc 48 8d 7b 18 be ff ff ff ff e8 2c 9a 7e 00 85 c0 75 ac <0f> 0b eb a8 c3 cc cc cc cc 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f
[39719.527679] RSP: 0018:ffff9aa0c4657ad0 EFLAGS: 00010246
[39719.527682] RAX: 0000000000000000 RBX: ffff8f1a93cec800 RCX: 0000000000000001
[39719.527684] RDX: 0000000000000000 RSI: ffffffff92807c5b RDI: ffffffff928a831e
[39719.527685] RBP: ffff8f1a6a87c000 R08: 0000000000000000 R09: 0000000000270011
[39719.527687] R10: ffff8f1972266b78 R11: 00000000009f8900 R12: ffff8f1a45ac4010
[39719.527689] R13: ffff8f1a4351c5f0 R14: ffff8f1a6a87c000 R15: ffff8f1a54166460
[39719.527690] FS:  0000000000000000(0000) GS:ffff8f1abbc00000(0000) knlGS:0000000000000000
[39719.527692] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[39719.527694] CR2: 00007f4e93660300 CR3: 000000010498c004 CR4: 0000000000370ef0
[39719.527698] Call Trace:
[39719.527699]  
[39719.527704]  __btrfs_remove_free_space_cache+0x27/0x30
[39719.527708]  load_free_space_cache+0xad2/0xaf0
[39719.527752]  caching_thread+0x40b/0x650
[39719.527761]  ? lock_release+0x137/0x2d0
[39719.527768]  btrfs_work_helper+0xf2/0x3e0
[39719.527771]  ? lock_is_held_type+0xe2/0x140
[39719.527778]  process_one_work+0x271/0x590
[39719.527787]  worker_thread+0x52/0x3b0
[39719.527792]  ? process_one_work+0x590/0x590
[39719.527794]  kthread+0xf0/0x120
[39719.527797]  ? kthread_complete_and_exit+0x20/0x20
[39719.527802]  ret_from_fork+0x1f/0x30
[39719.527815]  
[39719.527816] irq event stamp: 3171337
[39719.527818] hardirqs last  enabled at (3171343): [] __up_console_sem+0x5e/0x70
[39719.527821] hardirqs last disabled at (3171348): [] __up_console_sem+0x43/0x70
[39719.527823] softirqs last  enabled at (3170806): [] __irq_exit_rcu+0xeb/0x160
[39719.527826] softirqs last disabled at (3170799): [] __irq_exit_rcu+0xeb/0x160
[39719.527828] ---[ end trace 0000000000000000 ]---
[39719.527831] BTRFS warning (device dm-11): block group 298844160 has wrong amount of free space
[39719.527845] BTRFS warning (device dm-11): failed to load free space cache for block group 298844160, rebuilding it now
[39721.531287] BTRFS: error (device dm-11) in btrfs_commit_transaction:2496: errno=-5 IO failure (Error while writing out transaction)
[39721.532152] BTRFS info (device dm-11: state E): forced readonly
[39721.532157] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[39721.532161] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[39721.538872] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[39722.188564] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39722.188572] BTRFS info (device dm-11): use zstd compression, level 3
[39722.188575] BTRFS info (device dm-11): turning on async discard
[39722.188577] BTRFS info (device dm-11): disk space caching is enabled
[39723.247441] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[39723.247449] btrfs_dev_stat_inc_and_print: 9 callbacks suppressed
[39723.247451] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[39723.247469] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[39723.247473] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 2, rd 0, flush 0, corrupt 0, gen 0
[39723.247488] BTRFS error (device dm-11): error writing primary super block to device 1
[39723.247492] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[39723.248447] BTRFS info (device dm-11: state E): forced readonly
[39723.248462] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[39723.248467] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[39723.249646] BTRFS: error (device dm-11: state EA) in btrfs_sync_log:3192: errno=-5 IO failure
[39723.251596] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 2, rd 1, flush 0, corrupt 0, gen 0
[39723.252245] BTRFS warning (device dm-11: state EA): direct IO failed ino 853 rw 0,0 sector 0x158bf8 len 4096 err no 10
[39723.253197] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 3, rd 1, flush 0, corrupt 0, gen 0
[39723.253984] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 4, rd 1, flush 0, corrupt 0, gen 0
[39723.254998] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 5, rd 1, flush 0, corrupt 0, gen 0
[39723.255278] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 6, rd 1, flush 0, corrupt 0, gen 0
[39723.255432] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 7, rd 1, flush 0, corrupt 0, gen 0
[39723.256252] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 8, rd 1, flush 0, corrupt 0, gen 0
[39723.256873] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 9, rd 1, flush 0, corrupt 0, gen 0
[39723.262999] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[39723.292331] BTRFS warning (device dm-11: state EA): direct IO failed ino 828 rw 0,0 sector 0x16c980 len 8192 err no 10
[39723.292701] BTRFS warning (device dm-11: state EA): direct IO failed ino 882 rw 0,0 sector 0x16b558 len 4096 err no 10
[39723.874673] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39723.874683] BTRFS info (device dm-11): use zstd compression, level 3
[39723.874687] BTRFS info (device dm-11): turning on async discard
[39723.874690] BTRFS info (device dm-11): disk space caching is enabled
[39724.916648] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[39724.916666] BTRFS error (device dm-11): error writing primary super block to device 1
[39724.916669] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[39724.917333] BTRFS info (device dm-11: state E): forced readonly
[39724.917345] BTRFS: error (device dm-11: state EA) in btrfs_sync_log:3203: errno=-5 IO failure
[39724.921118] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[39724.921125] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[39724.934280] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[39724.954263] BTRFS warning (device dm-11: state EA): direct IO failed ino 920 rw 0,0 sector 0x8da0 len 4096 err no 10
[39724.955059] BTRFS warning (device dm-11: state EA): direct IO failed ino 955 rw 0,0 sector 0x166cc8 len 8192 err no 10
[39724.960708] BTRFS warning (device dm-11: state EA): direct IO failed ino 285 rw 0,0 sector 0x9548 len 4096 err no 10
[39725.525141] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39725.525149] BTRFS info (device dm-11): use zstd compression, level 3
[39725.525152] BTRFS info (device dm-11): turning on async discard
[39725.525154] BTRFS info (device dm-11): disk space caching is enabled
[39725.567224] BTRFS error (device dm-11): error reading free space cache
[39725.567250] BTRFS warning (device dm-11): failed to load free space cache for block group 298844160, rebuilding it now
[39725.569489] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[39725.570373] BTRFS: error (device dm-11: state A) in do_free_extent_accounting:2848: errno=-5 IO failure
[39725.571148] BTRFS info (device dm-11: state EA): forced readonly
[39725.571157] BTRFS: error (device dm-11: state EA) in btrfs_run_delayed_refs:2141: errno=-5 IO failure
[39725.573653] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[39725.573674] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[39726.142596] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39726.142604] BTRFS info (device dm-11): use zstd compression, level 3
[39726.142607] BTRFS info (device dm-11): turning on async discard
[39726.142608] BTRFS info (device dm-11): disk space caching is enabled
[39726.188838] BTRFS error (device dm-11): error reading free space cache
[39726.188861] BTRFS warning (device dm-11): failed to load free space cache for block group 298844160, rebuilding it now
[39726.190831] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[39726.191093] BTRFS: error (device dm-11: state A) in do_free_extent_accounting:2848: errno=-5 IO failure
[39726.191855] BTRFS info (device dm-11: state EA): forced readonly
[39726.191863] BTRFS: error (device dm-11: state EA) in btrfs_run_delayed_refs:2141: errno=-5 IO failure
[39726.194609] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[39726.194616] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[39726.767886] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39726.767893] BTRFS info (device dm-11): use zstd compression, level 3
[39726.767896] BTRFS info (device dm-11): turning on async discard
[39726.767898] BTRFS info (device dm-11): disk space caching is enabled
[39726.796648] ------------[ cut here ]------------
[39726.796904] WARNING: CPU: 1 PID: 1325516 at fs/btrfs/discard.c:604 btrfs_discard_update_discardable+0x98/0xb0
[39726.796911] 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 intel_rapl_msr iTCO_wdt snd_hda_codec_generic iTCO_vendor_support snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hwdep snd_hda_core intel_rapl_common snd_pcm joydev snd_timer snd virtio_balloon soundcore i2c_i801 lpc_ich i2c_smbus zram ip_tables crct10dif_pclmul crc32_pclmul xfs crc32c_intel ghash_clmulni_intel serio_raw qemu_fw_cfg
[39726.796976] CPU: 1 PID: 1325516 Comm: kworker/u4:5 Tainted: G        W         5.19.0-rc8+ #796
[39726.796978] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[39726.796981] Workqueue: btrfs-cache btrfs_work_helper
[39726.796986] RIP: 0010:btrfs_discard_update_discardable+0x98/0xb0
[39726.796989] Code: 17 00 00 48 8b 83 80 00 00 00 48 89 83 88 00 00 00 5b 5d c3 cc cc cc cc 48 8d 7b 18 be ff ff ff ff e8 2c 9a 7e 00 85 c0 75 ac <0f> 0b eb a8 c3 cc cc cc cc 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f
[39726.796991] RSP: 0018:ffff9aa0c46e7ad0 EFLAGS: 00010246
[39726.796994] RAX: 0000000000000000 RBX: ffff8f1a42b69000 RCX: 0000000000000001
[39726.796996] RDX: 0000000000000000 RSI: ffffffff92807c5b RDI: ffffffff928a831e
[39726.796997] RBP: ffff8f1a80614000 R08: 0000000000000000 R09: 0000000000001000
[39726.796999] R10: ffff8f195cfe1838 R11: 00000000009f9400 R12: ffff8f1a4e1f3810
[39726.797000] R13: ffff8f1a43759760 R14: ffff8f1a80614000 R15: ffff8f1a4cb32a80
[39726.797002] FS:  0000000000000000(0000) GS:ffff8f1abbd00000(0000) knlGS:0000000000000000
[39726.797004] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[39726.797005] CR2: 000000000098e090 CR3: 0000000104ad8002 CR4: 0000000000370ee0
[39726.797009] Call Trace:
[39726.797012]  
[39726.797016]  __btrfs_remove_free_space_cache+0x27/0x30
[39726.797020]  load_free_space_cache+0xad2/0xaf0
[39726.797060]  caching_thread+0x40b/0x650
[39726.797068]  ? lock_release+0x137/0x2d0
[39726.797075]  btrfs_work_helper+0xf2/0x3e0
[39726.797078]  ? lock_is_held_type+0xe2/0x140
[39726.797085]  process_one_work+0x271/0x590
[39726.797093]  ? process_one_work+0x590/0x590
[39726.797096]  worker_thread+0x52/0x3b0
[39726.797101]  ? process_one_work+0x590/0x590
[39726.797104]  kthread+0xf0/0x120
[39726.797106]  ? kthread_complete_and_exit+0x20/0x20
[39726.797111]  ret_from_fork+0x1f/0x30
[39726.797124]  
[39726.797126] irq event stamp: 4890195
[39726.797127] hardirqs last  enabled at (4890201): [] __up_console_sem+0x5e/0x70
[39726.797130] hardirqs last disabled at (4890206): [] __up_console_sem+0x43/0x70
[39726.797132] softirqs last  enabled at (4889646): [] __irq_exit_rcu+0xeb/0x160
[39726.797135] softirqs last disabled at (4889637): [] __irq_exit_rcu+0xeb/0x160
[39726.797137] ---[ end trace 0000000000000000 ]---
[39726.797141] BTRFS warning (device dm-11): block group 298844160 has wrong amount of free space
[39726.797158] BTRFS warning (device dm-11): failed to load free space cache for block group 298844160, rebuilding it now
[39728.811990] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[39728.811996] btrfs_dev_stat_inc_and_print: 96 callbacks suppressed
[39728.811997] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[39728.812016] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[39728.812020] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 2, rd 0, flush 0, corrupt 0, gen 0
[39728.812056] BTRFS error (device dm-11): error writing primary super block to device 1
[39728.812062] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[39728.812802] BTRFS info (device dm-11: state E): forced readonly
[39728.812807] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[39728.812811] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[39728.814363] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[39728.814368] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[39728.816432] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 3, rd 0, flush 0, corrupt 0, gen 0
[39728.817173] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 4, rd 0, flush 0, corrupt 0, gen 0
[39728.829348] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[39728.858083] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 4, rd 1, flush 0, corrupt 0, gen 0
[39728.858105] BTRFS warning (device dm-11: state EA): direct IO failed ino 1168 rw 0,0 sector 0x191080 len 57344 err no 10
[39728.859223] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 4, rd 2, flush 0, corrupt 0, gen 0
[39728.859240] BTRFS warning (device dm-11: state EA): direct IO failed ino 1095 rw 0,0 sector 0x18fa48 len 32768 err no 10
[39728.859613] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 4, rd 3, flush 0, corrupt 0, gen 0
[39728.859633] BTRFS warning (device dm-11: state EA): direct IO failed ino 1065 rw 0,0 sector 0x184688 len 20480 err no 10
[39728.861600] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 4, rd 4, flush 0, corrupt 0, gen 0
[39728.861646] BTRFS warning (device dm-11: state EA): direct IO failed ino 1083 rw 0,0 sector 0x181dc0 len 4096 err no 10
[39728.879698] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 4, rd 5, flush 0, corrupt 0, gen 0
[39728.879718] BTRFS warning (device dm-11: state EA): direct IO failed ino 1124 rw 0,0 sector 0x18e768 len 16384 err no 10
[39728.879833] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 4, rd 6, flush 0, corrupt 0, gen 0
[39728.879846] BTRFS warning (device dm-11: state EA): direct IO failed ino 272 rw 0,0 sector 0x18e1b0 len 8192 err no 10
[39728.879969] BTRFS warning (device dm-11: state EA): direct IO failed ino 261 rw 0,0 sector 0x185bb8 len 12288 err no 10
[39728.881004] BTRFS warning (device dm-11: state EA): direct IO failed ino 1077 rw 0,0 sector 0x186490 len 12288 err no 10
[39729.455828] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39729.455836] BTRFS info (device dm-11): use zstd compression, level 3
[39729.455840] BTRFS info (device dm-11): turning on async discard
[39729.455842] BTRFS info (device dm-11): disk space caching is enabled
[39729.460873] BTRFS info (device dm-11): start tree-log replay
[39730.576188] BTRFS: error (device dm-11) in btrfs_commit_transaction:2496: errno=-5 IO failure (Error while writing out transaction)
[39730.577393] BTRFS info (device dm-11: state E): forced readonly
[39730.577398] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[39730.577404] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[39730.589010] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[39731.230127] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39731.230154] BTRFS info (device dm-11): use zstd compression, level 3
[39731.230157] BTRFS info (device dm-11): turning on async discard
[39731.230159] BTRFS info (device dm-11): disk space caching is enabled
[39733.261289] BTRFS warning (device dm-11): direct IO failed ino 1233 rw 1,34817 sector 0x1b7af0 len 28672 err no 10
[39733.261303] BTRFS warning (device dm-11): direct IO failed ino 258 rw 1,34817 sector 0x1b7b28 len 126976 err no 10
[39733.261825] BTRFS warning (device dm-11): direct IO failed ino 260 rw 1,34817 sector 0x1b7ec8 len 90112 err no 10
[39733.271331] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[39733.310224] BTRFS warning (device dm-11): direct IO failed ino 285 rw 1,34817 sector 0x1b8358 len 102400 err no 10
[39733.312271] BTRFS: error (device dm-11) in btrfs_commit_transaction:2496: errno=-5 IO failure (Error while writing out transaction)
[39733.313259] BTRFS info (device dm-11: state E): forced readonly
[39733.313264] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[39733.313267] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[39734.758117] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39734.758126] BTRFS info (device dm-11): use zstd compression, level 3
[39734.758129] BTRFS info (device dm-11): turning on async discard
[39734.758131] BTRFS info (device dm-11): disk space caching is enabled
[39735.801352] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[39736.278861] btrfs_dev_stat_inc_and_print: 128 callbacks suppressed
[39736.278867] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[39736.281189] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 2, rd 0, flush 0, corrupt 0, gen 0
[39736.282910] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 3, rd 0, flush 0, corrupt 0, gen 0
[39736.283827] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 4, rd 0, flush 0, corrupt 0, gen 0
[39736.283836] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 5, rd 0, flush 0, corrupt 0, gen 0
[39736.284262] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 6, rd 0, flush 0, corrupt 0, gen 0
[39736.284273] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 7, rd 0, flush 0, corrupt 0, gen 0
[39736.284942] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 8, rd 0, flush 0, corrupt 0, gen 0
[39736.284954] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 9, rd 0, flush 0, corrupt 0, gen 0
[39736.284996] BTRFS: error (device dm-11) in btrfs_commit_transaction:2496: errno=-5 IO failure (Error while writing out transaction)
[39736.286340] BTRFS info (device dm-11: state E): forced readonly
[39736.286346] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[39736.286351] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[39736.892085] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39736.892093] BTRFS info (device dm-11): use zstd compression, level 3
[39736.892096] BTRFS info (device dm-11): turning on async discard
[39736.892098] BTRFS info (device dm-11): disk space caching is enabled
[39736.895828] BTRFS info (device dm-11): start tree-log replay
[39738.039753] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[39738.039784] BTRFS warning (device dm-11): direct IO failed ino 262 rw 1,34817 sector 0x1caa50 len 126976 err no 10
[39738.039800] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[39738.039810] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[39738.042055] BTRFS error (device dm-11): error writing primary super block to device 1
[39738.042059] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[39738.042839] BTRFS info (device dm-11: state E): forced readonly
[39738.042844] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[39738.042848] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[39738.048645] BTRFS warning (device dm-11: state EA): direct IO failed ino 1409 rw 0,0 sector 0x1c9c20 len 86016 err no 10
[39738.060102] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[39738.622422] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39738.622436] BTRFS info (device dm-11): use zstd compression, level 3
[39738.622441] BTRFS info (device dm-11): turning on async discard
[39738.622442] BTRFS info (device dm-11): disk space caching is enabled
[39738.627389] BTRFS info (device dm-11): start tree-log replay
[39739.704061] BTRFS: error (device dm-11) in btrfs_commit_transaction:2496: errno=-5 IO failure (Error while writing out transaction)
[39739.704753] BTRFS info (device dm-11: state E): forced readonly
[39739.704758] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[39739.704761] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[39739.712063] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[39740.330523] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39740.330531] BTRFS info (device dm-11): use zstd compression, level 3
[39740.330535] BTRFS info (device dm-11): turning on async discard
[39740.330536] BTRFS info (device dm-11): disk space caching is enabled
[39740.359080] ------------[ cut here ]------------
[39740.359153] WARNING: CPU: 0 PID: 1325516 at fs/btrfs/discard.c:604 btrfs_discard_update_discardable+0x98/0xb0
[39740.359159] 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 intel_rapl_msr iTCO_wdt snd_hda_codec_generic iTCO_vendor_support snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hwdep snd_hda_core intel_rapl_common snd_pcm joydev snd_timer snd virtio_balloon soundcore i2c_i801 lpc_ich i2c_smbus zram ip_tables crct10dif_pclmul crc32_pclmul xfs crc32c_intel ghash_clmulni_intel serio_raw qemu_fw_cfg
[39740.359224] CPU: 0 PID: 1325516 Comm: kworker/u4:5 Tainted: G        W         5.19.0-rc8+ #796
[39740.359227] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[39740.359229] Workqueue: btrfs-cache btrfs_work_helper
[39740.359234] RIP: 0010:btrfs_discard_update_discardable+0x98/0xb0
[39740.359237] Code: 17 00 00 48 8b 83 80 00 00 00 48 89 83 88 00 00 00 5b 5d c3 cc cc cc cc 48 8d 7b 18 be ff ff ff ff e8 2c 9a 7e 00 85 c0 75 ac <0f> 0b eb a8 c3 cc cc cc cc 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f
[39740.359240] RSP: 0018:ffff9aa0c46e7ad0 EFLAGS: 00010246
[39740.359242] RAX: 0000000000000000 RBX: ffff8f1a42b69e00 RCX: 0000000000000001
[39740.359244] RDX: 0000000000000000 RSI: ffffffff92807c5b RDI: ffffffff928a831e
[39740.359246] RBP: ffff8f1a46008000 R08: 0000000000000000 R09: 0000000000001000
[39740.359247] R10: ffff8f1aa363d080 R11: 00000000009f7f00 R12: ffff8f1a443c5810
[39740.359249] R13: ffff8f1a430e6b30 R14: ffff8f1a46008000 R15: ffff8f1a471b7230
[39740.359251] FS:  0000000000000000(0000) GS:ffff8f1abbc00000(0000) knlGS:0000000000000000
[39740.359253] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[39740.359254] CR2: 0000000000776000 CR3: 0000000112bf2004 CR4: 0000000000370ef0
[39740.359258] Call Trace:
[39740.359260]  
[39740.359266]  __btrfs_remove_free_space_cache+0x27/0x30
[39740.359270]  load_free_space_cache+0xad2/0xaf0
[39740.359311]  caching_thread+0x40b/0x650
[39740.359319]  ? lock_release+0x137/0x2d0
[39740.359327]  btrfs_work_helper+0xf2/0x3e0
[39740.359330]  ? lock_is_held_type+0xe2/0x140
[39740.359361]  process_one_work+0x271/0x590
[39740.359370]  ? process_one_work+0x590/0x590
[39740.359373]  worker_thread+0x52/0x3b0
[39740.359378]  ? process_one_work+0x590/0x590
[39740.359381]  kthread+0xf0/0x120
[39740.359383]  ? kthread_complete_and_exit+0x20/0x20
[39740.359388]  ret_from_fork+0x1f/0x30
[39740.359402]  
[39740.359403] irq event stamp: 4956287
[39740.359405] hardirqs last  enabled at (4956293): [] __up_console_sem+0x5e/0x70
[39740.359408] hardirqs last disabled at (4956298): [] __up_console_sem+0x43/0x70
[39740.359410] softirqs last  enabled at (4956238): [] __irq_exit_rcu+0xeb/0x160
[39740.359414] softirqs last disabled at (4956223): [] __irq_exit_rcu+0xeb/0x160
[39740.359416] ---[ end trace 0000000000000000 ]---
[39740.359419] BTRFS warning (device dm-11): block group 298844160 has wrong amount of free space
[39740.359434] BTRFS warning (device dm-11): failed to load free space cache for block group 298844160, rebuilding it now
[39742.415641] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[39742.415647] btrfs_dev_stat_inc_and_print: 40 callbacks suppressed
[39742.415649] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[39742.415670] BTRFS error (device dm-11): error writing primary super block to device 1
[39742.415675] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[39742.416487] BTRFS info (device dm-11: state E): forced readonly
[39742.416498] BTRFS: error (device dm-11: state EA) in btrfs_sync_log:3203: errno=-5 IO failure
[39742.420905] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[39742.420911] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[39742.427612] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[39742.438470] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 1, rd 1, flush 0, corrupt 0, gen 0
[39742.438493] BTRFS warning (device dm-11: state EA): direct IO failed ino 1543 rw 0,0 sector 0x1eb790 len 4096 err no 10
[39742.440920] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 1, rd 2, flush 0, corrupt 0, gen 0
[39742.440966] BTRFS warning (device dm-11: state EA): direct IO failed ino 262 rw 0,0 sector 0x1e08b0 len 4096 err no 10
[39742.467198] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 1, rd 3, flush 0, corrupt 0, gen 0
[39742.467426] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 1, rd 4, flush 0, corrupt 0, gen 0
[39742.467475] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 1, rd 5, flush 0, corrupt 0, gen 0
[39742.468248] BTRFS warning (device dm-11: state EA): direct IO failed ino 1520 rw 0,0 sector 0x1e1870 len 77824 err no 10
[39743.088875] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39743.088883] BTRFS info (device dm-11): use zstd compression, level 3
[39743.088886] BTRFS info (device dm-11): turning on async discard
[39743.088887] BTRFS info (device dm-11): disk space caching is enabled
[39743.114154] ------------[ cut here ]------------
[39743.114225] WARNING: CPU: 0 PID: 1325516 at fs/btrfs/discard.c:604 btrfs_discard_update_discardable+0x98/0xb0
[39743.114232] 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 intel_rapl_msr iTCO_wdt snd_hda_codec_generic iTCO_vendor_support snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hwdep snd_hda_core intel_rapl_common snd_pcm joydev snd_timer snd virtio_balloon soundcore i2c_i801 lpc_ich i2c_smbus zram ip_tables crct10dif_pclmul crc32_pclmul xfs crc32c_intel ghash_clmulni_intel serio_raw qemu_fw_cfg
[39743.114297] CPU: 0 PID: 1325516 Comm: kworker/u4:5 Tainted: G        W         5.19.0-rc8+ #796
[39743.114299] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[39743.114302] Workqueue: btrfs-cache btrfs_work_helper
[39743.114307] RIP: 0010:btrfs_discard_update_discardable+0x98/0xb0
[39743.114335] Code: 17 00 00 48 8b 83 80 00 00 00 48 89 83 88 00 00 00 5b 5d c3 cc cc cc cc 48 8d 7b 18 be ff ff ff ff e8 2c 9a 7e 00 85 c0 75 ac <0f> 0b eb a8 c3 cc cc cc cc 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f
[39743.114337] RSP: 0018:ffff9aa0c46e7ad0 EFLAGS: 00010246
[39743.114340] RAX: 0000000000000000 RBX: ffff8f1a42b69c00 RCX: 0000000000000001
[39743.114342] RDX: 0000000000000000 RSI: ffffffff92807c5b RDI: ffffffff928a831e
[39743.114344] RBP: ffff8f1aac148000 R08: 0000000000000000 R09: 0000000000001000
[39743.114345] R10: ffff8f1943a79630 R11: 00000000009f3a00 R12: ffff8f1a443c5810
[39743.114347] R13: ffff8f1a91d4aa00 R14: ffff8f1aac148000 R15: ffff8f1a43ea3c40
[39743.114349] FS:  0000000000000000(0000) GS:ffff8f1abbc00000(0000) knlGS:0000000000000000
[39743.114350] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[39743.114352] CR2: 00007f4d5a2a12b0 CR3: 000000014cc80005 CR4: 0000000000370ef0
[39743.114356] Call Trace:
[39743.114358]  
[39743.114363]  __btrfs_remove_free_space_cache+0x27/0x30
[39743.114367]  load_free_space_cache+0xad2/0xaf0
[39743.114408]  caching_thread+0x40b/0x650
[39743.114416]  ? lock_release+0x137/0x2d0
[39743.114424]  btrfs_work_helper+0xf2/0x3e0
[39743.114427]  ? lock_is_held_type+0xe2/0x140
[39743.114434]  process_one_work+0x271/0x590
[39743.114442]  ? process_one_work+0x590/0x590
[39743.114445]  worker_thread+0x52/0x3b0
[39743.114450]  ? process_one_work+0x590/0x590
[39743.114460]  kthread+0xf0/0x120
[39743.114463]  ? kthread_complete_and_exit+0x20/0x20
[39743.114479]  ret_from_fork+0x1f/0x30
[39743.114495]  
[39743.114496] irq event stamp: 4995119
[39743.114498] hardirqs last  enabled at (4995125): [] __up_console_sem+0x5e/0x70
[39743.114501] hardirqs last disabled at (4995130): [] __up_console_sem+0x43/0x70
[39743.114503] softirqs last  enabled at (4994952): [] __irq_exit_rcu+0xeb/0x160
[39743.114506] softirqs last disabled at (4994945): [] __irq_exit_rcu+0xeb/0x160
[39743.114508] ---[ end trace 0000000000000000 ]---
[39743.114511] BTRFS warning (device dm-11): block group 298844160 has wrong amount of free space
[39743.114528] BTRFS warning (device dm-11): failed to load free space cache for block group 298844160, rebuilding it now
[39743.130135] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 0, rd 1, flush 0, corrupt 0, gen 0
[39743.130160] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 0, rd 2, flush 0, corrupt 0, gen 0
[39743.130182] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 0, rd 3, flush 0, corrupt 0, gen 0
[39743.130195] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 3, flush 0, corrupt 0, gen 0
[39743.130200] BTRFS warning (device dm-11): direct IO failed ino 1623 rw 1,34817 sector 0x114060 len 69632 err no 10
[39743.138853] BTRFS warning (device dm-11): direct IO failed ino 1623 rw 1,34817 sector 0x312800 len 118784 err no 10
[39743.141015] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[39743.145829] BTRFS: error (device dm-11: state A) in btrfs_run_delayed_refs:2141: errno=-5 IO failure
[39743.146870] BTRFS info (device dm-11: state EA): forced readonly
[39743.725813] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39743.725821] BTRFS info (device dm-11): use zstd compression, level 3
[39743.725824] BTRFS info (device dm-11): turning on async discard
[39743.725825] BTRFS info (device dm-11): disk space caching is enabled
[39743.764672] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[39743.790145] BTRFS: error (device dm-11: state A) in __btrfs_run_delayed_items:1182: errno=-5 IO failure
[39743.790848] BTRFS info (device dm-11: state EA): forced readonly
[39743.790852] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[39743.790855] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[39743.792381] BTRFS: error (device dm-11: state EA) in btrfs_run_delayed_refs:2141: errno=-5 IO failure
[39744.327600] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39744.327608] BTRFS info (device dm-11): use zstd compression, level 3
[39744.327611] BTRFS info (device dm-11): turning on async discard
[39744.327613] BTRFS info (device dm-11): disk space caching is enabled
[39744.360597] ------------[ cut here ]------------
[39744.360979] WARNING: CPU: 0 PID: 1232282 at fs/btrfs/discard.c:604 btrfs_discard_update_discardable+0x98/0xb0
[39744.360987] 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 intel_rapl_msr iTCO_wdt snd_hda_codec_generic iTCO_vendor_support snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hwdep snd_hda_core intel_rapl_common snd_pcm joydev snd_timer snd virtio_balloon soundcore i2c_i801 lpc_ich i2c_smbus zram ip_tables crct10dif_pclmul crc32_pclmul xfs crc32c_intel ghash_clmulni_intel serio_raw qemu_fw_cfg
[39744.361099] CPU: 0 PID: 1232282 Comm: kworker/u4:12 Tainted: G        W         5.19.0-rc8+ #796
[39744.361104] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[39744.361107] Workqueue: btrfs-cache btrfs_work_helper
[39744.361114] RIP: 0010:btrfs_discard_update_discardable+0x98/0xb0
[39744.361143] Code: 17 00 00 48 8b 83 80 00 00 00 48 89 83 88 00 00 00 5b 5d c3 cc cc cc cc 48 8d 7b 18 be ff ff ff ff e8 2c 9a 7e 00 85 c0 75 ac <0f> 0b eb a8 c3 cc cc cc cc 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f
[39744.361147] RSP: 0018:ffff9aa0c157fad0 EFLAGS: 00010246
[39744.361152] RAX: 0000000000000000 RBX: ffff8f1a42b68800 RCX: 0000000000000001
[39744.361155] RDX: 0000000000000000 RSI: ffffffff92807c5b RDI: ffffffff928a831e
[39744.361157] RBP: ffff8f1a6a18c000 R08: 0000000000000000 R09: 0000000000001000
[39744.361160] R10: 00000000000316f6 R11: 00000000009f8901 R12: ffff8f1a443c5010
[39744.361163] R13: ffff8f1a91d4eb30 R14: ffff8f1a6a18c000 R15: ffff8f1a43ea3620
[39744.361167] FS:  0000000000000000(0000) GS:ffff8f1abbc00000(0000) knlGS:0000000000000000
[39744.361170] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[39744.361173] CR2: 00007ffc97b43dd0 CR3: 0000000114268001 CR4: 0000000000370ef0
[39744.361179] Call Trace:
[39744.361182]  
[39744.361189]  __btrfs_remove_free_space_cache+0x27/0x30
[39744.361195]  load_free_space_cache+0xad2/0xaf0
[39744.361273]  caching_thread+0x40b/0x650
[39744.361289]  ? lock_release+0x137/0x2d0
[39744.361333]  btrfs_work_helper+0xf2/0x3e0
[39744.361338]  ? lock_is_held_type+0xe2/0x140
[39744.361351]  process_one_work+0x271/0x590
[39744.361366]  worker_thread+0x52/0x3b0
[39744.361375]  ? process_one_work+0x590/0x590
[39744.361379]  kthread+0xf0/0x120
[39744.361383]  ? kthread_complete_and_exit+0x20/0x20
[39744.361391]  ret_from_fork+0x1f/0x30
[39744.361417]  
[39744.361420] irq event stamp: 14673341
[39744.361422] hardirqs last  enabled at (14673347): [] __up_console_sem+0x5e/0x70
[39744.361427] hardirqs last disabled at (14673352): [] __up_console_sem+0x43/0x70
[39744.361430] softirqs last  enabled at (14673178): [] __irq_exit_rcu+0xeb/0x160
[39744.361434] softirqs last disabled at (14673171): [] __irq_exit_rcu+0xeb/0x160
[39744.361444] ---[ end trace 0000000000000000 ]---
[39744.361449] BTRFS warning (device dm-11): block group 298844160 has wrong amount of free space
[39744.361472] BTRFS warning (device dm-11): failed to load free space cache for block group 298844160, rebuilding it now
[39745.373151] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[39745.373167] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[39745.374018] BTRFS error (device dm-11): error writing primary super block to device 1
[39745.374024] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[39745.375182] BTRFS info (device dm-11: state E): forced readonly
[39745.375196] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[39745.375201] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[39745.376481] BTRFS: error (device dm-11: state EA) in btrfs_sync_log:3192: errno=-5 IO failure
[39745.378417] BTRFS warning (device dm-11: state EA): direct IO failed ino 1628 rw 0,0 sector 0x1f1948 len 16384 err no 10
[39745.378654] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[39745.378658] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[39745.380839] BTRFS warning (device dm-11: state EA): direct IO failed ino 1417 rw 0,0 sector 0x1f5678 len 20480 err no 10
[39745.388331] BTRFS warning (device dm-11: state EA): direct IO failed ino 1633 rw 0,0 sector 0x1f7f00 len 57344 err no 10
[39745.388343] BTRFS warning (device dm-11: state EA): direct IO failed ino 1633 rw 0,0 sector 0x1d3860 len 4096 err no 10
[39745.391697] BTRFS warning (device dm-11: state EA): direct IO failed ino 1628 rw 0,0 sector 0x1f1d28 len 65536 err no 10
[39745.394799] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[39745.396889] BTRFS warning (device dm-11: state EA): direct IO failed ino 813 rw 0,0 sector 0x1f1ee8 len 32768 err no 10
[39745.397043] BTRFS warning (device dm-11: state EA): direct IO failed ino 1628 rw 0,0 sector 0x1fa598 len 49152 err no 10
[39745.397277] BTRFS warning (device dm-11: state EA): direct IO failed ino 1628 rw 0,0 sector 0x1fa630 len 32768 err no 10
[39745.397747] BTRFS warning (device dm-11: state EA): direct IO failed ino 1628 rw 0,0 sector 0x1f2fb0 len 4096 err no 10
[39745.398069] BTRFS warning (device dm-11: state EA): direct IO failed ino 1628 rw 0,0 sector 0x1f17f8 len 20480 err no 10
[39745.398319] BTRFS warning (device dm-11: state EA): direct IO failed ino 813 rw 0,0 sector 0x1d2b28 len 4096 err no 10
[39745.400847] BTRFS warning (device dm-11: state EA): direct IO failed ino 1628 rw 0,0 sector 0x1fb998 len 4096 err no 10
[39745.403497] BTRFS warning (device dm-11: state EA): direct IO failed ino 261 rw 0,0 sector 0x1f82f8 len 24576 err no 10
[39745.403845] BTRFS warning (device dm-11: state EA): direct IO failed ino 813 rw 0,0 sector 0x1d2b80 len 8192 err no 10
[39745.406243] BTRFS warning (device dm-11: state EA): direct IO failed ino 1628 rw 0,0 sector 0x1d3840 len 12288 err no 10
[39745.407003] BTRFS warning (device dm-11: state EA): direct IO failed ino 813 rw 0,0 sector 0x1d3b60 len 4096 err no 10
[39745.407275] BTRFS warning (device dm-11: state EA): direct IO failed ino 813 rw 0,0 sector 0x1fd250 len 20480 err no 10
[39745.409451] BTRFS warning (device dm-11: state EA): direct IO failed ino 1628 rw 0,0 sector 0x1f17f8 len 45056 err no 10
[39745.409712] BTRFS warning (device dm-11: state EA): direct IO failed ino 1628 rw 0,0 sector 0x1fa6a8 len 32768 err no 10
[39745.422116] BTRFS warning (device dm-11: state EA): direct IO failed ino 1633 rw 0,0 sector 0x1fc338 len 53248 err no 10
[39745.423920] BTRFS warning (device dm-11: state EA): direct IO failed ino 1628 rw 0,0 sector 0x1d37d8 len 4096 err no 10
[39746.027574] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39746.027586] BTRFS info (device dm-11): use zstd compression, level 3
[39746.027590] BTRFS info (device dm-11): turning on async discard
[39746.027593] BTRFS info (device dm-11): disk space caching is enabled
[39746.032559] BTRFS info (device dm-11): start tree-log replay
[39746.035412] BTRFS warning (device dm-11): block group 30408704 has wrong amount of free space
[39746.035435] BTRFS warning (device dm-11): failed to load free space cache for block group 30408704, rebuilding it now
[39747.121010] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[39747.121023] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[39747.121140] BTRFS error (device dm-11): error writing primary super block to device 1
[39747.121143] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[39747.121764] BTRFS info (device dm-11: state E): forced readonly
[39747.121769] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[39747.121775] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[39747.123330] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[39747.123895] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[39747.135305] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[39747.150075] BTRFS warning (device dm-11: state EA): direct IO failed ino 258 rw 0,0 sector 0x206e60 len 12288 err no 10
[39747.764309] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39747.764317] BTRFS info (device dm-11): use zstd compression, level 3
[39747.764320] BTRFS info (device dm-11): turning on async discard
[39747.764322] BTRFS info (device dm-11): disk space caching is enabled
[39748.801633] btrfs_dev_stat_inc_and_print: 124 callbacks suppressed
[39748.801638] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[39748.801660] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 2, rd 0, flush 0, corrupt 0, gen 0
[39748.801675] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 3, rd 0, flush 0, corrupt 0, gen 0
[39748.801678] BTRFS warning (device dm-11): direct IO failed ino 1844 rw 1,34817 sector 0x212370 len 8192 err no 10
[39748.801689] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 4, rd 0, flush 0, corrupt 0, gen 0
[39748.801715] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[39748.801722] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 5, rd 0, flush 0, corrupt 0, gen 0
[39748.801736] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[39748.801741] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 6, rd 0, flush 0, corrupt 0, gen 0
[39748.801748] BTRFS error (device dm-11): error writing primary super block to device 1
[39748.801752] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[39748.801866] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 7, rd 0, flush 0, corrupt 0, gen 0
[39748.802640] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 8, rd 0, flush 0, corrupt 0, gen 0
[39748.802645] BTRFS info (device dm-11: state E): forced readonly
[39748.802652] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[39748.802657] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[39748.802661] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 9, rd 0, flush 0, corrupt 0, gen 0
[39748.809041] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 9, rd 1, flush 0, corrupt 0, gen 0
[39748.809065] BTRFS warning (device dm-11: state EA): direct IO failed ino 1837 rw 0,0 sector 0x20d080 len 24576 err no 10
[39748.816709] BTRFS warning (device dm-11: state EA): direct IO failed ino 261 rw 0,0 sector 0x211e10 len 20480 err no 10
[39748.818882] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[39748.840900] BTRFS warning (device dm-11: state EA): direct IO failed ino 261 rw 0,0 sector 0x2109c0 len 24576 err no 10
[39748.864234] BTRFS warning (device dm-11: state EA): direct IO failed ino 1836 rw 0,0 sector 0x20f210 len 40960 err no 10
[39748.869074] BTRFS warning (device dm-11: state EA): direct IO failed ino 259 rw 0,0 sector 0x210068 len 20480 err no 10
[39748.869735] BTRFS warning (device dm-11: state EA): direct IO failed ino 1815 rw 0,0 sector 0x20d4d0 len 32768 err no 10
[39749.312680] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39749.312691] BTRFS info (device dm-11): use zstd compression, level 3
[39749.312696] BTRFS info (device dm-11): turning on async discard
[39749.312699] BTRFS info (device dm-11): disk space caching is enabled
[39751.441290] BTRFS warning (device dm-11): direct IO failed ino 262 rw 1,34817 sector 0x228828 len 106496 err no 10
[39751.442693] BTRFS: error (device dm-11) in btrfs_commit_transaction:2496: errno=-5 IO failure (Error while writing out transaction)
[39751.443535] BTRFS info (device dm-11: state E): forced readonly
[39751.443542] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[39751.443546] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[39751.456424] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[39752.080093] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39752.080101] BTRFS info (device dm-11): use zstd compression, level 3
[39752.080104] BTRFS info (device dm-11): turning on async discard
[39752.080105] BTRFS info (device dm-11): disk space caching is enabled
[39752.084701] BTRFS info (device dm-11): start tree-log replay
[39754.176617] btrfs_dev_stat_inc_and_print: 53 callbacks suppressed
[39754.176621] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[39754.177377] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 2, rd 0, flush 0, corrupt 0, gen 0
[39754.177386] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 3, rd 0, flush 0, corrupt 0, gen 0
[39754.177608] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 4, rd 0, flush 0, corrupt 0, gen 0
[39754.177615] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 5, rd 0, flush 0, corrupt 0, gen 0
[39754.177723] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 6, rd 0, flush 0, corrupt 0, gen 0
[39754.177729] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 7, rd 0, flush 0, corrupt 0, gen 0
[39754.177777] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 8, rd 0, flush 0, corrupt 0, gen 0
[39754.177783] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 9, rd 0, flush 0, corrupt 0, gen 0
[39754.178129] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 10, rd 0, flush 0, corrupt 0, gen 0
[39754.178230] BTRFS: error (device dm-11) in btrfs_commit_transaction:2496: errno=-5 IO failure (Error while writing out transaction)
[39754.179228] BTRFS info (device dm-11: state E): forced readonly
[39754.179236] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[39754.179241] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[39754.183561] BTRFS warning (device dm-11: state EA): direct IO failed ino 1332 rw 0,0 sector 0x229de8 len 36864 err no 10
[39754.184405] BTRFS warning (device dm-11: state EA): direct IO failed ino 1332 rw 0,0 sector 0x229de8 len 8192 err no 10
[39754.185682] BTRFS warning (device dm-11: state EA): direct IO failed ino 1996 rw 0,0 sector 0x231bd8 len 16384 err no 10
[39754.190817] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[39754.191112] BTRFS warning (device dm-11: state EA): direct IO failed ino 1995 rw 0,0 sector 0x23a6e0 len 36864 err no 10
[39754.191404] BTRFS warning (device dm-11: state EA): direct IO failed ino 2014 rw 0,0 sector 0x22fd18 len 8192 err no 10
[39754.217950] BTRFS warning (device dm-11: state EA): direct IO failed ino 1332 rw 0,0 sector 0x23a578 len 69632 err no 10
[39754.218637] BTRFS warning (device dm-11: state EA): direct IO failed ino 1332 rw 0,0 sector 0x229d98 len 4096 err no 10
[39754.221879] BTRFS warning (device dm-11: state EA): direct IO failed ino 1454 rw 0,0 sector 0x22ce68 len 8192 err no 10
[39754.839118] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39754.839126] BTRFS info (device dm-11): use zstd compression, level 3
[39754.839130] BTRFS info (device dm-11): turning on async discard
[39754.839131] BTRFS info (device dm-11): disk space caching is enabled
[39754.843519] BTRFS info (device dm-11): start tree-log replay
[39757.005291] BTRFS: error (device dm-11) in btrfs_commit_transaction:2496: errno=-5 IO failure (Error while writing out transaction)
[39757.006237] BTRFS warning (device dm-11): direct IO failed ino 2264 rw 1,34817 sector 0x25a728 len 90112 err no 10
[39757.006492] BTRFS info (device dm-11: state E): forced readonly
[39757.006497] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[39757.006500] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[39757.019243] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[39757.640997] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39757.641005] BTRFS info (device dm-11): use zstd compression, level 3
[39757.641009] BTRFS info (device dm-11): turning on async discard
[39757.641010] BTRFS info (device dm-11): disk space caching is enabled
[39757.688749] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[39757.711643] BTRFS: error (device dm-11: state A) in __btrfs_run_delayed_items:1182: errno=-5 IO failure
[39757.712235] BTRFS info (device dm-11: state EA): forced readonly
[39757.712239] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[39757.712242] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[39757.712791] BTRFS: error (device dm-11: state EA) in btrfs_run_delayed_refs:2141: errno=-5 IO failure
[39758.243659] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39758.243667] BTRFS info (device dm-11): use zstd compression, level 3
[39758.243671] BTRFS info (device dm-11): turning on async discard
[39758.243672] BTRFS info (device dm-11): disk space caching is enabled
[39760.274395] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[39760.274402] btrfs_dev_stat_inc_and_print: 35 callbacks suppressed
[39760.274403] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[39760.274417] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[39760.274419] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 2, rd 0, flush 0, corrupt 0, gen 0
[39760.274471] BTRFS error (device dm-11): error writing primary super block to device 1
[39760.274476] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[39760.275107] BTRFS info (device dm-11: state E): forced readonly
[39760.275112] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[39760.275116] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[39760.279163] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[39760.279169] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[39760.281920] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 2, rd 1, flush 0, corrupt 0, gen 0
[39760.281938] BTRFS warning (device dm-11: state EA): direct IO failed ino 2313 rw 0,0 sector 0x25b300 len 4096 err no 10
[39760.283033] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[39760.286933] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 3, rd 1, flush 0, corrupt 0, gen 0
[39760.287237] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 3, rd 2, flush 0, corrupt 0, gen 0
[39760.287252] BTRFS warning (device dm-11: state EA): direct IO failed ino 2313 rw 0,0 sector 0x265080 len 32768 err no 10
[39760.288722] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 3, rd 3, flush 0, corrupt 0, gen 0
[39760.310725] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 3, rd 4, flush 0, corrupt 0, gen 0
[39760.310751] BTRFS warning (device dm-11: state EA): direct IO failed ino 2376 rw 0,0 sector 0x271b10 len 81920 err no 10
[39760.931588] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39760.931596] BTRFS info (device dm-11): use zstd compression, level 3
[39760.931599] BTRFS info (device dm-11): turning on async discard
[39760.931601] BTRFS info (device dm-11): disk space caching is enabled
[39761.967941] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[39761.967957] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 2, rd 0, flush 0, corrupt 0, gen 0
[39761.967999] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 3, rd 0, flush 0, corrupt 0, gen 0
[39761.968021] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[39761.968029] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[39761.970982] BTRFS error (device dm-11): error writing primary super block to device 1
[39761.970986] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[39761.971657] BTRFS info (device dm-11: state E): forced readonly
[39761.971662] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[39761.971665] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[39761.973671] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[39761.973676] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[39761.984588] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[39762.011006] BTRFS warning (device dm-11: state EA): direct IO failed ino 2485 rw 0,0 sector 0x27c3f0 len 16384 err no 10
[39762.015558] BTRFS warning (device dm-11: state EA): direct IO failed ino 2473 rw 0,0 sector 0x2776e8 len 45056 err no 10
[39762.015975] BTRFS warning (device dm-11: state EA): direct IO failed ino 2485 rw 0,0 sector 0x27c3c8 len 36864 err no 10
[39762.597586] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39762.597595] BTRFS info (device dm-11): use zstd compression, level 3
[39762.597598] BTRFS info (device dm-11): turning on async discard
[39762.597600] BTRFS info (device dm-11): disk space caching is enabled
[39762.640545] BTRFS error (device dm-11): error reading free space cache
[39762.640565] BTRFS warning (device dm-11): failed to load free space cache for block group 298844160, rebuilding it now
[39762.643231] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[39762.662936] BTRFS warning (device dm-11): direct IO failed ino 2488 rw 1,34817 sector 0x312800 len 16384 err no 10
[39762.663618] BTRFS: error (device dm-11: state A) in btrfs_run_delayed_refs:2141: errno=-5 IO failure
[39762.664278] BTRFS info (device dm-11: state EA): forced readonly
[39763.245869] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39763.245878] BTRFS info (device dm-11): use zstd compression, level 3
[39763.245882] BTRFS info (device dm-11): turning on async discard
[39763.245884] BTRFS info (device dm-11): disk space caching is enabled
[39763.278352] ------------[ cut here ]------------
[39763.278427] WARNING: CPU: 0 PID: 1328566 at fs/btrfs/discard.c:604 btrfs_discard_update_discardable+0x98/0xb0
[39763.278433] 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 intel_rapl_msr iTCO_wdt snd_hda_codec_generic iTCO_vendor_support snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hwdep snd_hda_core intel_rapl_common snd_pcm joydev snd_timer snd virtio_balloon soundcore i2c_i801 lpc_ich i2c_smbus zram ip_tables crct10dif_pclmul crc32_pclmul xfs crc32c_intel ghash_clmulni_intel serio_raw qemu_fw_cfg
[39763.278497] CPU: 0 PID: 1328566 Comm: kworker/u4:6 Tainted: G        W         5.19.0-rc8+ #796
[39763.278500] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[39763.278502] Workqueue: btrfs-cache btrfs_work_helper
[39763.278507] RIP: 0010:btrfs_discard_update_discardable+0x98/0xb0
[39763.278510] Code: 17 00 00 48 8b 83 80 00 00 00 48 89 83 88 00 00 00 5b 5d c3 cc cc cc cc 48 8d 7b 18 be ff ff ff ff e8 2c 9a 7e 00 85 c0 75 ac <0f> 0b eb a8 c3 cc cc cc cc 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f
[39763.278512] RSP: 0018:ffff9aa0c766fad0 EFLAGS: 00010246
[39763.278515] RAX: 0000000000000000 RBX: ffff8f1a93ceda00 RCX: 0000000000000001
[39763.278516] RDX: 0000000000000000 RSI: ffffffff92807c5b RDI: ffffffff928a831e
[39763.278518] RBP: ffff8f1a43b70000 R08: 0000000000000000 R09: 0000000000001000
[39763.278520] R10: ffff8f1943a5ae50 R11: 0000000000a0da00 R12: ffff8f1a97718010
[39763.278521] R13: ffff8f1a41f4e1e0 R14: ffff8f1a43b70000 R15: ffff8f1a471b7230
[39763.278524] FS:  0000000000000000(0000) GS:ffff8f1abbc00000(0000) knlGS:0000000000000000
[39763.278525] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[39763.278527] CR2: 000000000146f4a8 CR3: 000000011016e003 CR4: 0000000000370ef0
[39763.278531] Call Trace:
[39763.278534]  
[39763.278538]  __btrfs_remove_free_space_cache+0x27/0x30
[39763.278543]  load_free_space_cache+0xad2/0xaf0
[39763.278584]  caching_thread+0x40b/0x650
[39763.278592]  ? lock_release+0x137/0x2d0
[39763.278600]  btrfs_work_helper+0xf2/0x3e0
[39763.278602]  ? lock_is_held_type+0xe2/0x140
[39763.278609]  process_one_work+0x271/0x590
[39763.278618]  ? process_one_work+0x590/0x590
[39763.278621]  worker_thread+0x52/0x3b0
[39763.278626]  ? process_one_work+0x590/0x590
[39763.278629]  kthread+0xf0/0x120
[39763.278632]  ? kthread_complete_and_exit+0x20/0x20
[39763.278636]  ret_from_fork+0x1f/0x30
[39763.278650]  
[39763.278651] irq event stamp: 3493681
[39763.278653] hardirqs last  enabled at (3493687): [] __up_console_sem+0x5e/0x70
[39763.278656] hardirqs last disabled at (3493692): [] __up_console_sem+0x43/0x70
[39763.278658] softirqs last  enabled at (3493096): [] __irq_exit_rcu+0xeb/0x160
[39763.278661] softirqs last disabled at (3493087): [] __irq_exit_rcu+0xeb/0x160
[39763.278663] ---[ end trace 0000000000000000 ]---
[39763.278666] BTRFS warning (device dm-11): block group 298844160 has wrong amount of free space
[39763.278682] BTRFS warning (device dm-11): failed to load free space cache for block group 298844160, rebuilding it now
[39764.278936] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[39764.278950] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[39764.278959] BTRFS error (device dm-11): error writing primary super block to device 1
[39764.278962] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[39764.279631] BTRFS info (device dm-11: state E): forced readonly
[39764.279636] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[39764.279642] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[39764.281159] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[39764.281163] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[39764.283747] BTRFS warning (device dm-11: state EA): direct IO failed ino 2496 rw 0,0 sector 0x282e30 len 69632 err no 10
[39764.284121] BTRFS warning (device dm-11: state EA): direct IO failed ino 2491 rw 0,0 sector 0x257af0 len 20480 err no 10
[39764.284144] BTRFS warning (device dm-11: state EA): direct IO failed ino 2491 rw 0,0 sector 0x27dec8 len 24576 err no 10
[39764.288735] BTRFS warning (device dm-11: state EA): direct IO failed ino 2448 rw 0,0 sector 0x27c330 len 4096 err no 10
[39764.289757] BTRFS warning (device dm-11: state EA): direct IO failed ino 258 rw 0,0 sector 0x283f48 len 61440 err no 10
[39764.291766] BTRFS warning (device dm-11: state EA): direct IO failed ino 2496 rw 0,0 sector 0x284cb0 len 4096 err no 10
[39764.297881] BTRFS warning (device dm-11: state EA): direct IO failed ino 258 rw 0,0 sector 0x283fa0 len 16384 err no 10
[39764.300445] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[39764.309293] BTRFS warning (device dm-11: state EA): direct IO failed ino 2491 rw 0,0 sector 0x2836b0 len 12288 err no 10
[39764.312206] BTRFS warning (device dm-11: state EA): direct IO failed ino 2502 rw 0,0 sector 0x283168 len 4096 err no 10
[39764.312997] BTRFS warning (device dm-11: state EA): direct IO failed ino 2502 rw 0,0 sector 0x283168 len 4096 err no 10
[39764.314314] BTRFS warning (device dm-11: state EA): direct IO failed ino 2511 rw 0,0 sector 0x27ed28 len 16384 err no 10
[39764.319544] BTRFS warning (device dm-11: state EA): direct IO failed ino 2511 rw 0,0 sector 0x280f80 len 20480 err no 10
[39764.365000] BTRFS warning (device dm-11: state EA): direct IO failed ino 258 rw 0,0 sector 0x283460 len 16384 err no 10
[39764.365707] BTRFS warning (device dm-11: state EA): direct IO failed ino 2516 rw 0,0 sector 0x280d88 len 8192 err no 10
[39764.365729] BTRFS warning (device dm-11: state EA): direct IO failed ino 2516 rw 0,0 sector 0x7910 len 36864 err no 10
[39764.960285] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39764.960297] BTRFS info (device dm-11): use zstd compression, level 3
[39764.960302] BTRFS info (device dm-11): turning on async discard
[39764.960305] BTRFS info (device dm-11): disk space caching is enabled
[39764.999106] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[39765.027536] BTRFS: error (device dm-11: state A) in btrfs_run_delayed_refs:2141: errno=-5 IO failure
[39765.028081] BTRFS info (device dm-11: state EA): forced readonly
[39765.575298] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39765.575306] BTRFS info (device dm-11): use zstd compression, level 3
[39765.575310] BTRFS info (device dm-11): turning on async discard
[39765.575312] BTRFS info (device dm-11): disk space caching is enabled
[39765.606135] BTRFS info (device dm-11): the free space cache file (298844160) is invalid, skip it
[39767.604954] btrfs_dev_stat_inc_and_print: 128 callbacks suppressed
[39767.604958] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[39767.605008] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 2, rd 0, flush 0, corrupt 0, gen 0
[39767.609416] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 3, rd 0, flush 0, corrupt 0, gen 0
[39767.609425] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 4, rd 0, flush 0, corrupt 0, gen 0
[39767.609742] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 5, rd 0, flush 0, corrupt 0, gen 0
[39767.609748] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 6, rd 0, flush 0, corrupt 0, gen 0
[39767.609918] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 7, rd 0, flush 0, corrupt 0, gen 0
[39767.609923] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 8, rd 0, flush 0, corrupt 0, gen 0
[39767.609955] BTRFS: error (device dm-11) in btrfs_commit_transaction:2496: errno=-5 IO failure (Error while writing out transaction)
[39767.610676] BTRFS info (device dm-11: state E): forced readonly
[39767.610681] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[39767.610683] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[39767.616769] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[39768.290639] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39768.290648] BTRFS info (device dm-11): use zstd compression, level 3
[39768.290651] BTRFS info (device dm-11): turning on async discard
[39768.290652] BTRFS info (device dm-11): disk space caching is enabled
[39768.332872] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 0, rd 1, flush 0, corrupt 0, gen 0
[39768.332896] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 0, rd 2, flush 0, corrupt 0, gen 0
[39768.341849] BTRFS error (device dm-11): error reading free space cache
[39768.341872] BTRFS warning (device dm-11): failed to load free space cache for block group 298844160, rebuilding it now
[39768.344371] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[39768.367079] BTRFS warning (device dm-11): direct IO failed ino 2788 rw 1,34817 sector 0x312800 len 32768 err no 10
[39768.409972] BTRFS: error (device dm-11: state A) in __btrfs_free_extent:3078: errno=-5 IO failure
[39768.410704] BTRFS info (device dm-11: state EA): forced readonly
[39768.410712] BTRFS: error (device dm-11: state EA) in btrfs_run_delayed_refs:2141: errno=-5 IO failure
[39768.939915] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39768.939923] BTRFS info (device dm-11): use zstd compression, level 3
[39768.939926] BTRFS info (device dm-11): turning on async discard
[39768.939928] BTRFS info (device dm-11): disk space caching is enabled
[39769.989667] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[39769.989685] BTRFS error (device dm-11): error writing primary super block to device 1
[39769.989688] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[39769.990398] BTRFS info (device dm-11: state E): forced readonly
[39769.990407] BTRFS: error (device dm-11: state EA) in btrfs_sync_log:3203: errno=-5 IO failure
[39769.993480] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[39769.993488] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[39769.999028] BTRFS warning (device dm-11: state EA): direct IO failed ino 2846 rw 0,0 sector 0x2a4ea8 len 8192 err no 10
[39770.011048] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[39770.022798] BTRFS warning (device dm-11: state EA): direct IO failed ino 2846 rw 0,0 sector 0x2a4ea8 len 8192 err no 10
[39770.070609] BTRFS warning (device dm-11: state EA): direct IO failed ino 2792 rw 0,0 sector 0x29c6e8 len 16384 err no 10
[39770.689860] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39770.689870] BTRFS info (device dm-11): use zstd compression, level 3
[39770.689875] BTRFS info (device dm-11): turning on async discard
[39770.689878] BTRFS info (device dm-11): disk space caching is enabled
[39771.743311] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[39771.743324] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[39771.743966] BTRFS: error (device dm-11: state A) in maybe_insert_hole:5022: errno=-5 IO failure
[39771.744741] BTRFS info (device dm-11: state EA): forced readonly
[39771.745953] BTRFS error (device dm-11: state EA): error writing primary super block to device 1
[39771.745957] BTRFS: error (device dm-11: state EA) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[39771.746706] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[39771.746710] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[39771.759515] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[39772.396216] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39772.396224] BTRFS info (device dm-11): use zstd compression, level 3
[39772.396227] BTRFS info (device dm-11): turning on async discard
[39772.396229] BTRFS info (device dm-11): disk space caching is enabled
[39773.443132] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[39773.443138] btrfs_dev_stat_inc_and_print: 108 callbacks suppressed
[39773.443140] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[39773.443151] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[39773.443153] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 2, rd 0, flush 0, corrupt 0, gen 0
[39773.443163] BTRFS error (device dm-11): error writing primary super block to device 1
[39773.443165] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[39773.443914] BTRFS info (device dm-11: state E): forced readonly
[39773.443919] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[39773.443922] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[39773.451273] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 3, rd 0, flush 0, corrupt 0, gen 0
[39773.451671] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 4, rd 0, flush 0, corrupt 0, gen 0
[39773.452302] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 5, rd 0, flush 0, corrupt 0, gen 0
[39773.452338] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 6, rd 0, flush 0, corrupt 0, gen 0
[39773.452526] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 7, rd 0, flush 0, corrupt 0, gen 0
[39773.452574] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 8, rd 0, flush 0, corrupt 0, gen 0
[39773.452681] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 9, rd 0, flush 0, corrupt 0, gen 0
[39773.453419] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 10, rd 0, flush 0, corrupt 0, gen 0
[39773.457034] BTRFS warning (device dm-11: state EA): direct IO failed ino 2920 rw 0,0 sector 0x2b1908 len 16384 err no 10
[39773.457685] BTRFS warning (device dm-11: state EA): direct IO failed ino 2920 rw 0,0 sector 0x2b78b8 len 4096 err no 10
[39773.459601] BTRFS warning (device dm-11: state EA): direct IO failed ino 2931 rw 0,0 sector 0x2b57c8 len 12288 err no 10
[39773.460444] BTRFS warning (device dm-11: state EA): direct IO failed ino 2916 rw 0,0 sector 0x2b0760 len 16384 err no 10
[39773.460499] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[39773.460945] BTRFS warning (device dm-11: state EA): direct IO failed ino 2949 rw 0,0 sector 0x2ba290 len 8192 err no 10
[39773.461494] BTRFS warning (device dm-11: state EA): direct IO failed ino 2949 rw 0,0 sector 0x2ba328 len 8192 err no 10
[39773.507640] BTRFS warning (device dm-11: state EA): direct IO failed ino 2956 rw 0,0 sector 0x2b6ef8 len 81920 err no 10
[39773.509396] BTRFS warning (device dm-11: state EA): direct IO failed ino 2949 rw 0,0 sector 0x2b9fd0 len 40960 err no 10
[39773.511355] BTRFS warning (device dm-11: state EA): direct IO failed ino 2949 rw 0,0 sector 0x2b9fd0 len 49152 err no 10
[39773.513371] BTRFS warning (device dm-11: state EA): direct IO failed ino 2916 rw 0,0 sector 0x2b86c0 len 49152 err no 10
[39773.514259] BTRFS warning (device dm-11: state EA): direct IO failed ino 2949 rw 0,0 sector 0x2b8620 len 8192 err no 10
[39773.515724] BTRFS warning (device dm-11: state EA): direct IO failed ino 2949 rw 0,0 sector 0x2ba2a0 len 81920 err no 10
[39774.099219] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39774.099227] BTRFS info (device dm-11): use zstd compression, level 3
[39774.099230] BTRFS info (device dm-11): turning on async discard
[39774.099232] BTRFS info (device dm-11): disk space caching is enabled
[39774.123337] ------------[ cut here ]------------
[39774.123415] WARNING: CPU: 1 PID: 1232282 at fs/btrfs/discard.c:604 btrfs_discard_update_discardable+0x98/0xb0
[39774.123422] 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 intel_rapl_msr iTCO_wdt snd_hda_codec_generic iTCO_vendor_support snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hwdep snd_hda_core intel_rapl_common snd_pcm joydev snd_timer snd virtio_balloon soundcore i2c_i801 lpc_ich i2c_smbus zram ip_tables crct10dif_pclmul crc32_pclmul xfs crc32c_intel ghash_clmulni_intel serio_raw qemu_fw_cfg
[39774.123506] CPU: 1 PID: 1232282 Comm: kworker/u4:12 Tainted: G        W         5.19.0-rc8+ #796
[39774.123508] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[39774.123510] Workqueue: btrfs-cache btrfs_work_helper
[39774.123515] RIP: 0010:btrfs_discard_update_discardable+0x98/0xb0
[39774.123517] Code: 17 00 00 48 8b 83 80 00 00 00 48 89 83 88 00 00 00 5b 5d c3 cc cc cc cc 48 8d 7b 18 be ff ff ff ff e8 2c 9a 7e 00 85 c0 75 ac <0f> 0b eb a8 c3 cc cc cc cc 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f
[39774.123519] RSP: 0000:ffff9aa0c157fad0 EFLAGS: 00010246
[39774.123522] RAX: 0000000000000000 RBX: ffff8f1a42b69800 RCX: 0000000000000001
[39774.123524] RDX: 0000000000000000 RSI: ffffffff92807c5b RDI: ffffffff928a831e
[39774.123525] RBP: ffff8f1a543c4000 R08: 0000000000000000 R09: 0000000000001000
[39774.123527] R10: ffff8f1955ea1aa8 R11: 0000000000a09000 R12: ffff8f1a443c5010
[39774.123529] R13: ffff8f1a563b3350 R14: ffff8f1a543c4000 R15: ffff8f1a55c49bd0
[39774.123530] FS:  0000000000000000(0000) GS:ffff8f1abbd00000(0000) knlGS:0000000000000000
[39774.123532] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[39774.123534] CR2: 00007fe371690fd4 CR3: 00000001032de001 CR4: 0000000000370ee0
[39774.123538] Call Trace:
[39774.123540]  
[39774.123544]  __btrfs_remove_free_space_cache+0x27/0x30
[39774.123548]  load_free_space_cache+0xad2/0xaf0
[39774.123588]  caching_thread+0x40b/0x650
[39774.123596]  ? lock_release+0x137/0x2d0
[39774.123603]  btrfs_work_helper+0xf2/0x3e0
[39774.123606]  ? lock_is_held_type+0xe2/0x140
[39774.123613]  process_one_work+0x271/0x590
[39774.123622]  worker_thread+0x52/0x3b0
[39774.123627]  ? process_one_work+0x590/0x590
[39774.123630]  kthread+0xf0/0x120
[39774.123632]  ? kthread_complete_and_exit+0x20/0x20
[39774.123637]  ret_from_fork+0x1f/0x30
[39774.123650]  
[39774.123652] irq event stamp: 14795805
[39774.123653] hardirqs last  enabled at (14795811): [] __up_console_sem+0x5e/0x70
[39774.123656] hardirqs last disabled at (14795816): [] __up_console_sem+0x43/0x70
[39774.123658] softirqs last  enabled at (14795208): [] __irq_exit_rcu+0xeb/0x160
[39774.123661] softirqs last disabled at (14795199): [] __irq_exit_rcu+0xeb/0x160
[39774.123663] ---[ end trace 0000000000000000 ]---
[39774.123667] BTRFS warning (device dm-11): block group 298844160 has wrong amount of free space
[39774.123683] BTRFS warning (device dm-11): failed to load free space cache for block group 298844160, rebuilding it now
[39775.156233] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[39775.156244] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[39775.157148] BTRFS error (device dm-11): error writing primary super block to device 1
[39775.157152] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[39775.157902] BTRFS info (device dm-11: state E): forced readonly
[39775.157907] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[39775.157918] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[39775.160808] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[39775.160818] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[39775.166586] BTRFS warning (device dm-11: state EA): direct IO failed ino 2448 rw 0,0 sector 0x2c3750 len 28672 err no 10
[39775.168350] BTRFS warning (device dm-11: state EA): direct IO failed ino 2793 rw 0,0 sector 0x2c2c58 len 20480 err no 10
[39775.170343] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[39775.172437] BTRFS warning (device dm-11: state EA): direct IO failed ino 3004 rw 0,0 sector 0x8fd8 len 12288 err no 10
[39775.172477] BTRFS warning (device dm-11: state EA): direct IO failed ino 3004 rw 0,0 sector 0x2bc018 len 20480 err no 10
[39775.195421] BTRFS warning (device dm-11: state EA): direct IO failed ino 2448 rw 0,0 sector 0x297cf8 len 16384 err no 10
[39775.764018] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39775.764027] BTRFS info (device dm-11): use zstd compression, level 3
[39775.764030] BTRFS info (device dm-11): turning on async discard
[39775.764032] BTRFS info (device dm-11): disk space caching is enabled
[39777.797778] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[39777.797800] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[39777.797919] BTRFS error (device dm-11): error writing primary super block to device 1
[39777.797924] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[39777.798901] BTRFS info (device dm-11: state E): forced readonly
[39777.798913] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[39777.798919] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[39777.801609] BTRFS: error (device dm-11: state EA) in btrfs_sync_log:3192: errno=-5 IO failure
[39777.806300] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[39777.806308] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[39777.812038] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[39777.812579] BTRFS warning (device dm-11: state EA): direct IO failed ino 3061 rw 0,0 sector 0x2d4270 len 16384 err no 10
[39777.832818] BTRFS warning (device dm-11: state EA): direct IO failed ino 3054 rw 0,0 sector 0x2cdcc8 len 28672 err no 10
[39777.840518] BTRFS warning (device dm-11: state EA): direct IO failed ino 3061 rw 0,0 sector 0x2d2890 len 12288 err no 10
[39777.841681] BTRFS warning (device dm-11: state EA): direct IO failed ino 2804 rw 0,0 sector 0x2c8908 len 20480 err no 10
[39777.853971] BTRFS warning (device dm-11: state EA): direct IO failed ino 2496 rw 0,0 sector 0x2c8448 len 32768 err no 10
[39777.856557] BTRFS warning (device dm-11: state EA): direct IO failed ino 257 rw 0,0 sector 0x2cf948 len 4096 err no 10
[39778.463249] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39778.463258] BTRFS info (device dm-11): use zstd compression, level 3
[39778.463262] BTRFS info (device dm-11): turning on async discard
[39778.463264] BTRFS info (device dm-11): disk space caching is enabled
[39778.496411] btrfs_dev_stat_inc_and_print: 64 callbacks suppressed
[39778.496414] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 0, rd 1, flush 0, corrupt 0, gen 0
[39778.497275] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 0, rd 2, flush 0, corrupt 0, gen 0
[39778.497389] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 0, rd 3, flush 0, corrupt 0, gen 0
[39778.497414] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 0, rd 4, flush 0, corrupt 0, gen 0
[39778.498351] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 0, rd 5, flush 0, corrupt 0, gen 0
[39778.500054] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 0, rd 6, flush 0, corrupt 0, gen 0
[39778.500983] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 0, rd 7, flush 0, corrupt 0, gen 0
[39778.501072] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 0, rd 8, flush 0, corrupt 0, gen 0
[39778.501101] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 0, rd 9, flush 0, corrupt 0, gen 0
[39778.501237] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 0, rd 10, flush 0, corrupt 0, gen 0
[39778.505813] BTRFS: error (device dm-11: state A) in create_subvol:735: errno=-5 IO failure
[39778.506450] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[39778.506499] BTRFS info (device dm-11: state EA): forced readonly
[39779.110345] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39779.110363] BTRFS info (device dm-11): use zstd compression, level 3
[39779.110368] BTRFS info (device dm-11): turning on async discard
[39779.110370] BTRFS info (device dm-11): disk space caching is enabled
[39779.152880] ------------[ cut here ]------------
[39779.152992] WARNING: CPU: 0 PID: 1306129 at fs/btrfs/discard.c:604 btrfs_discard_update_discardable+0x98/0xb0
[39779.153001] 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 intel_rapl_msr iTCO_wdt snd_hda_codec_generic iTCO_vendor_support snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hwdep snd_hda_core intel_rapl_common snd_pcm joydev snd_timer snd virtio_balloon soundcore i2c_i801 lpc_ich i2c_smbus zram ip_tables crct10dif_pclmul crc32_pclmul xfs crc32c_intel ghash_clmulni_intel serio_raw qemu_fw_cfg
[39779.153122] CPU: 0 PID: 1306129 Comm: kworker/u4:1 Tainted: G        W         5.19.0-rc8+ #796
[39779.153127] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[39779.153130] Workqueue: btrfs-cache btrfs_work_helper
[39779.153137] RIP: 0010:btrfs_discard_update_discardable+0x98/0xb0
[39779.153142] Code: 17 00 00 48 8b 83 80 00 00 00 48 89 83 88 00 00 00 5b 5d c3 cc cc cc cc 48 8d 7b 18 be ff ff ff ff e8 2c 9a 7e 00 85 c0 75 ac <0f> 0b eb a8 c3 cc cc cc cc 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f
[39779.153146] RSP: 0018:ffff9aa0c38e7ad0 EFLAGS: 00010246
[39779.153151] RAX: 0000000000000000 RBX: ffff8f1a42b69c00 RCX: 0000000000000001
[39779.153154] RDX: 0000000000000000 RSI: ffffffff92807c5b RDI: ffffffff928a831e
[39779.153156] RBP: ffff8f1a4532c000 R08: 0000000000000000 R09: 0000000000001000
[39779.153159] R10: ffff8f1947f03f88 R11: 0000000000a09700 R12: ffff8f1a443c6010
[39779.153162] R13: ffff8f1a91d484c0 R14: ffff8f1a4532c000 R15: ffff8f1a45490770
[39779.153165] FS:  0000000000000000(0000) GS:ffff8f1abbc00000(0000) knlGS:0000000000000000
[39779.153168] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[39779.153171] CR2: 00007f822c930e20 CR3: 0000000104e42004 CR4: 0000000000370ef0
[39779.153177] Call Trace:
[39779.153180]  
[39779.153187]  __btrfs_remove_free_space_cache+0x27/0x30
[39779.153193]  load_free_space_cache+0xad2/0xaf0
[39779.153270]  caching_thread+0x40b/0x650
[39779.153285]  ? lock_release+0x137/0x2d0
[39779.153298]  btrfs_work_helper+0xf2/0x3e0
[39779.153302]  ? lock_is_held_type+0xe2/0x140
[39779.153315]  process_one_work+0x271/0x590
[39779.153331]  ? process_one_work+0x590/0x590
[39779.153335]  worker_thread+0x52/0x3b0
[39779.153344]  ? process_one_work+0x590/0x590
[39779.153348]  kthread+0xf0/0x120
[39779.153352]  ? kthread_complete_and_exit+0x20/0x20
[39779.153361]  ret_from_fork+0x1f/0x30
[39779.153386]  
[39779.153388] irq event stamp: 9409089
[39779.153391] hardirqs last  enabled at (9409095): [] __up_console_sem+0x5e/0x70
[39779.153395] hardirqs last disabled at (9409100): [] __up_console_sem+0x43/0x70
[39779.153398] softirqs last  enabled at (9407818): [] __irq_exit_rcu+0xeb/0x160
[39779.153402] softirqs last disabled at (9407811): [] __irq_exit_rcu+0xeb/0x160
[39779.153405] ---[ end trace 0000000000000000 ]---
[39779.153410] BTRFS warning (device dm-11): block group 298844160 has wrong amount of free space
[39779.153712] BTRFS warning (device dm-11): failed to load free space cache for block group 298844160, rebuilding it now
[39781.158708] BTRFS: error (device dm-11) in btrfs_commit_transaction:2496: errno=-5 IO failure (Error while writing out transaction)
[39781.159577] BTRFS info (device dm-11: state E): forced readonly
[39781.159583] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[39781.159587] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[39781.162155] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[39781.163105] BTRFS warning (device dm-11: state EA): direct IO failed ino 3147 rw 0,0 sector 0x2da5c0 len 69632 err no 10
[39781.163194] BTRFS warning (device dm-11: state EA): direct IO failed ino 264 rw 0,0 sector 0x2eb290 len 4096 err no 10
[39781.164905] BTRFS warning (device dm-11: state EA): direct IO failed ino 259 rw 0,0 sector 0x2eb2b8 len 4096 err no 10
[39781.177787] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[39781.187372] BTRFS warning (device dm-11: state EA): direct IO failed ino 3155 rw 0,0 sector 0x2e65c0 len 12288 err no 10
[39781.193469] BTRFS warning (device dm-11: state EA): direct IO failed ino 269 rw 0,0 sector 0x2e5a18 len 4096 err no 10
[39781.211008] BTRFS warning (device dm-11: state EA): direct IO failed ino 3169 rw 0,0 sector 0x2dfba0 len 36864 err no 10
[39781.212329] BTRFS warning (device dm-11: state EA): direct IO failed ino 3147 rw 0,0 sector 0x2dc408 len 36864 err no 10
[39781.212349] BTRFS warning (device dm-11: state EA): direct IO failed ino 3147 rw 0,0 sector 0x2da138 len 4096 err no 10
[39781.212907] BTRFS warning (device dm-11: state EA): direct IO failed ino 269 rw 0,0 sector 0x2e5a30 len 8192 err no 10
[39781.217313] BTRFS warning (device dm-11: state EA): direct IO failed ino 2156 rw 0,0 sector 0x2eb5c0 len 8192 err no 10
[39781.833873] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39781.833898] BTRFS info (device dm-11): use zstd compression, level 3
[39781.833901] BTRFS info (device dm-11): turning on async discard
[39781.833903] BTRFS info (device dm-11): disk space caching is enabled
[39781.870549] BTRFS: error (device dm-11: state A) in create_subvol:735: errno=-5 IO failure
[39781.871195] BTRFS info (device dm-11: state EA): forced readonly
[39781.876448] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[39782.418698] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39782.418706] BTRFS info (device dm-11): use zstd compression, level 3
[39782.418709] BTRFS info (device dm-11): turning on async discard
[39782.418711] BTRFS info (device dm-11): disk space caching is enabled
[39782.462906] BTRFS: error (device dm-11: state A) in create_subvol:735: errno=-5 IO failure
[39782.463592] BTRFS info (device dm-11: state EA): forced readonly
[39782.472179] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[39783.053815] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39783.053824] BTRFS info (device dm-11): use zstd compression, level 3
[39783.053827] BTRFS info (device dm-11): turning on async discard
[39783.053829] BTRFS info (device dm-11): disk space caching is enabled
[39783.109801] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[39783.137050] BTRFS: error (device dm-11: state A) in btrfs_run_delayed_refs:2141: errno=-5 IO failure
[39783.137667] BTRFS info (device dm-11: state EA): forced readonly
[39783.661416] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39783.661424] BTRFS info (device dm-11): use zstd compression, level 3
[39783.661427] BTRFS info (device dm-11): turning on async discard
[39783.661428] BTRFS info (device dm-11): disk space caching is enabled
[39783.689100] ------------[ cut here ]------------
[39783.689173] WARNING: CPU: 1 PID: 1232282 at fs/btrfs/discard.c:604 btrfs_discard_update_discardable+0x98/0xb0
[39783.689180] 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 intel_rapl_msr iTCO_wdt snd_hda_codec_generic iTCO_vendor_support snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hwdep snd_hda_core intel_rapl_common snd_pcm joydev snd_timer snd virtio_balloon soundcore i2c_i801 lpc_ich i2c_smbus zram ip_tables crct10dif_pclmul crc32_pclmul xfs crc32c_intel ghash_clmulni_intel serio_raw qemu_fw_cfg
[39783.689249] CPU: 1 PID: 1232282 Comm: kworker/u4:12 Tainted: G        W         5.19.0-rc8+ #796
[39783.689253] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[39783.689255] Workqueue: btrfs-cache btrfs_work_helper
[39783.689260] RIP: 0010:btrfs_discard_update_discardable+0x98/0xb0
[39783.689262] Code: 17 00 00 48 8b 83 80 00 00 00 48 89 83 88 00 00 00 5b 5d c3 cc cc cc cc 48 8d 7b 18 be ff ff ff ff e8 2c 9a 7e 00 85 c0 75 ac <0f> 0b eb a8 c3 cc cc cc cc 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f
[39783.689265] RSP: 0018:ffff9aa0c157fad0 EFLAGS: 00010246
[39783.689268] RAX: 0000000000000000 RBX: ffff8f1a93cecc00 RCX: 0000000000000001
[39783.689269] RDX: 0000000000000000 RSI: ffffffff92807c5b RDI: ffffffff928a831e
[39783.689271] RBP: ffff8f1a44a8c000 R08: 0000000000000000 R09: 0000000000001000
[39783.689273] R10: 0000000000020833 R11: 0000000000000000 R12: ffff8f1a9771c010
[39783.689274] R13: ffff8f1a91d4d890 R14: ffff8f1a44a8c000 R15: ffff8f1a43ea34d0
[39783.689276] FS:  0000000000000000(0000) GS:ffff8f1abbd00000(0000) knlGS:0000000000000000
[39783.689278] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[39783.689280] CR2: 00000000006104a8 CR3: 0000000103bec004 CR4: 0000000000370ee0
[39783.689284] Call Trace:
[39783.689286]  
[39783.689291]  __btrfs_remove_free_space_cache+0x27/0x30
[39783.689295]  load_free_space_cache+0xad2/0xaf0
[39783.689335]  caching_thread+0x40b/0x650
[39783.689343]  ? lock_release+0x137/0x2d0
[39783.689353]  btrfs_work_helper+0xf2/0x3e0
[39783.689357]  ? lock_is_held_type+0xe2/0x140
[39783.689368]  process_one_work+0x271/0x590
[39783.689383]  worker_thread+0x52/0x3b0
[39783.689388]  ? process_one_work+0x590/0x590
[39783.689391]  kthread+0xf0/0x120
[39783.689393]  ? kthread_complete_and_exit+0x20/0x20
[39783.689398]  ret_from_fork+0x1f/0x30
[39783.689412]  
[39783.689413] irq event stamp: 14838451
[39783.689415] hardirqs last  enabled at (14838457): [] __up_console_sem+0x5e/0x70
[39783.689418] hardirqs last disabled at (14838462): [] __up_console_sem+0x43/0x70
[39783.689420] softirqs last  enabled at (14837888): [] __irq_exit_rcu+0xeb/0x160
[39783.689423] softirqs last disabled at (14837877): [] __irq_exit_rcu+0xeb/0x160
[39783.689425] ---[ end trace 0000000000000000 ]---
[39783.689429] BTRFS warning (device dm-11): block group 298844160 has wrong amount of free space
[39783.689445] BTRFS warning (device dm-11): failed to load free space cache for block group 298844160, rebuilding it now
[39784.726851] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[39784.726858] btrfs_dev_stat_inc_and_print: 372 callbacks suppressed
[39784.726859] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[39784.726870] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[39784.726873] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 2, rd 0, flush 0, corrupt 0, gen 0
[39784.726945] BTRFS error (device dm-11): error writing primary super block to device 1
[39784.726949] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[39784.727847] BTRFS info (device dm-11: state E): forced readonly
[39784.727864] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[39784.727869] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[39784.728937] BTRFS: error (device dm-11: state EA) in btrfs_sync_log:3192: errno=-5 IO failure
[39784.730474] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[39784.730481] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[39784.732305] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 3, rd 0, flush 0, corrupt 0, gen 0
[39784.749027] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[39784.776211] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 3, rd 1, flush 0, corrupt 0, gen 0
[39784.776228] BTRFS warning (device dm-11: state EA): direct IO failed ino 3240 rw 0,0 sector 0x2f20c0 len 16384 err no 10
[39784.779517] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 3, rd 2, flush 0, corrupt 0, gen 0
[39784.779535] BTRFS warning (device dm-11: state EA): direct IO failed ino 3134 rw 0,0 sector 0x2f04b8 len 36864 err no 10
[39784.802358] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 3, rd 3, flush 0, corrupt 0, gen 0
[39784.802377] BTRFS warning (device dm-11: state EA): direct IO failed ino 3220 rw 0,0 sector 0x2eb7d8 len 4096 err no 10
[39784.802990] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 3, rd 4, flush 0, corrupt 0, gen 0
[39784.803364] BTRFS warning (device dm-11: state EA): direct IO failed ino 3240 rw 0,0 sector 0x2f2d08 len 24576 err no 10
[39784.804068] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 3, rd 5, flush 0, corrupt 0, gen 0
[39784.804218] BTRFS warning (device dm-11: state EA): direct IO failed ino 3227 rw 0,0 sector 0x2f2998 len 32768 err no 10
[39784.804595] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 3, rd 6, flush 0, corrupt 0, gen 0
[39784.804613] BTRFS warning (device dm-11: state EA): direct IO failed ino 3226 rw 0,0 sector 0x2f0b08 len 20480 err no 10
[39785.464156] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39785.464164] BTRFS info (device dm-11): use zstd compression, level 3
[39785.464167] BTRFS info (device dm-11): turning on async discard
[39785.464169] BTRFS info (device dm-11): disk space caching is enabled
[39785.468787] BTRFS info (device dm-11): start tree-log replay
[39787.569468] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[39787.576163] BTRFS: error (device dm-11) in btrfs_commit_transaction:2496: errno=-5 IO failure (Error while writing out transaction)
[39787.576976] BTRFS info (device dm-11: state E): forced readonly
[39787.576981] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[39787.576984] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[39787.577627] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[39787.577631] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[39787.588194] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[39787.608532] BTRFS warning (device dm-11: state EA): direct IO failed ino 2448 rw 0,0 sector 0x2f9060 len 8192 err no 10
[39787.611457] BTRFS warning (device dm-11: state EA): direct IO failed ino 2920 rw 0,0 sector 0x2f72e8 len 8192 err no 10
[39788.236699] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39788.236708] BTRFS info (device dm-11): use zstd compression, level 3
[39788.236711] BTRFS info (device dm-11): turning on async discard
[39788.236713] BTRFS info (device dm-11): disk space caching is enabled
[39788.277990] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[39788.303581] BTRFS: error (device dm-11: state A) in btrfs_run_delayed_refs:2141: errno=-5 IO failure
[39788.304217] BTRFS info (device dm-11: state EA): forced readonly
[39788.822119] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39788.822128] BTRFS info (device dm-11): use zstd compression, level 3
[39788.822131] BTRFS info (device dm-11): turning on async discard
[39788.822133] BTRFS info (device dm-11): disk space caching is enabled
[39790.848581] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[39790.848587] btrfs_dev_stat_inc_and_print: 46 callbacks suppressed
[39790.848589] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[39790.848599] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[39790.848601] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 2, rd 0, flush 0, corrupt 0, gen 0
[39790.848610] BTRFS error (device dm-11): error writing primary super block to device 1
[39790.848613] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[39790.849271] BTRFS info (device dm-11: state E): forced readonly
[39790.849276] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[39790.849279] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[39790.850754] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 2, rd 1, flush 0, corrupt 0, gen 0
[39790.852935] BTRFS warning (device dm-11: state EA): direct IO failed ino 258 rw 0,0 sector 0x25c608 len 40960 err no 10
[39790.853111] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 3, rd 1, flush 0, corrupt 0, gen 0
[39790.853427] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 3, rd 2, flush 0, corrupt 0, gen 0
[39790.853764] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 3, rd 3, flush 0, corrupt 0, gen 0
[39790.853778] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 4, rd 3, flush 0, corrupt 0, gen 0
[39790.853792] BTRFS warning (device dm-11: state EA): direct IO failed ino 258 rw 0,0 sector 0x2589c0 len 28672 err no 10
[39790.853880] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 5, rd 3, flush 0, corrupt 0, gen 0
[39790.853914] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 6, rd 3, flush 0, corrupt 0, gen 0
[39790.853923] BTRFS warning (device dm-11: state EA): direct IO failed ino 259 rw 0,0 sector 0x25b148 len 98304 err no 10
[39790.861195] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[39790.862525] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 6, rd 4, flush 0, corrupt 0, gen 0
[39790.862543] BTRFS warning (device dm-11: state EA): direct IO failed ino 3377 rw 0,0 sector 0x193f20 len 8192 err no 10
[39790.864027] BTRFS warning (device dm-11: state EA): direct IO failed ino 267 rw 0,0 sector 0x262420 len 45056 err no 10
[39790.864246] BTRFS warning (device dm-11: state EA): direct IO failed ino 3370 rw 0,0 sector 0x2ff270 len 12288 err no 10
[39790.882964] BTRFS warning (device dm-11: state EA): direct IO failed ino 3381 rw 0,0 sector 0x192bb0 len 4096 err no 10
[39791.493415] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39791.493423] BTRFS info (device dm-11): use zstd compression, level 3
[39791.493426] BTRFS info (device dm-11): turning on async discard
[39791.493428] BTRFS info (device dm-11): disk space caching is enabled
[39791.544176] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[39791.580111] BTRFS: error (device dm-11: state A) in btrfs_run_delayed_refs:2141: errno=-5 IO failure
[39791.580648] BTRFS info (device dm-11: state EA): forced readonly
[39792.115148] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39792.115157] BTRFS info (device dm-11): use zstd compression, level 3
[39792.115160] BTRFS info (device dm-11): turning on async discard
[39792.115162] BTRFS info (device dm-11): disk space caching is enabled
[39792.157962] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[39792.184177] BTRFS: error (device dm-11: state A) in btrfs_run_delayed_refs:2141: errno=-5 IO failure
[39792.184766] BTRFS info (device dm-11: state EA): forced readonly
[39792.635755] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39792.635765] BTRFS info (device dm-11): use zstd compression, level 3
[39792.635769] BTRFS info (device dm-11): turning on async discard
[39792.635771] BTRFS info (device dm-11): disk space caching is enabled
[39793.683642] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[39793.683656] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[39793.683665] BTRFS error (device dm-11): error writing primary super block to device 1
[39793.683668] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[39793.684315] BTRFS info (device dm-11: state E): forced readonly
[39793.684320] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[39793.684323] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[39793.686541] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[39793.686546] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[39793.697428] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[39793.712911] BTRFS warning (device dm-11: state EA): direct IO failed ino 3072 rw 0,0 sector 0x301d18 len 32768 err no 10
[39793.724249] BTRFS warning (device dm-11: state EA): direct IO failed ino 3072 rw 0,0 sector 0x301d10 len 4096 err no 10
[39793.724535] BTRFS warning (device dm-11: state EA): direct IO failed ino 3026 rw 0,0 sector 0x3018d0 len 73728 err no 10
[39793.725648] BTRFS warning (device dm-11: state EA): direct IO failed ino 3370 rw 0,0 sector 0x1da748 len 4096 err no 10
[39794.350849] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39794.350857] BTRFS info (device dm-11): use zstd compression, level 3
[39794.350860] BTRFS info (device dm-11): turning on async discard
[39794.350862] BTRFS info (device dm-11): disk space caching is enabled
[39794.439192] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[39794.439263] BTRFS: error (device dm-11: state A) in __btrfs_free_extent:3078: errno=-5 IO failure
[39794.439956] BTRFS info (device dm-11: state EA): forced readonly
[39794.439964] BTRFS: error (device dm-11: state EA) in btrfs_run_delayed_refs:2141: errno=-5 IO failure
[39794.439972] BTRFS error (device dm-11: state EA): error writing primary super block to device 1
[39794.440519] BTRFS: error (device dm-11: state EA) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[39794.441290] BTRFS: error (device dm-11: state EA) in btrfs_sync_log:3203: errno=-5 IO failure
[39794.451930] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[39794.996392] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[39794.996400] BTRFS info (device dm-11): use zstd compression, level 3
[39794.996403] BTRFS info (device dm-11): turning on async discard
[39794.996405] BTRFS info (device dm-11): disk space caching is enabled