[16661.763128] run fstests generic/475 at 2022-08-16 01:31:25
[16662.722075] BTRFS: device fsid 03261b60-e4f8-4a06-8a4b-3a550d8bbc94 devid 1 transid 6 /dev/mapper/vg0-lv9 scanned by mkfs.btrfs (2215309)
[16662.915554] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16662.915563] BTRFS info (device dm-11): turning on async discard
[16662.915565] BTRFS info (device dm-11): disk space caching is enabled
[16662.918748] BTRFS info (device dm-11): checking UUID tree
[16662.953499] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[16662.953514] BTRFS warning (device dm-11): direct IO failed ino 264 rw 1,34817 sector 0x6900 len 94208 err no 10
[16662.953763] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 2, rd 0, flush 0, corrupt 0, gen 0
[16662.955554] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 3, rd 0, flush 0, corrupt 0, gen 0
[16662.955593] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 4, rd 0, flush 0, corrupt 0, gen 0
[16662.955598] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 5, rd 0, flush 0, corrupt 0, gen 0
[16662.955631] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 6, rd 0, flush 0, corrupt 0, gen 0
[16662.955635] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 7, rd 0, flush 0, corrupt 0, gen 0
[16662.960371] BTRFS: error (device dm-11: state A) in cache_save_setup:2804: errno=-5 IO failure
[16662.960882] BTRFS info (device dm-11: state EA): forced readonly
[16662.960890] BTRFS: error (device dm-11: state EA) in btrfs_start_dirty_block_groups:3051: errno=-5 IO failure
[16662.967392] buffer_io_error: 760 callbacks suppressed
[16662.967397] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16663.495186] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16663.495194] BTRFS info (device dm-11): turning on async discard
[16663.495196] BTRFS info (device dm-11): disk space caching is enabled
[16663.498404] BTRFS info (device dm-11): checking UUID tree
[16665.528225] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16665.528232] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[16665.528243] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16665.528245] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 2, rd 0, flush 0, corrupt 0, gen 0
[16665.528267] BTRFS error (device dm-11): error writing primary super block to device 1
[16665.528271] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16665.529266] BTRFS info (device dm-11: state E): forced readonly
[16665.529276] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16665.530261] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16665.530272] BTRFS: error (device dm-11: state EA) in btrfs_sync_log:3192: errno=-5 IO failure
[16665.535579] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 3, rd 0, flush 0, corrupt 0, gen 0
[16665.536471] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16665.536696] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16665.542302] BTRFS warning (device dm-11: state EA): direct IO failed ino 262 rw 0,0 sector 0xa428 len 16384 err no 10
[16665.542587] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16665.556884] BTRFS warning (device dm-11: state EA): direct IO failed ino 314 rw 0,0 sector 0xa5a8 len 4096 err no 10
[16665.558372] BTRFS warning (device dm-11: state EA): direct IO failed ino 262 rw 0,0 sector 0xa420 len 20480 err no 10
[16665.559491] BTRFS warning (device dm-11: state EA): direct IO failed ino 293 rw 0,0 sector 0x11d328 len 73728 err no 10
[16665.587149] BTRFS warning (device dm-11: state EA): direct IO failed ino 261 rw 0,0 sector 0x11b718 len 40960 err no 10
[16665.587210] BTRFS warning (device dm-11: state EA): direct IO failed ino 312 rw 0,0 sector 0x11db00 len 65536 err no 10
[16665.588103] BTRFS warning (device dm-11: state EA): direct IO failed ino 291 rw 0,0 sector 0x7ad8 len 36864 err no 10
[16665.589713] BTRFS warning (device dm-11: state EA): direct IO failed ino 312 rw 0,0 sector 0x11dbc0 len 28672 err no 10
[16666.143165] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16666.143175] BTRFS info (device dm-11): turning on async discard
[16666.143177] BTRFS info (device dm-11): disk space caching is enabled
[16666.146660] BTRFS info (device dm-11): start tree-log replay
[16666.155311] ------------[ cut here ]------------
[16666.155390] WARNING: CPU: 1 PID: 2170722 at fs/btrfs/discard.c:604 btrfs_discard_update_discardable+0x98/0xb0
[16666.155399] 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 iTCO_wdt intel_rapl_msr iTCO_vendor_support snd_hda_codec_generic snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hwdep snd_hda_core snd_pcm i2c_i801 snd_timer i2c_smbus intel_rapl_common snd joydev soundcore lpc_ich virtio_balloon zram ip_tables xfs crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel serio_raw qemu_fw_cfg
[16666.155463] CPU: 1 PID: 2170722 Comm: kworker/u4:4 Not tainted 5.19.0-rc8+ #798
[16666.155466] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[16666.155470] Workqueue: btrfs-cache btrfs_work_helper
[16666.155476] RIP: 0010:btrfs_discard_update_discardable+0x98/0xb0
[16666.155479] 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
[16666.155482] RSP: 0018:ffffc093c35e7ad0 EFLAGS: 00010246
[16666.155484] RAX: 0000000000000000 RBX: ffff9abfde5cb600 RCX: 0000000000000001
[16666.155486] RDX: 0000000000000000 RSI: ffffffff8d807c5b RDI: ffffffff8d8a831e
[16666.155488] RBP: ffff9abf9ee48000 R08: 0000000000000000 R09: 0000000000000000
[16666.155489] R10: ffff9abec2614f20 R11: 0000000000000001 R12: ffff9abf813a9010
[16666.155491] R13: ffff9abf9f823ca0 R14: ffff9abf9ee48000 R15: ffff9abf870fce00
[16666.155492] FS: 0000000000000000(0000) GS:ffff9abffbd00000(0000) knlGS:0000000000000000
[16666.155494] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[16666.155496] CR2: 00007f00ef7fd490 CR3: 000000010f8d4004 CR4: 0000000000370ee0
[16666.155502] Call Trace:
[16666.155504]
[16666.155508] __btrfs_remove_free_space_cache+0x27/0x30
[16666.155512] load_free_space_cache+0xad2/0xaf0
[16666.155552] caching_thread+0x40b/0x650
[16666.155560] ? lock_release+0x137/0x2d0
[16666.155567] btrfs_work_helper+0xf2/0x3e0
[16666.155570] ? lock_is_held_type+0xe2/0x140
[16666.155577] process_one_work+0x271/0x590
[16666.155585] ? process_one_work+0x590/0x590
[16666.155588] worker_thread+0x52/0x3b0
[16666.155593] ? process_one_work+0x590/0x590
[16666.155595] kthread+0xf0/0x120
[16666.155598] ? kthread_complete_and_exit+0x20/0x20
[16666.155602] ret_from_fork+0x1f/0x30
[16666.155616]
[16666.155620] irq event stamp: 584825
[16666.155621] hardirqs last enabled at (584831): [] __up_console_sem+0x5e/0x70
[16666.155626] hardirqs last disabled at (584836): [] __up_console_sem+0x43/0x70
[16666.155628] softirqs last enabled at (583392): [] __irq_exit_rcu+0xeb/0x160
[16666.155632] softirqs last disabled at (583383): [] __irq_exit_rcu+0xeb/0x160
[16666.155634] ---[ end trace 0000000000000000 ]---
[16666.155637] BTRFS warning (device dm-11): block group 298844160 has wrong amount of free space
[16666.155652] BTRFS warning (device dm-11): failed to load free space cache for block group 298844160, rebuilding it now
[16666.225860] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16666.255348] BTRFS: error (device dm-11: state A) in __btrfs_run_delayed_items:1182: errno=-5 IO failure
[16666.255893] BTRFS info (device dm-11: state EA): forced readonly
[16666.255897] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16666.255900] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16666.710985] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16666.710994] BTRFS info (device dm-11): turning on async discard
[16666.710995] BTRFS info (device dm-11): disk space caching is enabled
[16668.808851] btrfs_dev_stat_inc_and_print: 17 callbacks suppressed
[16668.808855] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[16668.809902] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 2, rd 0, flush 0, corrupt 0, gen 0
[16668.809920] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 3, rd 0, flush 0, corrupt 0, gen 0
[16668.810729] BTRFS: error (device dm-11) in btrfs_commit_transaction:2496: errno=-5 IO failure (Error while writing out transaction)
[16668.811475] BTRFS info (device dm-11: state E): forced readonly
[16668.811481] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16668.811485] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16668.816440] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 4, rd 0, flush 0, corrupt 0, gen 0
[16668.828125] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16669.402736] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16669.402744] BTRFS info (device dm-11): turning on async discard
[16669.402746] BTRFS info (device dm-11): disk space caching is enabled
[16671.456366] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[16671.456377] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 2, rd 0, flush 0, corrupt 0, gen 0
[16671.456528] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 3, rd 0, flush 0, corrupt 0, gen 0
[16671.456534] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 4, rd 0, flush 0, corrupt 0, gen 0
[16671.456550] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 5, rd 0, flush 0, corrupt 0, gen 0
[16671.456555] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 6, rd 0, flush 0, corrupt 0, gen 0
[16671.456589] BTRFS: error (device dm-11) in btrfs_commit_transaction:2496: errno=-5 IO failure (Error while writing out transaction)
[16671.457672] BTRFS info (device dm-11: state E): forced readonly
[16671.457691] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16671.457695] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16671.464235] BTRFS warning (device dm-11: state EA): direct IO failed ino 480 rw 0,0 sector 0x143d90 len 12288 err no 10
[16671.466728] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16671.491603] BTRFS warning (device dm-11: state EA): direct IO failed ino 469 rw 0,0 sector 0x1139b0 len 20480 err no 10
[16672.048450] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16672.048459] BTRFS info (device dm-11): turning on async discard
[16672.048461] BTRFS info (device dm-11): disk space caching is enabled
[16674.096079] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16674.096085] btrfs_dev_stat_inc_and_print: 11 callbacks suppressed
[16674.096087] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[16674.096091] BTRFS error (device dm-11): error writing primary super block to device 1
[16674.096101] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16674.096684] BTRFS info (device dm-11: state E): forced readonly
[16674.097384] BTRFS: error (device dm-11: state EA) in btrfs_sync_log:3203: errno=-5 IO failure
[16674.098887] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 1, rd 1, flush 0, corrupt 0, gen 0
[16674.099060] BTRFS warning (device dm-11: state EA): direct IO failed ino 584 rw 0,0 sector 0x1150b8 len 36864 err no 10
[16674.102505] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 1, rd 2, flush 0, corrupt 0, gen 0
[16674.102520] BTRFS warning (device dm-11: state EA): direct IO failed ino 556 rw 0,0 sector 0x1513d8 len 90112 err no 10
[16674.105085] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16674.105089] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16674.105633] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16674.107377] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 1, rd 3, flush 0, corrupt 0, gen 0
[16674.107403] BTRFS warning (device dm-11: state EA): direct IO failed ino 552 rw 0,0 sector 0x99a0 len 4096 err no 10
[16674.127646] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 1, rd 4, flush 0, corrupt 0, gen 0
[16674.127673] BTRFS warning (device dm-11: state EA): direct IO failed ino 258 rw 0,0 sector 0x157e98 len 24576 err no 10
[16674.129539] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 1, rd 5, flush 0, corrupt 0, gen 0
[16674.129557] BTRFS warning (device dm-11: state EA): direct IO failed ino 260 rw 0,0 sector 0x158b10 len 32768 err no 10
[16674.132313] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 1, rd 6, flush 0, corrupt 0, gen 0
[16674.132331] BTRFS warning (device dm-11: state EA): direct IO failed ino 259 rw 0,0 sector 0x155148 len 32768 err no 10
[16674.132338] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 1, rd 7, flush 0, corrupt 0, gen 0
[16674.132358] BTRFS warning (device dm-11: state EA): direct IO failed ino 259 rw 0,0 sector 0x152b88 len 4096 err no 10
[16674.132797] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 1, rd 8, flush 0, corrupt 0, gen 0
[16674.134013] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 1, rd 9, flush 0, corrupt 0, gen 0
[16674.667066] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16674.667074] BTRFS info (device dm-11): turning on async discard
[16674.667076] BTRFS info (device dm-11): disk space caching is enabled
[16676.774945] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16676.774959] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16676.774976] BTRFS error (device dm-11): error writing primary super block to device 1
[16676.775037] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16676.775654] BTRFS info (device dm-11: state E): forced readonly
[16676.775665] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16676.775668] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16676.776237] BTRFS: error (device dm-11: state EA) in btrfs_sync_log:3192: errno=-5 IO failure
[16676.781170] BTRFS warning (device dm-11: state EA): direct IO failed ino 264 rw 0,0 sector 0x1644f0 len 90112 err no 10
[16676.789095] BTRFS warning (device dm-11: state EA): direct IO failed ino 699 rw 0,0 sector 0x15f850 len 36864 err no 10
[16676.789171] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16676.793035] BTRFS warning (device dm-11: state EA): direct IO failed ino 258 rw 0,0 sector 0x1617e8 len 4096 err no 10
[16676.794286] BTRFS warning (device dm-11: state EA): direct IO failed ino 258 rw 0,0 sector 0x160a00 len 53248 err no 10
[16676.801427] BTRFS warning (device dm-11: state EA): direct IO failed ino 721 rw 0,0 sector 0x162ed8 len 8192 err no 10
[16676.828486] BTRFS warning (device dm-11: state EA): direct IO failed ino 685 rw 0,0 sector 0x15b410 len 65536 err no 10
[16676.828519] BTRFS warning (device dm-11: state EA): direct IO failed ino 685 rw 0,0 sector 0x152c80 len 4096 err no 10
[16676.829408] BTRFS warning (device dm-11: state EA): direct IO failed ino 661 rw 0,0 sector 0x1620f8 len 4096 err no 10
[16677.352159] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16677.352167] BTRFS info (device dm-11): turning on async discard
[16677.352169] BTRFS info (device dm-11): disk space caching is enabled
[16679.444054] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16679.444065] btrfs_dev_stat_inc_and_print: 23 callbacks suppressed
[16679.444068] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[16679.444077] BTRFS error (device dm-11): error writing primary super block to device 1
[16679.444081] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16679.445240] BTRFS info (device dm-11: state E): forced readonly
[16679.445259] BTRFS: error (device dm-11: state EA) in btrfs_sync_log:3203: errno=-5 IO failure
[16679.446195] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16679.446199] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16679.448743] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 1, rd 1, flush 0, corrupt 0, gen 0
[16679.448766] BTRFS warning (device dm-11: state EA): direct IO failed ino 777 rw 0,0 sector 0x16b410 len 61440 err no 10
[16679.450552] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 1, rd 2, flush 0, corrupt 0, gen 0
[16679.450569] BTRFS warning (device dm-11: state EA): direct IO failed ino 799 rw 0,0 sector 0x174148 len 8192 err no 10
[16679.451750] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 1, rd 3, flush 0, corrupt 0, gen 0
[16679.451771] BTRFS warning (device dm-11: state EA): direct IO failed ino 777 rw 0,0 sector 0x153960 len 24576 err no 10
[16679.451773] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 1, rd 4, flush 0, corrupt 0, gen 0
[16679.451805] BTRFS warning (device dm-11: state EA): direct IO failed ino 777 rw 0,0 sector 0x16a788 len 8192 err no 10
[16679.461123] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16679.470320] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 1, rd 5, flush 0, corrupt 0, gen 0
[16679.471371] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 1, rd 6, flush 0, corrupt 0, gen 0
[16679.471963] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 1, rd 7, flush 0, corrupt 0, gen 0
[16679.472291] BTRFS warning (device dm-11: state EA): direct IO failed ino 817 rw 0,0 sector 0x1740a0 len 8192 err no 10
[16679.472309] BTRFS warning (device dm-11: state EA): direct IO failed ino 760 rw 0,0 sector 0x16be50 len 4096 err no 10
[16679.472319] BTRFS warning (device dm-11: state EA): direct IO failed ino 258 rw 0,0 sector 0x82a0 len 4096 err no 10
[16679.493811] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 1, rd 8, flush 0, corrupt 0, gen 0
[16679.493835] BTRFS warning (device dm-11: state EA): direct IO failed ino 808 rw 0,0 sector 0x1731d8 len 57344 err no 10
[16679.493840] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 1, rd 9, flush 0, corrupt 0, gen 0
[16679.493868] BTRFS warning (device dm-11: state EA): direct IO failed ino 808 rw 0,0 sector 0x153610 len 8192 err no 10
[16679.493876] BTRFS warning (device dm-11: state EA): direct IO failed ino 808 rw 0,0 sector 0x170b58 len 16384 err no 10
[16679.503409] BTRFS warning (device dm-11: state EA): direct IO failed ino 260 rw 0,0 sector 0x178520 len 40960 err no 10
[16679.505794] BTRFS warning (device dm-11: state EA): direct IO failed ino 781 rw 0,0 sector 0x1710c8 len 69632 err no 10
[16679.506352] BTRFS warning (device dm-11: state EA): direct IO failed ino 781 rw 0,0 sector 0x154218 len 12288 err no 10
[16680.037502] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16680.037511] BTRFS info (device dm-11): turning on async discard
[16680.037512] BTRFS info (device dm-11): disk space caching is enabled
[16680.144699] BTRFS warning (device dm-11): direct IO failed ino 842 rw 1,34817 sector 0x177b98 len 40960 err no 10
[16680.145085] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16680.147603] BTRFS: error (device dm-11: state A) in btrfs_finish_ordered_io:3318: errno=-5 IO failure
[16680.148576] BTRFS info (device dm-11: state EA): forced readonly
[16680.149546] BTRFS error (device dm-11: state EA): error writing primary super block to device 1
[16680.149555] BTRFS: error (device dm-11: state EA) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16680.150202] BTRFS: error (device dm-11: state EA) in btrfs_sync_log:3203: errno=-5 IO failure
[16680.159873] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16680.668346] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16680.668355] BTRFS info (device dm-11): turning on async discard
[16680.668357] BTRFS info (device dm-11): disk space caching is enabled
[16682.776355] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16682.776371] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16682.776381] BTRFS error (device dm-11): error writing primary super block to device 1
[16682.776385] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16682.777106] BTRFS info (device dm-11: state E): forced readonly
[16682.777112] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16682.777116] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16682.780979] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16682.780983] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16682.787841] BTRFS warning (device dm-11: state EA): direct IO failed ino 911 rw 0,0 sector 0x185b68 len 20480 err no 10
[16682.790773] BTRFS warning (device dm-11: state EA): direct IO failed ino 873 rw 0,0 sector 0x17ff78 len 16384 err no 10
[16682.791799] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16682.792666] BTRFS warning (device dm-11: state EA): direct IO failed ino 852 rw 0,0 sector 0x17a6e8 len 4096 err no 10
[16682.794265] BTRFS warning (device dm-11: state EA): direct IO failed ino 838 rw 0,0 sector 0x156470 len 24576 err no 10
[16682.798407] BTRFS warning (device dm-11: state EA): direct IO failed ino 933 rw 0,0 sector 0x188560 len 16384 err no 10
[16682.798788] BTRFS warning (device dm-11: state EA): direct IO failed ino 926 rw 0,0 sector 0x187ad8 len 28672 err no 10
[16682.806153] BTRFS warning (device dm-11: state EA): direct IO failed ino 257 rw 0,0 sector 0x188b78 len 20480 err no 10
[16682.806609] BTRFS warning (device dm-11: state EA): direct IO failed ino 911 rw 0,0 sector 0x185ba8 len 20480 err no 10
[16682.806803] BTRFS warning (device dm-11: state EA): direct IO failed ino 259 rw 0,0 sector 0x184d20 len 53248 err no 10
[16682.810337] BTRFS warning (device dm-11: state EA): direct IO failed ino 259 rw 0,0 sector 0x184dc8 len 4096 err no 10
[16682.812830] BTRFS warning (device dm-11: state EA): direct IO failed ino 890 rw 0,0 sector 0x184440 len 16384 err no 10
[16682.818300] BTRFS warning (device dm-11: state EA): direct IO failed ino 848 rw 0,0 sector 0x178ce8 len 12288 err no 10
[16682.821565] BTRFS warning (device dm-11: state EA): direct IO failed ino 259 rw 0,0 sector 0x187ff8 len 49152 err no 10
[16682.821791] BTRFS warning (device dm-11: state EA): direct IO failed ino 926 rw 0,0 sector 0x187ad8 len 12288 err no 10
[16682.826432] BTRFS warning (device dm-11: state EA): direct IO failed ino 878 rw 0,0 sector 0x17e280 len 32768 err no 10
[16682.830229] BTRFS warning (device dm-11: state EA): direct IO failed ino 869 rw 0,0 sector 0x8968 len 4096 err no 10
[16683.416777] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16683.416788] BTRFS info (device dm-11): turning on async discard
[16683.416791] BTRFS info (device dm-11): disk space caching is enabled
[16683.421933] BTRFS info (device dm-11): start tree-log replay
[16684.526448] btrfs_dev_stat_inc_and_print: 45 callbacks suppressed
[16684.526453] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[16684.527195] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 2, rd 0, flush 0, corrupt 0, gen 0
[16684.528523] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 3, rd 0, flush 0, corrupt 0, gen 0
[16684.528541] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 4, rd 0, flush 0, corrupt 0, gen 0
[16684.529298] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 5, rd 0, flush 0, corrupt 0, gen 0
[16684.529307] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 6, rd 0, flush 0, corrupt 0, gen 0
[16684.529695] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 7, rd 0, flush 0, corrupt 0, gen 0
[16684.529701] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 8, rd 0, flush 0, corrupt 0, gen 0
[16684.529843] BTRFS: error (device dm-11) in btrfs_commit_transaction:2496: errno=-5 IO failure (Error while writing out transaction)
[16684.530553] BTRFS info (device dm-11: state E): forced readonly
[16684.530558] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16684.530561] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16684.535215] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 9, rd 0, flush 0, corrupt 0, gen 0
[16684.541248] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16685.075653] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16685.075661] BTRFS info (device dm-11): turning on async discard
[16685.075663] BTRFS info (device dm-11): disk space caching is enabled
[16685.080073] BTRFS info (device dm-11): start tree-log replay
[16687.264911] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16687.264920] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[16687.264934] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16687.264956] BTRFS error (device dm-11): error writing primary super block to device 1
[16687.264961] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16687.265725] BTRFS info (device dm-11: state E): forced readonly
[16687.265732] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16687.265736] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16687.272884] BTRFS warning (device dm-11: state EA): direct IO failed ino 989 rw 0,0 sector 0x19f710 len 28672 err no 10
[16687.272943] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16687.272949] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16687.273170] BTRFS warning (device dm-11: state EA): direct IO failed ino 988 rw 0,0 sector 0x19a2d8 len 98304 err no 10
[16687.277246] BTRFS warning (device dm-11: state EA): direct IO failed ino 275 rw 0,0 sector 0x1a2fd0 len 40960 err no 10
[16687.277520] BTRFS warning (device dm-11: state EA): direct IO failed ino 268 rw 0,0 sector 0x1a3a58 len 65536 err no 10
[16687.278080] BTRFS warning (device dm-11: state EA): direct IO failed ino 957 rw 0,0 sector 0x1984e8 len 16384 err no 10
[16687.280798] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16687.292171] BTRFS warning (device dm-11: state EA): direct IO failed ino 263 rw 0,0 sector 0x1938d8 len 4096 err no 10
[16687.292190] BTRFS warning (device dm-11: state EA): direct IO failed ino 263 rw 0,0 sector 0x1944e8 len 12288 err no 10
[16687.317379] BTRFS warning (device dm-11: state EA): direct IO failed ino 989 rw 0,0 sector 0x193d08 len 4096 err no 10
[16687.319217] BTRFS warning (device dm-11: state EA): direct IO failed ino 971 rw 0,0 sector 0x1a0ec0 len 61440 err no 10
[16687.319658] BTRFS warning (device dm-11: state EA): direct IO failed ino 978 rw 0,0 sector 0x193918 len 4096 err no 10
[16687.320545] BTRFS warning (device dm-11: state EA): direct IO failed ino 547 rw 0,0 sector 0x96f8 len 4096 err no 10
[16687.320884] BTRFS warning (device dm-11: state EA): direct IO failed ino 1002 rw 0,0 sector 0x1a2c30 len 8192 err no 10
[16687.326198] BTRFS warning (device dm-11: state EA): direct IO failed ino 268 rw 0,0 sector 0x1a1750 len 8192 err no 10
[16687.839185] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16687.839196] BTRFS info (device dm-11): turning on async discard
[16687.839198] BTRFS info (device dm-11): disk space caching is enabled
[16687.867457] ------------[ cut here ]------------
[16687.867537] WARNING: CPU: 0 PID: 1684415 at fs/btrfs/discard.c:604 btrfs_discard_update_discardable+0x98/0xb0
[16687.867546] 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 iTCO_wdt intel_rapl_msr iTCO_vendor_support snd_hda_codec_generic snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hwdep snd_hda_core snd_pcm i2c_i801 snd_timer i2c_smbus intel_rapl_common snd joydev soundcore lpc_ich virtio_balloon zram ip_tables xfs crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel serio_raw qemu_fw_cfg
[16687.867661] CPU: 0 PID: 1684415 Comm: kworker/u4:1 Tainted: G W 5.19.0-rc8+ #798
[16687.867665] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[16687.867668] Workqueue: btrfs-cache btrfs_work_helper
[16687.867675] RIP: 0010:btrfs_discard_update_discardable+0x98/0xb0
[16687.867679] 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
[16687.867683] RSP: 0000:ffffc093c28b7ad0 EFLAGS: 00010246
[16687.867687] RAX: 0000000000000000 RBX: ffff9abf83fec200 RCX: 0000000000000001
[16687.867690] RDX: 0000000000000000 RSI: ffffffff8d807c5b RDI: ffffffff8d8a831e
[16687.867693] RBP: ffff9abf82ccc000 R08: 0000000000000000 R09: 0000000000001000
[16687.867696] R10: ffff9abe842eb358 R11: 0000000000833a00 R12: ffff9abff14f1010
[16687.867698] R13: ffff9abf834084c0 R14: ffff9abf82ccc000 R15: ffff9abf92fc3690
[16687.867701] FS: 0000000000000000(0000) GS:ffff9abffbc00000(0000) knlGS:0000000000000000
[16687.867705] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[16687.867708] CR2: 00007f9b4e1bed60 CR3: 00000001012de005 CR4: 0000000000370ef0
[16687.867714] Call Trace:
[16687.867717]
[16687.867723] __btrfs_remove_free_space_cache+0x27/0x30
[16687.867730] load_free_space_cache+0xad2/0xaf0
[16687.867807] caching_thread+0x40b/0x650
[16687.867822] ? lock_release+0x137/0x2d0
[16687.867835] btrfs_work_helper+0xf2/0x3e0
[16687.867839] ? lock_is_held_type+0xe2/0x140
[16687.867852] process_one_work+0x271/0x590
[16687.867874] worker_thread+0x52/0x3b0
[16687.867883] ? process_one_work+0x590/0x590
[16687.867887] kthread+0xf0/0x120
[16687.867924] ? kthread_complete_and_exit+0x20/0x20
[16687.867932] ret_from_fork+0x1f/0x30
[16687.867956]
[16687.867958] irq event stamp: 19592759
[16687.867960] hardirqs last enabled at (19592765): [] __up_console_sem+0x5e/0x70
[16687.867965] hardirqs last disabled at (19592770): [] __up_console_sem+0x43/0x70
[16687.867968] softirqs last enabled at (19592736): [] __irq_exit_rcu+0xeb/0x160
[16687.867973] softirqs last disabled at (19592727): [] __irq_exit_rcu+0xeb/0x160
[16687.867976] ---[ end trace 0000000000000000 ]---
[16687.867981] BTRFS warning (device dm-11): block group 298844160 has wrong amount of free space
[16687.868000] BTRFS warning (device dm-11): failed to load free space cache for block group 298844160, rebuilding it now
[16689.909490] btrfs_dev_stat_inc_and_print: 18 callbacks suppressed
[16689.909494] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[16689.909522] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 2, rd 0, flush 0, corrupt 0, gen 0
[16689.909641] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16689.909645] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 3, rd 0, flush 0, corrupt 0, gen 0
[16689.909660] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16689.909665] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 4, rd 0, flush 0, corrupt 0, gen 0
[16689.909672] BTRFS error (device dm-11): error writing primary super block to device 1
[16689.909676] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16689.910531] BTRFS info (device dm-11: state E): forced readonly
[16689.910539] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16689.910544] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16689.914613] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16689.914620] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16689.915632] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 4, rd 1, flush 0, corrupt 0, gen 0
[16689.917054] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 5, rd 1, flush 0, corrupt 0, gen 0
[16689.918115] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 6, rd 1, flush 0, corrupt 0, gen 0
[16689.918230] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 7, rd 1, flush 0, corrupt 0, gen 0
[16689.918285] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 8, rd 1, flush 0, corrupt 0, gen 0
[16689.918412] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 9, rd 1, flush 0, corrupt 0, gen 0
[16689.929914] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16689.937352] BTRFS warning (device dm-11: state EA): direct IO failed ino 273 rw 0,0 sector 0x1aeca8 len 16384 err no 10
[16689.940325] BTRFS warning (device dm-11: state EA): direct IO failed ino 268 rw 0,0 sector 0x1a50f8 len 20480 err no 10
[16689.946703] BTRFS warning (device dm-11: state EA): direct IO failed ino 1060 rw 0,0 sector 0x1aad80 len 24576 err no 10
[16689.946737] BTRFS warning (device dm-11: state EA): direct IO failed ino 1060 rw 0,0 sector 0x1aa900 len 32768 err no 10
[16689.957749] BTRFS warning (device dm-11: state EA): direct IO failed ino 271 rw 0,0 sector 0x1af9a0 len 4096 err no 10
[16689.958387] BTRFS warning (device dm-11: state EA): direct IO failed ino 262 rw 0,0 sector 0x1b4248 len 53248 err no 10
[16689.961618] BTRFS warning (device dm-11: state EA): direct IO failed ino 260 rw 0,0 sector 0x1aa2a8 len 73728 err no 10
[16689.962825] BTRFS warning (device dm-11: state EA): direct IO failed ino 936 rw 0,0 sector 0x11f9e8 len 16384 err no 10
[16689.962857] BTRFS warning (device dm-11: state EA): direct IO failed ino 936 rw 0,0 sector 0x113ee0 len 49152 err no 10
[16689.985196] BTRFS warning (device dm-11: state EA): direct IO failed ino 261 rw 0,0 sector 0x1b4348 len 4096 err no 10
[16689.985701] BTRFS warning (device dm-11: state EA): direct IO failed ino 263 rw 0,0 sector 0x1b1d58 len 16384 err no 10
[16690.548815] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16690.548823] BTRFS info (device dm-11): turning on async discard
[16690.548825] BTRFS info (device dm-11): disk space caching is enabled
[16690.571993] ------------[ cut here ]------------
[16690.572074] WARNING: CPU: 0 PID: 1684415 at fs/btrfs/discard.c:604 btrfs_discard_update_discardable+0x98/0xb0
[16690.572082] 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 iTCO_wdt intel_rapl_msr iTCO_vendor_support snd_hda_codec_generic snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hwdep snd_hda_core snd_pcm i2c_i801 snd_timer i2c_smbus intel_rapl_common snd joydev soundcore lpc_ich virtio_balloon zram ip_tables xfs crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel serio_raw qemu_fw_cfg
[16690.572196] CPU: 0 PID: 1684415 Comm: kworker/u4:1 Tainted: G W 5.19.0-rc8+ #798
[16690.572200] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[16690.572203] Workqueue: btrfs-cache btrfs_work_helper
[16690.572211] RIP: 0010:btrfs_discard_update_discardable+0x98/0xb0
[16690.572215] 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
[16690.572219] RSP: 0000:ffffc093c28b7ad0 EFLAGS: 00010246
[16690.572223] RAX: 0000000000000000 RBX: ffff9abf83fed600 RCX: 0000000000000001
[16690.572227] RDX: 0000000000000000 RSI: ffffffff8d807c5b RDI: ffffffff8d8a831e
[16690.572230] RBP: ffff9abf861c8000 R08: 0000000000000000 R09: 0000000000001000
[16690.572232] R10: ffff9abeb097d1b8 R11: 0000000000833a00 R12: ffff9abff14f1010
[16690.572235] R13: ffff9abf9f0b84c0 R14: ffff9abf861c8000 R15: ffff9abf92fc30e0
[16690.572238] FS: 0000000000000000(0000) GS:ffff9abffbc00000(0000) knlGS:0000000000000000
[16690.572241] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[16690.572244] CR2: 00007f0f7ce83203 CR3: 0000000112edc006 CR4: 0000000000370ef0
[16690.572250] Call Trace:
[16690.572253]
[16690.572268] __btrfs_remove_free_space_cache+0x27/0x30
[16690.572276] load_free_space_cache+0xad2/0xaf0
[16690.572354] caching_thread+0x40b/0x650
[16690.572369] ? lock_release+0x137/0x2d0
[16690.572382] btrfs_work_helper+0xf2/0x3e0
[16690.572386] ? lock_is_held_type+0xe2/0x140
[16690.572399] process_one_work+0x271/0x590
[16690.572416] worker_thread+0x52/0x3b0
[16690.572425] ? process_one_work+0x590/0x590
[16690.572429] kthread+0xf0/0x120
[16690.572433] ? kthread_complete_and_exit+0x20/0x20
[16690.572441] ret_from_fork+0x1f/0x30
[16690.572466]
[16690.572469] irq event stamp: 19616033
[16690.572471] hardirqs last enabled at (19616039): [] __up_console_sem+0x5e/0x70
[16690.572476] hardirqs last disabled at (19616044): [] __up_console_sem+0x43/0x70
[16690.572480] softirqs last enabled at (19615476): [] __irq_exit_rcu+0xeb/0x160
[16690.572484] softirqs last disabled at (19615469): [] __irq_exit_rcu+0xeb/0x160
[16690.572488] ---[ end trace 0000000000000000 ]---
[16690.572492] BTRFS warning (device dm-11): block group 298844160 has wrong amount of free space
[16690.572511] BTRFS warning (device dm-11): failed to load free space cache for block group 298844160, rebuilding it now
[16692.588585] BTRFS: error (device dm-11) in btrfs_commit_transaction:2496: errno=-5 IO failure (Error while writing out transaction)
[16692.589519] BTRFS info (device dm-11: state E): forced readonly
[16692.589525] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16692.589529] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16692.597651] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16693.168605] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16693.168613] BTRFS info (device dm-11): turning on async discard
[16693.168615] BTRFS info (device dm-11): disk space caching is enabled
[16695.290100] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16695.290110] btrfs_dev_stat_inc_and_print: 37 callbacks suppressed
[16695.290113] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[16695.290143] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16695.290151] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 2, rd 0, flush 0, corrupt 0, gen 0
[16695.290217] BTRFS error (device dm-11): error writing primary super block to device 1
[16695.290225] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16695.291560] BTRFS info (device dm-11: state E): forced readonly
[16695.291585] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16695.291611] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16695.298371] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 2, rd 1, flush 0, corrupt 0, gen 0
[16695.298393] BTRFS warning (device dm-11: state EA): direct IO failed ino 1169 rw 0,0 sector 0x1d0848 len 36864 err no 10
[16695.298417] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16695.298421] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16695.300249] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 2, rd 2, flush 0, corrupt 0, gen 0
[16695.300264] BTRFS warning (device dm-11: state EA): direct IO failed ino 1157 rw 0,0 sector 0x1c61b0 len 90112 err no 10
[16695.301392] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16695.315903] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 2, rd 3, flush 0, corrupt 0, gen 0
[16695.315920] BTRFS warning (device dm-11: state EA): direct IO failed ino 1224 rw 0,0 sector 0x1d1598 len 57344 err no 10
[16695.316553] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 2, rd 4, flush 0, corrupt 0, gen 0
[16695.316568] BTRFS warning (device dm-11: state EA): direct IO failed ino 1188 rw 0,0 sector 0x1d23b8 len 53248 err no 10
[16695.316785] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 2, rd 5, flush 0, corrupt 0, gen 0
[16695.316803] BTRFS warning (device dm-11: state EA): direct IO failed ino 1186 rw 0,0 sector 0x1d1a88 len 65536 err no 10
[16695.332482] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 2, rd 6, flush 0, corrupt 0, gen 0
[16695.332500] BTRFS warning (device dm-11: state EA): direct IO failed ino 262 rw 0,0 sector 0x1d0fc0 len 61440 err no 10
[16695.334952] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 2, rd 7, flush 0, corrupt 0, gen 0
[16695.334967] BTRFS warning (device dm-11: state EA): direct IO failed ino 263 rw 0,0 sector 0x1cf1a8 len 77824 err no 10
[16695.861176] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16695.861184] BTRFS info (device dm-11): turning on async discard
[16695.861186] BTRFS info (device dm-11): disk space caching is enabled
[16695.893406] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 0, rd 1, flush 0, corrupt 0, gen 0
[16695.902647] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16695.903912] BTRFS warning (device dm-11): direct IO failed ino 1247 rw 1,34817 sector 0x1178c8 len 126976 err no 10
[16695.906088] BTRFS warning (device dm-11): direct IO failed ino 1247 rw 1,34817 sector 0x312800 len 61440 err no 10
[16695.910708] BTRFS warning (device dm-11): direct IO failed ino 1257 rw 1,34817 sector 0x312800 len 110592 err no 10
[16695.921389] BTRFS: error (device dm-11: state A) in __btrfs_free_extent:3078: errno=-5 IO failure
[16695.922105] BTRFS info (device dm-11: state EA): forced readonly
[16695.922125] BTRFS: error (device dm-11: state EA) in btrfs_run_delayed_refs:2141: errno=-5 IO failure
[16696.430487] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16696.430495] BTRFS info (device dm-11): turning on async discard
[16696.430498] BTRFS info (device dm-11): disk space caching is enabled
[16698.469468] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16698.469483] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16698.469492] BTRFS error (device dm-11): error writing primary super block to device 1
[16698.469495] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16698.470119] BTRFS info (device dm-11: state E): forced readonly
[16698.470124] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16698.470153] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16698.472006] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16698.472243] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16698.473850] BTRFS warning (device dm-11: state EA): direct IO failed ino 282 rw 0,0 sector 0x1e5f18 len 45056 err no 10
[16698.474197] BTRFS warning (device dm-11: state EA): direct IO failed ino 268 rw 0,0 sector 0x1dc840 len 40960 err no 10
[16698.474411] BTRFS warning (device dm-11: state EA): direct IO failed ino 274 rw 0,0 sector 0x1df608 len 32768 err no 10
[16698.479818] BTRFS warning (device dm-11: state EA): direct IO failed ino 282 rw 0,0 sector 0x1e5f60 len 8192 err no 10
[16698.481944] BTRFS warning (device dm-11: state EA): direct IO failed ino 265 rw 0,0 sector 0x1dfa88 len 45056 err no 10
[16698.481976] BTRFS warning (device dm-11: state EA): direct IO failed ino 265 rw 0,0 sector 0x1dfae0 len 8192 err no 10
[16698.482477] BTRFS warning (device dm-11: state EA): direct IO failed ino 276 rw 0,0 sector 0x1e6220 len 4096 err no 10
[16698.483354] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16698.495087] BTRFS warning (device dm-11: state EA): direct IO failed ino 1258 rw 0,0 sector 0x1e5a90 len 28672 err no 10
[16698.520061] BTRFS warning (device dm-11: state EA): direct IO failed ino 1279 rw 0,0 sector 0x1e2b58 len 24576 err no 10
[16698.522011] BTRFS warning (device dm-11: state EA): direct IO failed ino 1335 rw 0,0 sector 0x1e5b30 len 24576 err no 10
[16699.030035] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16699.030044] BTRFS info (device dm-11): turning on async discard
[16699.030046] BTRFS info (device dm-11): disk space caching is enabled
[16699.034497] BTRFS info (device dm-11): start tree-log replay
[16699.122368] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16699.124834] BTRFS warning (device dm-11): direct IO failed ino 1374 rw 1,34817 sector 0x1e5500 len 65536 err no 10
[16699.145630] BTRFS: error (device dm-11: state A) in __btrfs_run_delayed_items:1182: errno=-5 IO failure
[16699.146161] BTRFS info (device dm-11: state EA): forced readonly
[16699.146165] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16699.146168] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16699.607424] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16699.607435] BTRFS info (device dm-11): turning on async discard
[16699.607437] BTRFS info (device dm-11): disk space caching is enabled
[16699.649623] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16699.669485] BTRFS: error (device dm-11: state A) in __btrfs_run_delayed_items:1182: errno=-5 IO failure
[16699.670049] BTRFS info (device dm-11: state EA): forced readonly
[16699.670053] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16699.670056] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16699.673262] BTRFS: error (device dm-11: state EA) in __btrfs_free_extent:3078: errno=-5 IO failure
[16699.674137] BTRFS: error (device dm-11: state EA) in btrfs_run_delayed_refs:2141: errno=-5 IO failure
[16700.127415] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16700.127423] BTRFS info (device dm-11): turning on async discard
[16700.127425] BTRFS info (device dm-11): disk space caching is enabled
[16702.183502] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16702.183508] btrfs_dev_stat_inc_and_print: 123 callbacks suppressed
[16702.183510] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[16702.183520] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16702.183522] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 2, rd 0, flush 0, corrupt 0, gen 0
[16702.183530] BTRFS error (device dm-11): error writing primary super block to device 1
[16702.183532] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16702.184136] BTRFS info (device dm-11: state E): forced readonly
[16702.184146] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16702.184152] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16702.186331] BTRFS: error (device dm-11: state EA) in btrfs_sync_log:3192: errno=-5 IO failure
[16702.187967] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 2, rd 1, flush 0, corrupt 0, gen 0
[16702.187989] BTRFS warning (device dm-11: state EA): direct IO failed ino 268 rw 0,0 sector 0x1f06e8 len 73728 err no 10
[16702.189478] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 2, rd 2, flush 0, corrupt 0, gen 0
[16702.189493] BTRFS warning (device dm-11: state EA): direct IO failed ino 268 rw 0,0 sector 0x1f8850 len 4096 err no 10
[16702.190771] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16702.190776] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16702.193902] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 3, rd 2, flush 0, corrupt 0, gen 0
[16702.193959] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 3, rd 3, flush 0, corrupt 0, gen 0
[16702.194484] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 4, rd 3, flush 0, corrupt 0, gen 0
[16702.194738] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 5, rd 3, flush 0, corrupt 0, gen 0
[16702.195014] BTRFS warning (device dm-11: state EA): direct IO failed ino 1090 rw 0,0 sector 0x1e9cb0 len 20480 err no 10
[16702.195134] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 6, rd 3, flush 0, corrupt 0, gen 0
[16702.195162] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 7, rd 3, flush 0, corrupt 0, gen 0
[16702.197170] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16702.220496] BTRFS warning (device dm-11: state EA): direct IO failed ino 268 rw 0,0 sector 0x1f06f0 len 69632 err no 10
[16702.222333] BTRFS warning (device dm-11: state EA): direct IO failed ino 257 rw 0,0 sector 0x1ed258 len 8192 err no 10
[16702.228079] BTRFS warning (device dm-11: state EA): direct IO failed ino 1449 rw 0,0 sector 0x1ed150 len 4096 err no 10
[16702.228156] BTRFS warning (device dm-11: state EA): direct IO failed ino 1445 rw 0,0 sector 0x1f1440 len 24576 err no 10
[16702.236240] BTRFS warning (device dm-11: state EA): direct IO failed ino 1424 rw 0,0 sector 0x1ed788 len 73728 err no 10
[16702.237716] BTRFS warning (device dm-11: state EA): direct IO failed ino 1425 rw 0,0 sector 0x1ecc80 len 4096 err no 10
[16702.238282] BTRFS warning (device dm-11: state EA): direct IO failed ino 1412 rw 0,0 sector 0x1e9ee0 len 24576 err no 10
[16702.240278] BTRFS warning (device dm-11: state EA): direct IO failed ino 1489 rw 0,0 sector 0x1f5df0 len 45056 err no 10
[16702.240916] BTRFS warning (device dm-11: state EA): direct IO failed ino 1375 rw 0,0 sector 0x1edbd8 len 4096 err no 10
[16702.241596] BTRFS warning (device dm-11: state EA): direct IO failed ino 1412 rw 0,0 sector 0x1e9ec8 len 36864 err no 10
[16702.759584] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16702.759593] BTRFS info (device dm-11): turning on async discard
[16702.759595] BTRFS info (device dm-11): disk space caching is enabled
[16703.795687] BTRFS: error (device dm-11) in btrfs_commit_transaction:2496: errno=-5 IO failure (Error while writing out transaction)
[16703.796396] BTRFS info (device dm-11: state E): forced readonly
[16703.796401] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16703.796404] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16703.805070] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16704.376244] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16704.376252] BTRFS info (device dm-11): turning on async discard
[16704.376254] BTRFS info (device dm-11): disk space caching is enabled
[16704.381114] BTRFS info (device dm-11): start tree-log replay
[16704.389909] ------------[ cut here ]------------
[16704.389978] WARNING: CPU: 1 PID: 2197043 at fs/btrfs/discard.c:604 btrfs_discard_update_discardable+0x98/0xb0
[16704.389984] 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 iTCO_wdt intel_rapl_msr iTCO_vendor_support snd_hda_codec_generic snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hwdep snd_hda_core snd_pcm i2c_i801 snd_timer i2c_smbus intel_rapl_common snd joydev soundcore lpc_ich virtio_balloon zram ip_tables xfs crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel serio_raw qemu_fw_cfg
[16704.390055] CPU: 1 PID: 2197043 Comm: kworker/u4:6 Tainted: G W 5.19.0-rc8+ #798
[16704.390058] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[16704.390061] Workqueue: btrfs-cache btrfs_work_helper
[16704.390068] RIP: 0010:btrfs_discard_update_discardable+0x98/0xb0
[16704.390072] 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
[16704.390075] RSP: 0018:ffffc093c397fad0 EFLAGS: 00010246
[16704.390079] RAX: 0000000000000000 RBX: ffff9abf83feda00 RCX: 0000000000000001
[16704.390082] RDX: 0000000000000000 RSI: ffffffff8d807c5b RDI: ffffffff8d8a831e
[16704.390084] RBP: ffff9abf8ff3c000 R08: 0000000000000000 R09: 0000000000001000
[16704.390086] R10: 00000000000054b3 R11: 0000000000837800 R12: ffff9abff14f0810
[16704.390088] R13: ffff9abf9f0bc5f0 R14: ffff9abf8ff3c000 R15: ffff9abf870fcbd0
[16704.390090] FS: 0000000000000000(0000) GS:ffff9abffbd00000(0000) knlGS:0000000000000000
[16704.390092] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[16704.390093] CR2: 0000557072925200 CR3: 0000000120584004 CR4: 0000000000370ee0
[16704.390098] Call Trace:
[16704.390100]
[16704.390105] __btrfs_remove_free_space_cache+0x27/0x30
[16704.390109] load_free_space_cache+0xad2/0xaf0
[16704.390149] caching_thread+0x40b/0x650
[16704.390157] ? lock_release+0x137/0x2d0
[16704.390165] btrfs_work_helper+0xf2/0x3e0
[16704.390167] ? lock_is_held_type+0xe2/0x140
[16704.390174] process_one_work+0x271/0x590
[16704.390184] worker_thread+0x52/0x3b0
[16704.390189] ? process_one_work+0x590/0x590
[16704.390192] kthread+0xf0/0x120
[16704.390195] ? kthread_complete_and_exit+0x20/0x20
[16704.390199] ret_from_fork+0x1f/0x30
[16704.390213]
[16704.390214] irq event stamp: 97049
[16704.390216] hardirqs last enabled at (97055): [] __up_console_sem+0x5e/0x70
[16704.390219] hardirqs last disabled at (97060): [] __up_console_sem+0x43/0x70
[16704.390221] softirqs last enabled at (96486): [] __irq_exit_rcu+0xeb/0x160
[16704.390224] softirqs last disabled at (96475): [] __irq_exit_rcu+0xeb/0x160
[16704.390226] ---[ end trace 0000000000000000 ]---
[16704.390229] BTRFS warning (device dm-11): block group 298844160 has wrong amount of free space
[16704.390244] BTRFS warning (device dm-11): failed to load free space cache for block group 298844160, rebuilding it now
[16704.455691] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16704.459855] BTRFS: error (device dm-11: state A) in create_subvol:735: errno=-5 IO failure
[16704.460139] BTRFS: error (device dm-11: state A) in btrfs_commit_transaction:2496: errno=-5 IO failure (Error while writing out transaction)
[16704.460602] BTRFS info (device dm-11: state EA): forced readonly
[16704.461346] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16704.461359] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16704.927226] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16704.927235] BTRFS info (device dm-11): turning on async discard
[16704.927237] BTRFS info (device dm-11): disk space caching is enabled
[16704.965371] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16704.982665] BTRFS: error (device dm-11: state A) in __btrfs_run_delayed_items:1182: errno=-5 IO failure
[16704.983272] BTRFS info (device dm-11: state EA): forced readonly
[16704.983277] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16704.983280] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16704.986231] BTRFS: error (device dm-11: state EA) in do_free_extent_accounting:2848: errno=-5 IO failure
[16704.986850] BTRFS: error (device dm-11: state EA) in btrfs_run_delayed_refs:2141: errno=-5 IO failure
[16705.459906] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16705.459914] BTRFS info (device dm-11): turning on async discard
[16705.459916] BTRFS info (device dm-11): disk space caching is enabled
[16707.561218] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16707.561227] btrfs_dev_stat_inc_and_print: 94 callbacks suppressed
[16707.561229] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[16707.561245] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16707.561249] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 2, rd 0, flush 0, corrupt 0, gen 0
[16707.561262] BTRFS error (device dm-11): error writing primary super block to device 1
[16707.561266] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16707.562388] BTRFS info (device dm-11: state E): forced readonly
[16707.562395] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16707.563588] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16707.564606] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16707.564616] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16707.565849] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 3, rd 0, flush 0, corrupt 0, gen 0
[16707.566706] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 4, rd 0, flush 0, corrupt 0, gen 0
[16707.566755] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 5, rd 0, flush 0, corrupt 0, gen 0
[16707.566811] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 6, rd 0, flush 0, corrupt 0, gen 0
[16707.566999] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 7, rd 0, flush 0, corrupt 0, gen 0
[16707.567225] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 8, rd 0, flush 0, corrupt 0, gen 0
[16707.567307] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 9, rd 0, flush 0, corrupt 0, gen 0
[16707.567379] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 10, rd 0, flush 0, corrupt 0, gen 0
[16707.572853] BTRFS warning (device dm-11: state EA): direct IO failed ino 262 rw 0,0 sector 0x1d4510 len 4096 err no 10
[16707.577649] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16707.592064] BTRFS warning (device dm-11: state EA): direct IO failed ino 1612 rw 0,0 sector 0x20de40 len 45056 err no 10
[16707.604453] BTRFS warning (device dm-11: state EA): direct IO failed ino 1571 rw 0,0 sector 0x209a98 len 24576 err no 10
[16708.125910] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16708.125918] BTRFS info (device dm-11): turning on async discard
[16708.125920] BTRFS info (device dm-11): disk space caching is enabled
[16708.159056] BTRFS warning (device dm-11): direct IO failed ino 1620 rw 1,34817 sector 0x117910 len 12288 err no 10
[16708.168039] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16708.182274] BTRFS: error (device dm-11: state A) in do_free_extent_accounting:2848: errno=-5 IO failure
[16708.183566] BTRFS info (device dm-11: state EA): forced readonly
[16708.183610] BTRFS: error (device dm-11: state EA) in btrfs_run_delayed_refs:2141: errno=-5 IO failure
[16708.184635] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16708.184640] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16708.713216] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16708.713225] BTRFS info (device dm-11): turning on async discard
[16708.713227] BTRFS info (device dm-11): disk space caching is enabled
[16709.767568] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16709.767580] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16709.767585] BTRFS error (device dm-11): error writing primary super block to device 1
[16709.767588] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16709.768202] BTRFS info (device dm-11: state E): forced readonly
[16709.768207] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16709.768213] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16709.771973] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16709.771982] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16709.782013] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16709.811994] BTRFS warning (device dm-11: state EA): direct IO failed ino 1638 rw 0,0 sector 0x215450 len 45056 err no 10
[16709.813207] BTRFS warning (device dm-11: state EA): direct IO failed ino 1644 rw 0,0 sector 0x2153a0 len 53248 err no 10
[16709.815016] BTRFS warning (device dm-11: state EA): direct IO failed ino 1646 rw 0,0 sector 0x215350 len 40960 err no 10
[16709.829996] BTRFS warning (device dm-11: state EA): direct IO failed ino 257 rw 0,0 sector 0x215280 len 36864 err no 10
[16709.830606] BTRFS warning (device dm-11: state EA): direct IO failed ino 1443 rw 0,0 sector 0x2128f8 len 12288 err no 10
[16709.833087] BTRFS warning (device dm-11: state EA): direct IO failed ino 257 rw 0,0 sector 0x215200 len 45056 err no 10
[16710.340982] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16710.340993] BTRFS info (device dm-11): turning on async discard
[16710.340996] BTRFS info (device dm-11): disk space caching is enabled
[16710.346938] BTRFS info (device dm-11): start tree-log replay
[16710.362048] ------------[ cut here ]------------
[16710.362129] WARNING: CPU: 0 PID: 1686746 at fs/btrfs/discard.c:604 btrfs_discard_update_discardable+0x98/0xb0
[16710.362138] 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 iTCO_wdt intel_rapl_msr iTCO_vendor_support snd_hda_codec_generic snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hwdep snd_hda_core snd_pcm i2c_i801 snd_timer i2c_smbus intel_rapl_common snd joydev soundcore lpc_ich virtio_balloon zram ip_tables xfs crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel serio_raw qemu_fw_cfg
[16710.362254] CPU: 0 PID: 1686746 Comm: kworker/u4:5 Tainted: G W 5.19.0-rc8+ #798
[16710.362257] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[16710.362261] Workqueue: btrfs-cache btrfs_work_helper
[16710.362267] RIP: 0010:btrfs_discard_update_discardable+0x98/0xb0
[16710.362270] 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
[16710.362272] RSP: 0018:ffffc093c5367ad0 EFLAGS: 00010246
[16710.362275] RAX: 0000000000000000 RBX: ffff9abf87e87800 RCX: 0000000000000001
[16710.362277] RDX: 0000000000000000 RSI: ffffffff8d807c5b RDI: ffffffff8d8a831e
[16710.362278] RBP: ffff9abf83008000 R08: 0000000000000000 R09: 0000000000001000
[16710.362280] R10: ffff9abebafe1018 R11: 0000000000839e00 R12: ffff9abf813af810
[16710.362281] R13: ffff9abf9f6ae1e0 R14: ffff9abf83008000 R15: ffff9abfde0f97e0
[16710.362283] FS: 0000000000000000(0000) GS:ffff9abffbc00000(0000) knlGS:0000000000000000
[16710.362285] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[16710.362288] CR2: 00007f6e41983760 CR3: 000000016098c005 CR4: 0000000000370ef0
[16710.362293] Call Trace:
[16710.362296]
[16710.362302] __btrfs_remove_free_space_cache+0x27/0x30
[16710.362308] load_free_space_cache+0xad2/0xaf0
[16710.362384] caching_thread+0x40b/0x650
[16710.362397] ? lock_release+0x137/0x2d0
[16710.362409] btrfs_work_helper+0xf2/0x3e0
[16710.362414] ? lock_is_held_type+0xe2/0x140
[16710.362425] process_one_work+0x271/0x590
[16710.362441] worker_thread+0x52/0x3b0
[16710.362450] ? process_one_work+0x590/0x590
[16710.362454] kthread+0xf0/0x120
[16710.362457] ? kthread_complete_and_exit+0x20/0x20
[16710.362465] ret_from_fork+0x1f/0x30
[16710.362486]
[16710.362488] irq event stamp: 19228953
[16710.362490] hardirqs last enabled at (19228959): [] __up_console_sem+0x5e/0x70
[16710.362495] hardirqs last disabled at (19228964): [] __up_console_sem+0x43/0x70
[16710.362498] softirqs last enabled at (19228356): [] __irq_exit_rcu+0xeb/0x160
[16710.362503] softirqs last disabled at (19228351): [] __irq_exit_rcu+0xeb/0x160
[16710.362506] ---[ end trace 0000000000000000 ]---
[16710.362510] BTRFS warning (device dm-11): block group 298844160 has wrong amount of free space
[16710.362530] BTRFS warning (device dm-11): failed to load free space cache for block group 298844160, rebuilding it now
[16710.458297] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16710.458344] BTRFS error (device dm-11): error writing primary super block to device 1
[16710.458347] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16710.458945] BTRFS info (device dm-11: state E): forced readonly
[16710.458949] BTRFS: error (device dm-11: state EA) in btrfs_sync_log:3203: errno=-5 IO failure
[16710.471896] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16710.943700] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16710.943709] BTRFS info (device dm-11): turning on async discard
[16710.943711] BTRFS info (device dm-11): disk space caching is enabled
[16712.000449] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16712.000461] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16712.000472] BTRFS error (device dm-11): error writing primary super block to device 1
[16712.000475] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16712.001144] BTRFS info (device dm-11: state E): forced readonly
[16712.001149] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16712.001152] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16712.003234] BTRFS warning (device dm-11: state EA): direct IO failed ino 1579 rw 0,0 sector 0x217fe8 len 4096 err no 10
[16712.003887] BTRFS warning (device dm-11: state EA): direct IO failed ino 1683 rw 0,0 sector 0x21a4b0 len 20480 err no 10
[16712.005418] BTRFS warning (device dm-11: state EA): direct IO failed ino 1682 rw 0,0 sector 0x21a550 len 32768 err no 10
[16712.007250] BTRFS warning (device dm-11: state EA): direct IO failed ino 259 rw 0,0 sector 0x21d220 len 8192 err no 10
[16712.008120] BTRFS warning (device dm-11: state EA): direct IO failed ino 1659 rw 0,0 sector 0x1957f0 len 4096 err no 10
[16712.012932] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16712.016513] BTRFS warning (device dm-11: state EA): direct IO failed ino 1717 rw 0,0 sector 0x21d5c8 len 8192 err no 10
[16712.017293] BTRFS warning (device dm-11: state EA): direct IO failed ino 1696 rw 0,0 sector 0x21d3b8 len 49152 err no 10
[16712.020426] BTRFS warning (device dm-11: state EA): direct IO failed ino 978 rw 0,0 sector 0x21b640 len 36864 err no 10
[16712.020450] BTRFS warning (device dm-11: state EA): direct IO failed ino 978 rw 0,0 sector 0x21a640 len 4096 err no 10
[16712.021026] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16712.023402] BTRFS warning (device dm-11: state EA): direct IO failed ino 1659 rw 0,0 sector 0x2180c8 len 16384 err no 10
[16712.026534] BTRFS warning (device dm-11: state EA): direct IO failed ino 257 rw 0,0 sector 0x21aae0 len 24576 err no 10
[16712.027238] BTRFS warning (device dm-11: state EA): direct IO failed ino 259 rw 0,0 sector 0x217af8 len 40960 err no 10
[16712.028982] BTRFS warning (device dm-11: state EA): direct IO failed ino 1659 rw 0,0 sector 0x216bf0 len 12288 err no 10
[16712.035267] BTRFS warning (device dm-11: state EA): direct IO failed ino 1658 rw 0,0 sector 0x21bf68 len 28672 err no 10
[16712.035297] BTRFS warning (device dm-11: state EA): direct IO failed ino 1658 rw 0,0 sector 0x216cb0 len 86016 err no 10
[16712.035346] BTRFS warning (device dm-11: state EA): direct IO failed ino 1683 rw 0,0 sector 0x21a4b0 len 20480 err no 10
[16712.036282] BTRFS warning (device dm-11: state EA): direct IO failed ino 259 rw 0,0 sector 0x2180e8 len 61440 err no 10
[16712.036585] BTRFS warning (device dm-11: state EA): direct IO failed ino 1658 rw 0,0 sector 0x21c010 len 36864 err no 10
[16712.041854] BTRFS warning (device dm-11: state EA): direct IO failed ino 1579 rw 0,0 sector 0x218468 len 12288 err no 10
[16712.043750] BTRFS warning (device dm-11: state EA): direct IO failed ino 259 rw 0,0 sector 0x217ab0 len 81920 err no 10
[16712.044427] BTRFS warning (device dm-11: state EA): direct IO failed ino 1658 rw 0,0 sector 0x216d10 len 36864 err no 10
[16712.044685] BTRFS warning (device dm-11: state EA): direct IO failed ino 1679 rw 0,0 sector 0x21a170 len 77824 err no 10
[16712.046528] BTRFS warning (device dm-11: state EA): direct IO failed ino 1683 rw 0,0 sector 0x21a4b0 len 16384 err no 10
[16712.046782] BTRFS warning (device dm-11: state EA): direct IO failed ino 257 rw 0,0 sector 0x21ab78 len 12288 err no 10
[16712.047474] BTRFS warning (device dm-11: state EA): direct IO failed ino 1658 rw 0,0 sector 0x2188e8 len 8192 err no 10
[16712.047491] BTRFS warning (device dm-11: state EA): direct IO failed ino 1658 rw 0,0 sector 0x212b10 len 20480 err no 10
[16712.047501] BTRFS warning (device dm-11: state EA): direct IO failed ino 1658 rw 0,0 sector 0x2189f8 len 4096 err no 10
[16712.048572] BTRFS warning (device dm-11: state EA): direct IO failed ino 1682 rw 0,0 sector 0x21a160 len 4096 err no 10
[16712.051260] BTRFS warning (device dm-11: state EA): direct IO failed ino 1644 rw 0,0 sector 0x21ad40 len 77824 err no 10
[16712.052185] BTRFS warning (device dm-11: state EA): direct IO failed ino 259 rw 0,0 sector 0x217ab0 len 102400 err no 10
[16712.055149] BTRFS warning (device dm-11: state EA): direct IO failed ino 257 rw 0,0 sector 0x21aab8 len 53248 err no 10
[16712.055757] BTRFS warning (device dm-11: state EA): direct IO failed ino 257 rw 0,0 sector 0x21aab8 len 8192 err no 10
[16712.057102] BTRFS warning (device dm-11: state EA): direct IO failed ino 1717 rw 0,0 sector 0x21d5c8 len 12288 err no 10
[16712.060421] BTRFS warning (device dm-11: state EA): direct IO failed ino 258 rw 0,0 sector 0x21ba40 len 24576 err no 10
[16712.061162] BTRFS warning (device dm-11: state EA): direct IO failed ino 1658 rw 0,0 sector 0x218cc0 len 24576 err no 10
[16712.061492] BTRFS warning (device dm-11: state EA): direct IO failed ino 1658 rw 0,0 sector 0x218a40 len 12288 err no 10
[16712.062593] BTRFS warning (device dm-11: state EA): direct IO failed ino 1679 rw 0,0 sector 0x21cd58 len 90112 err no 10
[16712.063028] BTRFS warning (device dm-11: state EA): direct IO failed ino 1679 rw 0,0 sector 0x21cd50 len 61440 err no 10
[16712.581023] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16712.581031] BTRFS info (device dm-11): turning on async discard
[16712.581033] BTRFS info (device dm-11): disk space caching is enabled
[16712.603946] ------------[ cut here ]------------
[16712.604022] WARNING: CPU: 1 PID: 1686746 at fs/btrfs/discard.c:604 btrfs_discard_update_discardable+0x98/0xb0
[16712.604030] 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 iTCO_wdt intel_rapl_msr iTCO_vendor_support snd_hda_codec_generic snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hwdep snd_hda_core snd_pcm i2c_i801 snd_timer i2c_smbus intel_rapl_common snd joydev soundcore lpc_ich virtio_balloon zram ip_tables xfs crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel serio_raw qemu_fw_cfg
[16712.604124] CPU: 1 PID: 1686746 Comm: kworker/u4:5 Tainted: G W 5.19.0-rc8+ #798
[16712.604128] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[16712.604130] Workqueue: btrfs-cache btrfs_work_helper
[16712.604136] RIP: 0010:btrfs_discard_update_discardable+0x98/0xb0
[16712.604140] 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
[16712.604143] RSP: 0018:ffffc093c5367ad0 EFLAGS: 00010246
[16712.604147] RAX: 0000000000000000 RBX: ffff9abf83fed600 RCX: 0000000000000001
[16712.604149] RDX: 0000000000000000 RSI: ffffffff8d807c5b RDI: ffffffff8d8a831e
[16712.604151] RBP: ffff9abf8ff3c000 R08: 0000000000000000 R09: 0000000000001000
[16712.604152] R10: ffff9abe86038c48 R11: 0000000000000000 R12: ffff9abf813af810
[16712.604154] R13: ffff9abf9f24aa00 R14: ffff9abf8ff3c000 R15: ffff9abf92fc3a80
[16712.604156] FS: 0000000000000000(0000) GS:ffff9abffbd00000(0000) knlGS:0000000000000000
[16712.604157] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[16712.604159] CR2: 00000000019c8948 CR3: 0000000174198001 CR4: 0000000000370ee0
[16712.604163] Call Trace:
[16712.604165]
[16712.604169] __btrfs_remove_free_space_cache+0x27/0x30
[16712.604173] load_free_space_cache+0xad2/0xaf0
[16712.604213] caching_thread+0x40b/0x650
[16712.604221] ? lock_release+0x137/0x2d0
[16712.604228] btrfs_work_helper+0xf2/0x3e0
[16712.604231] ? lock_is_held_type+0xe2/0x140
[16712.604238] process_one_work+0x271/0x590
[16712.604247] worker_thread+0x52/0x3b0
[16712.604252] ? process_one_work+0x590/0x590
[16712.604255] kthread+0xf0/0x120
[16712.604257] ? kthread_complete_and_exit+0x20/0x20
[16712.604262] ret_from_fork+0x1f/0x30
[16712.604275]
[16712.604277] irq event stamp: 19253257
[16712.604278] hardirqs last enabled at (19253263): [] __up_console_sem+0x5e/0x70
[16712.604281] hardirqs last disabled at (19253268): [] __up_console_sem+0x43/0x70
[16712.604283] softirqs last enabled at (19252628): [] __irq_exit_rcu+0xeb/0x160
[16712.604286] softirqs last disabled at (19252619): [] __irq_exit_rcu+0xeb/0x160
[16712.604288] ---[ end trace 0000000000000000 ]---
[16712.604291] BTRFS warning (device dm-11): block group 298844160 has wrong amount of free space
[16712.604306] BTRFS warning (device dm-11): failed to load free space cache for block group 298844160, rebuilding it now
[16714.630515] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16714.630524] btrfs_dev_stat_inc_and_print: 302 callbacks suppressed
[16714.630526] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[16714.630543] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16714.630548] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 2, rd 0, flush 0, corrupt 0, gen 0
[16714.630562] BTRFS error (device dm-11): error writing primary super block to device 1
[16714.630566] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16714.631382] BTRFS info (device dm-11: state E): forced readonly
[16714.631389] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16714.631394] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16714.633872] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 3, rd 0, flush 0, corrupt 0, gen 0
[16714.634767] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 4, rd 0, flush 0, corrupt 0, gen 0
[16714.644388] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16714.659132] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 4, rd 1, flush 0, corrupt 0, gen 0
[16714.659151] BTRFS warning (device dm-11: state EA): direct IO failed ino 258 rw 0,0 sector 0x22d598 len 8192 err no 10
[16714.660637] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 4, rd 2, flush 0, corrupt 0, gen 0
[16714.660662] BTRFS warning (device dm-11: state EA): direct IO failed ino 1740 rw 0,0 sector 0x16ec38 len 61440 err no 10
[16714.664687] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 4, rd 3, flush 0, corrupt 0, gen 0
[16714.664709] BTRFS warning (device dm-11: state EA): direct IO failed ino 1736 rw 0,0 sector 0x21d8b8 len 53248 err no 10
[16714.677919] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 4, rd 4, flush 0, corrupt 0, gen 0
[16714.678770] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 4, rd 5, flush 0, corrupt 0, gen 0
[16714.678791] BTRFS warning (device dm-11: state EA): direct IO failed ino 257 rw 0,0 sector 0x22d630 len 8192 err no 10
[16715.189703] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16715.189711] BTRFS info (device dm-11): turning on async discard
[16715.189713] BTRFS info (device dm-11): disk space caching is enabled
[16716.276205] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[16716.276538] BTRFS warning (device dm-11): direct IO failed ino 1842 rw 1,34817 sector 0x8bd8 len 4096 err no 10
[16716.286199] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16716.288393] BTRFS warning (device dm-11): direct IO failed ino 1826 rw 1,34817 sector 0x239450 len 32768 err no 10
[16716.293892] BTRFS: error (device dm-11) in btrfs_commit_transaction:2496: errno=-5 IO failure (Error while writing out transaction)
[16716.294532] BTRFS info (device dm-11: state E): forced readonly
[16716.294539] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16716.294543] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16716.301205] BTRFS warning (device dm-11: state EA): direct IO failed ino 1379 rw 0,0 sector 0x232d58 len 24576 err no 10
[16716.301765] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16716.301777] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16716.304909] BTRFS warning (device dm-11: state EA): direct IO failed ino 1041 rw 0,0 sector 0x235b68 len 20480 err no 10
[16716.319460] BTRFS warning (device dm-11: state EA): direct IO failed ino 1819 rw 0,0 sector 0x2388e0 len 8192 err no 10
[16716.321355] BTRFS warning (device dm-11: state EA): direct IO failed ino 1826 rw 0,0 sector 0x2353f0 len 57344 err no 10
[16716.323876] BTRFS warning (device dm-11: state EA): direct IO failed ino 1390 rw 0,0 sector 0x22d830 len 16384 err no 10
[16716.323899] BTRFS warning (device dm-11: state EA): direct IO failed ino 1390 rw 0,0 sector 0x22d850 len 4096 err no 10
[16716.324096] BTRFS warning (device dm-11: state EA): direct IO failed ino 1743 rw 0,0 sector 0x231858 len 16384 err no 10
[16716.828042] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16716.828051] BTRFS info (device dm-11): turning on async discard
[16716.828053] BTRFS info (device dm-11): disk space caching is enabled
[16716.833015] BTRFS info (device dm-11): start tree-log replay
[16716.919370] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16716.924202] BTRFS: error (device dm-11: state A) in btrfs_create_new_inode:6432: errno=-5 IO failure
[16716.925099] BTRFS info (device dm-11: state EA): forced readonly
[16717.423058] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16717.423067] BTRFS info (device dm-11): turning on async discard
[16717.423069] BTRFS info (device dm-11): disk space caching is enabled
[16719.472103] BTRFS: error (device dm-11) in btrfs_commit_transaction:2496: errno=-5 IO failure (Error while writing out transaction)
[16719.472762] BTRFS info (device dm-11: state E): forced readonly
[16719.472766] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16719.472769] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16719.479528] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16720.053197] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16720.053206] BTRFS info (device dm-11): turning on async discard
[16720.053208] BTRFS info (device dm-11): disk space caching is enabled
[16720.082765] btrfs_dev_stat_inc_and_print: 111 callbacks suppressed
[16720.082768] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 0, rd 1, flush 0, corrupt 0, gen 0
[16720.082781] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 0, rd 2, flush 0, corrupt 0, gen 0
[16720.083322] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 0, rd 3, flush 0, corrupt 0, gen 0
[16720.083327] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 0, rd 4, flush 0, corrupt 0, gen 0
[16720.084005] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 0, rd 5, flush 0, corrupt 0, gen 0
[16720.084165] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 0, rd 6, flush 0, corrupt 0, gen 0
[16720.084838] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 0, rd 7, flush 0, corrupt 0, gen 0
[16720.084877] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 0, rd 8, flush 0, corrupt 0, gen 0
[16720.084900] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 0, rd 9, flush 0, corrupt 0, gen 0
[16720.089272] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 9, flush 0, corrupt 0, gen 0
[16720.089281] BTRFS warning (device dm-11): direct IO failed ino 1954 rw 1,34817 sector 0x312800 len 28672 err no 10
[16720.091765] BTRFS warning (device dm-11): direct IO failed ino 1954 rw 1,34817 sector 0x312800 len 69632 err no 10
[16720.094142] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16720.101149] BTRFS: error (device dm-11: state A) in create_subvol:735: errno=-5 IO failure
[16720.101688] BTRFS info (device dm-11: state EA): forced readonly
[16720.606328] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16720.606336] BTRFS info (device dm-11): turning on async discard
[16720.606338] BTRFS info (device dm-11): disk space caching is enabled
[16720.645809] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16720.665136] BTRFS: error (device dm-11: state A) in __btrfs_free_extent:3078: errno=-5 IO failure
[16720.665695] BTRFS info (device dm-11: state EA): forced readonly
[16720.665700] BTRFS: error (device dm-11: state EA) in btrfs_run_delayed_refs:2141: errno=-5 IO failure
[16720.667643] BTRFS: error (device dm-11: state EA) in do_free_extent_accounting:2848: errno=-5 IO failure
[16720.668698] BTRFS: error (device dm-11: state EA) in btrfs_run_delayed_refs:2141: errno=-5 IO failure
[16721.122338] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16721.122347] BTRFS info (device dm-11): turning on async discard
[16721.122349] BTRFS info (device dm-11): disk space caching is enabled
[16721.146027] ------------[ cut here ]------------
[16721.146264] WARNING: CPU: 0 PID: 1684415 at fs/btrfs/discard.c:604 btrfs_discard_update_discardable+0x98/0xb0
[16721.146272] 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 iTCO_wdt intel_rapl_msr iTCO_vendor_support snd_hda_codec_generic snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hwdep snd_hda_core snd_pcm i2c_i801 snd_timer i2c_smbus intel_rapl_common snd joydev soundcore lpc_ich virtio_balloon zram ip_tables xfs crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel serio_raw qemu_fw_cfg
[16721.146363] CPU: 0 PID: 1684415 Comm: kworker/u4:1 Tainted: G W 5.19.0-rc8+ #798
[16721.146367] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[16721.146369] Workqueue: btrfs-cache btrfs_work_helper
[16721.146376] RIP: 0010:btrfs_discard_update_discardable+0x98/0xb0
[16721.146379] 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
[16721.146382] RSP: 0018:ffffc093c28b7ad0 EFLAGS: 00010246
[16721.146386] RAX: 0000000000000000 RBX: ffff9abf83fec200 RCX: 0000000000000001
[16721.146388] RDX: 0000000000000000 RSI: ffffffff8d807c5b RDI: ffffffff8d8a831e
[16721.146391] RBP: ffff9abf91288000 R08: 0000000000000000 R09: 0000000000001000
[16721.146410] R10: 000000000000759b R11: 0000000000840500 R12: ffff9abf813af810
[16721.146412] R13: ffff9abf8340d890 R14: ffff9abf91288000 R15: ffff9abfde0f94d0
[16721.146415] FS: 0000000000000000(0000) GS:ffff9abffbc00000(0000) knlGS:0000000000000000
[16721.146418] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[16721.146420] CR2: 0000000002133438 CR3: 0000000104df2003 CR4: 0000000000370ef0
[16721.146425] Call Trace:
[16721.146428]
[16721.146433] __btrfs_remove_free_space_cache+0x27/0x30
[16721.146440] load_free_space_cache+0xad2/0xaf0
[16721.146505] caching_thread+0x40b/0x650
[16721.146517] ? lock_release+0x137/0x2d0
[16721.146527] btrfs_work_helper+0xf2/0x3e0
[16721.146531] ? lock_is_held_type+0xe2/0x140
[16721.146574] process_one_work+0x271/0x590
[16721.146590] worker_thread+0x52/0x3b0
[16721.146597] ? process_one_work+0x590/0x590
[16721.146601] kthread+0xf0/0x120
[16721.146605] ? kthread_complete_and_exit+0x20/0x20
[16721.146611] ret_from_fork+0x1f/0x30
[16721.146633]
[16721.146635] irq event stamp: 19793301
[16721.146637] hardirqs last enabled at (19793307): [] __up_console_sem+0x5e/0x70
[16721.146641] hardirqs last disabled at (19793312): [] __up_console_sem+0x43/0x70
[16721.146644] softirqs last enabled at (19792710): [] __irq_exit_rcu+0xeb/0x160
[16721.146649] softirqs last disabled at (19792701): [] __irq_exit_rcu+0xeb/0x160
[16721.146652] ---[ end trace 0000000000000000 ]---
[16721.146656] BTRFS warning (device dm-11): block group 298844160 has wrong amount of free space
[16721.146768] BTRFS warning (device dm-11): failed to load free space cache for block group 298844160, rebuilding it now
[16722.209848] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16722.209885] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16722.209910] BTRFS error (device dm-11): error writing primary super block to device 1
[16722.209918] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16722.211589] BTRFS info (device dm-11: state E): forced readonly
[16722.211598] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16722.211604] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16722.214736] BTRFS warning (device dm-11: state EA): direct IO failed ino 263 rw 0,0 sector 0x8110 len 4096 err no 10
[16722.215043] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16722.215047] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16722.215673] BTRFS warning (device dm-11: state EA): direct IO failed ino 263 rw 0,0 sector 0x8110 len 4096 err no 10
[16722.223660] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16722.236178] BTRFS warning (device dm-11: state EA): direct IO failed ino 263 rw 0,0 sector 0x8110 len 4096 err no 10
[16722.236279] BTRFS warning (device dm-11: state EA): direct IO failed ino 263 rw 0,0 sector 0x24f2d8 len 20480 err no 10
[16722.236931] BTRFS warning (device dm-11: state EA): direct IO failed ino 262 rw 0,0 sector 0x24eee8 len 4096 err no 10
[16722.237206] BTRFS warning (device dm-11: state EA): direct IO failed ino 259 rw 0,0 sector 0x24e2d8 len 12288 err no 10
[16722.252632] BTRFS warning (device dm-11: state EA): direct IO failed ino 1957 rw 0,0 sector 0x24d130 len 73728 err no 10
[16722.252973] BTRFS warning (device dm-11: state EA): direct IO failed ino 262 rw 0,0 sector 0x24eee0 len 36864 err no 10
[16722.253276] BTRFS warning (device dm-11: state EA): direct IO failed ino 257 rw 0,0 sector 0x250348 len 16384 err no 10
[16722.255499] BTRFS warning (device dm-11: state EA): direct IO failed ino 1971 rw 0,0 sector 0x24d368 len 28672 err no 10
[16722.257730] BTRFS warning (device dm-11: state EA): direct IO failed ino 1971 rw 0,0 sector 0x24d388 len 12288 err no 10
[16722.768221] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16722.768231] BTRFS info (device dm-11): turning on async discard
[16722.768233] BTRFS info (device dm-11): disk space caching is enabled
[16723.851250] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16723.851293] BTRFS error (device dm-11): error writing primary super block to device 1
[16723.851301] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16723.853217] BTRFS info (device dm-11: state E): forced readonly
[16723.853237] BTRFS: error (device dm-11: state EA) in btrfs_sync_log:3203: errno=-5 IO failure
[16723.854737] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16723.854745] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16723.859558] BTRFS warning (device dm-11: state EA): direct IO failed ino 1810 rw 0,0 sector 0x2520a8 len 73728 err no 10
[16723.865723] BTRFS warning (device dm-11: state EA): direct IO failed ino 257 rw 0,0 sector 0x253908 len 77824 err no 10
[16723.866225] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16723.880830] BTRFS warning (device dm-11: state EA): direct IO failed ino 262 rw 0,0 sector 0x2564e0 len 20480 err no 10
[16723.881820] BTRFS warning (device dm-11: state EA): direct IO failed ino 257 rw 0,0 sector 0x2559b8 len 12288 err no 10
[16723.883068] BTRFS warning (device dm-11: state EA): direct IO failed ino 260 rw 0,0 sector 0x253c40 len 36864 err no 10
[16723.883172] BTRFS warning (device dm-11: state EA): direct IO failed ino 258 rw 0,0 sector 0x255c68 len 77824 err no 10
[16723.905760] BTRFS warning (device dm-11: state EA): direct IO failed ino 260 rw 0,0 sector 0x252bb0 len 36864 err no 10
[16723.906489] BTRFS warning (device dm-11: state EA): direct IO failed ino 258 rw 0,0 sector 0x252a90 len 8192 err no 10
[16723.909576] BTRFS warning (device dm-11: state EA): direct IO failed ino 1994 rw 0,0 sector 0x255090 len 32768 err no 10
[16724.377850] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16724.377858] BTRFS info (device dm-11): turning on async discard
[16724.377860] BTRFS info (device dm-11): disk space caching is enabled
[16724.382375] BTRFS info (device dm-11): start tree-log replay
[16724.389839] ------------[ cut here ]------------
[16724.389904] WARNING: CPU: 1 PID: 1684415 at fs/btrfs/discard.c:604 btrfs_discard_update_discardable+0x98/0xb0
[16724.389910] 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 iTCO_wdt intel_rapl_msr iTCO_vendor_support snd_hda_codec_generic snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hwdep snd_hda_core snd_pcm i2c_i801 snd_timer i2c_smbus intel_rapl_common snd joydev soundcore lpc_ich virtio_balloon zram ip_tables xfs crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel serio_raw qemu_fw_cfg
[16724.389972] CPU: 1 PID: 1684415 Comm: kworker/u4:1 Tainted: G W 5.19.0-rc8+ #798
[16724.389975] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[16724.389977] Workqueue: btrfs-cache btrfs_work_helper
[16724.389981] RIP: 0010:btrfs_discard_update_discardable+0x98/0xb0
[16724.389984] 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
[16724.389987] RSP: 0018:ffffc093c28b7ad0 EFLAGS: 00010246
[16724.389989] RAX: 0000000000000000 RBX: ffff9abf83fecc00 RCX: 0000000000000001
[16724.389991] RDX: 0000000000000000 RSI: ffffffff8d807c5b RDI: ffffffff8d8a831e
[16724.389993] RBP: ffff9abf85108000 R08: 0000000000000000 R09: 0000000000001000
[16724.389994] R10: 000000000000759b R11: 000000000083f300 R12: ffff9abf813aa810
[16724.389996] R13: ffff9abf804deb30 R14: ffff9abf85108000 R15: ffff9abf870fcaf0
[16724.389998] FS: 0000000000000000(0000) GS:ffff9abffbd00000(0000) knlGS:0000000000000000
[16724.390000] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[16724.390001] CR2: 00007f00ef7fd490 CR3: 000000010f8d4004 CR4: 0000000000370ee0
[16724.390005] Call Trace:
[16724.390007]
[16724.390012] __btrfs_remove_free_space_cache+0x27/0x30
[16724.390016] load_free_space_cache+0xad2/0xaf0
[16724.390056] caching_thread+0x40b/0x650
[16724.390064] ? lock_release+0x137/0x2d0
[16724.390071] btrfs_work_helper+0xf2/0x3e0
[16724.390074] ? lock_is_held_type+0xe2/0x140
[16724.390081] process_one_work+0x271/0x590
[16724.390091] worker_thread+0x52/0x3b0
[16724.390096] ? process_one_work+0x590/0x590
[16724.390098] kthread+0xf0/0x120
[16724.390101] ? kthread_complete_and_exit+0x20/0x20
[16724.390105] ret_from_fork+0x1f/0x30
[16724.390119]
[16724.390120] irq event stamp: 19821645
[16724.390122] hardirqs last enabled at (19821651): [] __up_console_sem+0x5e/0x70
[16724.390125] hardirqs last disabled at (19821656): [] __up_console_sem+0x43/0x70
[16724.390127] softirqs last enabled at (19820422): [] __irq_exit_rcu+0xeb/0x160
[16724.390130] softirqs last disabled at (19820399): [] __irq_exit_rcu+0xeb/0x160
[16724.390132] ---[ end trace 0000000000000000 ]---
[16724.390135] BTRFS warning (device dm-11): block group 298844160 has wrong amount of free space
[16724.390149] BTRFS warning (device dm-11): failed to load free space cache for block group 298844160, rebuilding it now
[16726.488143] btrfs_dev_stat_inc_and_print: 182 callbacks suppressed
[16726.488152] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[16726.488209] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 2, rd 0, flush 0, corrupt 0, gen 0
[16726.488276] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 3, rd 0, flush 0, corrupt 0, gen 0
[16726.491294] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 4, rd 0, flush 0, corrupt 0, gen 0
[16726.491319] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 5, rd 0, flush 0, corrupt 0, gen 0
[16726.493291] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 6, rd 0, flush 0, corrupt 0, gen 0
[16726.496703] BTRFS: error (device dm-11: state A) in btrfs_replace_file_extents:2802: errno=-5 IO failure
[16726.498917] BTRFS info (device dm-11: state EA): forced readonly
[16726.500341] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 6, rd 1, flush 0, corrupt 0, gen 0
[16726.500940] BTRFS warning (device dm-11: state EA): direct IO failed ino 2044 rw 0,0 sector 0x253d38 len 57344 err no 10
[16726.501883] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 7, rd 1, flush 0, corrupt 0, gen 0
[16726.501902] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 8, rd 1, flush 0, corrupt 0, gen 0
[16726.506173] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 9, rd 1, flush 0, corrupt 0, gen 0
[16726.508803] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16726.509350] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16727.027352] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16727.027360] BTRFS info (device dm-11): turning on async discard
[16727.027362] BTRFS info (device dm-11): disk space caching is enabled
[16729.099605] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16729.099633] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16729.099743] BTRFS error (device dm-11): error writing primary super block to device 1
[16729.099749] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16729.100881] BTRFS info (device dm-11: state E): forced readonly
[16729.100889] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16729.100895] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16729.102091] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16729.102097] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16729.107326] BTRFS warning (device dm-11: state EA): direct IO failed ino 2134 rw 0,0 sector 0x274508 len 12288 err no 10
[16729.112770] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16729.132884] BTRFS warning (device dm-11: state EA): direct IO failed ino 270 rw 0,0 sector 0x271de0 len 20480 err no 10
[16729.152568] BTRFS warning (device dm-11: state EA): direct IO failed ino 1989 rw 0,0 sector 0x26ac78 len 4096 err no 10
[16729.154940] BTRFS warning (device dm-11: state EA): direct IO failed ino 1971 rw 0,0 sector 0x266df0 len 40960 err no 10
[16729.685769] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16729.685781] BTRFS info (device dm-11): turning on async discard
[16729.685784] BTRFS info (device dm-11): disk space caching is enabled
[16729.716905] ------------[ cut here ]------------
[16729.716983] WARNING: CPU: 0 PID: 2215804 at fs/btrfs/discard.c:604 btrfs_discard_update_discardable+0x98/0xb0
[16729.716991] 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 iTCO_wdt intel_rapl_msr iTCO_vendor_support snd_hda_codec_generic snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hwdep snd_hda_core snd_pcm i2c_i801 snd_timer i2c_smbus intel_rapl_common snd joydev soundcore lpc_ich virtio_balloon zram ip_tables xfs crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel serio_raw qemu_fw_cfg
[16729.717108] CPU: 0 PID: 2215804 Comm: kworker/u4:9 Tainted: G W 5.19.0-rc8+ #798
[16729.717112] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[16729.717115] Workqueue: btrfs-cache btrfs_work_helper
[16729.717122] RIP: 0010:btrfs_discard_update_discardable+0x98/0xb0
[16729.717127] 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
[16729.717130] RSP: 0018:ffffc093c27a7ad0 EFLAGS: 00010246
[16729.717135] RAX: 0000000000000000 RBX: ffff9abfddfdb400 RCX: 0000000000000001
[16729.717138] RDX: 0000000000000000 RSI: ffffffff8d807c5b RDI: ffffffff8d8a831e
[16729.717141] RBP: ffff9abf82cf4000 R08: 0000000000000000 R09: 0000000000001000
[16729.717143] R10: ffff9abeb280f288 R11: 0000000000840600 R12: ffff9abff14f1810
[16729.717146] R13: ffff9abf80426b30 R14: ffff9abf82cf4000 R15: ffff9abfde0f99a0
[16729.717150] FS: 0000000000000000(0000) GS:ffff9abffbc00000(0000) knlGS:0000000000000000
[16729.717153] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[16729.717156] CR2: 00007f753ecc6160 CR3: 0000000120438004 CR4: 0000000000370ef0
[16729.717162] Call Trace:
[16729.717165]
[16729.717172] __btrfs_remove_free_space_cache+0x27/0x30
[16729.717178] load_free_space_cache+0xad2/0xaf0
[16729.717255] caching_thread+0x40b/0x650
[16729.717270] ? lock_release+0x137/0x2d0
[16729.717281] btrfs_work_helper+0xf2/0x3e0
[16729.717285] ? lock_is_held_type+0xe2/0x140
[16729.717298] process_one_work+0x271/0x590
[16729.717314] ? process_one_work+0x590/0x590
[16729.717318] worker_thread+0x52/0x3b0
[16729.717327] ? process_one_work+0x590/0x590
[16729.717331] kthread+0xf0/0x120
[16729.717336] ? kthread_complete_and_exit+0x20/0x20
[16729.717344] ret_from_fork+0x1f/0x30
[16729.717368]
[16729.717370] irq event stamp: 208493
[16729.717372] hardirqs last enabled at (208499): [] __up_console_sem+0x5e/0x70
[16729.717377] hardirqs last disabled at (208504): [] __up_console_sem+0x43/0x70
[16729.717381] softirqs last enabled at (207908): [] __irq_exit_rcu+0xeb/0x160
[16729.717385] softirqs last disabled at (207899): [] __irq_exit_rcu+0xeb/0x160
[16729.717389] ---[ end trace 0000000000000000 ]---
[16729.717393] BTRFS warning (device dm-11): block group 298844160 has wrong amount of free space
[16729.717414] BTRFS warning (device dm-11): failed to load free space cache for block group 298844160, rebuilding it now
[16731.755435] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16731.755464] btrfs_dev_stat_inc_and_print: 47 callbacks suppressed
[16731.755466] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[16731.755479] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16731.755482] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 2, rd 0, flush 0, corrupt 0, gen 0
[16731.755492] BTRFS error (device dm-11): error writing primary super block to device 1
[16731.755495] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16731.756075] BTRFS info (device dm-11: state E): forced readonly
[16731.756080] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16731.756088] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16731.757784] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 2, rd 1, flush 0, corrupt 0, gen 0
[16731.757888] BTRFS warning (device dm-11: state EA): direct IO failed ino 1977 rw 0,0 sector 0x287d30 len 12288 err no 10
[16731.759328] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16731.759337] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16731.761862] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 3, rd 1, flush 0, corrupt 0, gen 0
[16731.762372] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 4, rd 1, flush 0, corrupt 0, gen 0
[16731.762929] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 5, rd 1, flush 0, corrupt 0, gen 0
[16731.762955] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 6, rd 1, flush 0, corrupt 0, gen 0
[16731.763280] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 7, rd 1, flush 0, corrupt 0, gen 0
[16731.763353] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 8, rd 1, flush 0, corrupt 0, gen 0
[16731.763374] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 9, rd 1, flush 0, corrupt 0, gen 0
[16731.764190] BTRFS warning (device dm-11: state EA): direct IO failed ino 2220 rw 0,0 sector 0x27fa78 len 28672 err no 10
[16731.765887] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16731.786116] BTRFS warning (device dm-11: state EA): direct IO failed ino 2212 rw 0,0 sector 0x287758 len 28672 err no 10
[16731.787991] BTRFS warning (device dm-11: state EA): direct IO failed ino 1977 rw 0,0 sector 0x287d00 len 28672 err no 10
[16731.788378] BTRFS warning (device dm-11: state EA): direct IO failed ino 2021 rw 0,0 sector 0x278378 len 4096 err no 10
[16731.788765] BTRFS warning (device dm-11: state EA): direct IO failed ino 2221 rw 0,0 sector 0x284c60 len 53248 err no 10
[16731.803724] BTRFS warning (device dm-11: state EA): direct IO failed ino 2212 rw 0,0 sector 0x2855a0 len 4096 err no 10
[16731.804300] BTRFS warning (device dm-11: state EA): direct IO failed ino 2300 rw 0,0 sector 0x288040 len 36864 err no 10
[16732.340123] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16732.340131] BTRFS info (device dm-11): turning on async discard
[16732.340133] BTRFS info (device dm-11): disk space caching is enabled
[16732.344344] BTRFS info (device dm-11): start tree-log replay
[16733.514322] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16733.514357] BTRFS error (device dm-11): error writing primary super block to device 1
[16733.514363] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16733.516154] BTRFS info (device dm-11: state E): forced readonly
[16733.516176] BTRFS: error (device dm-11: state EA) in btrfs_sync_log:3203: errno=-5 IO failure
[16733.524372] BTRFS warning (device dm-11: state EA): direct IO failed ino 258 rw 0,0 sector 0x28be20 len 16384 err no 10
[16733.524387] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16733.524391] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16733.526953] BTRFS warning (device dm-11: state EA): direct IO failed ino 258 rw 0,0 sector 0x28ed08 len 36864 err no 10
[16733.527696] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16733.530320] BTRFS warning (device dm-11: state EA): direct IO failed ino 258 rw 0,0 sector 0x28b568 len 4096 err no 10
[16733.530506] BTRFS warning (device dm-11: state EA): direct IO failed ino 2303 rw 0,0 sector 0x289060 len 28672 err no 10
[16733.540939] BTRFS warning (device dm-11: state EA): direct IO failed ino 258 rw 0,0 sector 0x28ed30 len 20480 err no 10
[16734.026843] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16734.026852] BTRFS info (device dm-11): turning on async discard
[16734.026854] BTRFS info (device dm-11): disk space caching is enabled
[16734.031357] BTRFS info (device dm-11): start tree-log replay
[16734.040298] ------------[ cut here ]------------
[16734.040363] WARNING: CPU: 1 PID: 2157426 at fs/btrfs/discard.c:604 btrfs_discard_update_discardable+0x98/0xb0
[16734.040369] 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 iTCO_wdt intel_rapl_msr iTCO_vendor_support snd_hda_codec_generic snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hwdep snd_hda_core snd_pcm i2c_i801 snd_timer i2c_smbus intel_rapl_common snd joydev soundcore lpc_ich virtio_balloon zram ip_tables xfs crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel serio_raw qemu_fw_cfg
[16734.040464] CPU: 1 PID: 2157426 Comm: kworker/u4:0 Tainted: G W 5.19.0-rc8+ #798
[16734.040467] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[16734.040469] Workqueue: btrfs-cache btrfs_work_helper
[16734.040474] RIP: 0010:btrfs_discard_update_discardable+0x98/0xb0
[16734.040477] 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
[16734.040479] RSP: 0018:ffffc093c4ef7ad0 EFLAGS: 00010246
[16734.040482] RAX: 0000000000000000 RBX: ffff9abf83fec800 RCX: 0000000000000001
[16734.040484] RDX: 0000000000000000 RSI: ffffffff8d807c5b RDI: ffffffff8d8a831e
[16734.040486] RBP: ffff9abf913ec000 R08: 0000000000000000 R09: 0000000000001000
[16734.040487] R10: ffff9abf90b3c700 R11: 0000000000840500 R12: ffff9abf813ae010
[16734.040489] R13: ffff9abf83480e10 R14: ffff9abf913ec000 R15: ffff9abf870fc540
[16734.040490] FS: 0000000000000000(0000) GS:ffff9abffbd00000(0000) knlGS:0000000000000000
[16734.040492] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[16734.040494] CR2: 0000557072925200 CR3: 0000000104594001 CR4: 0000000000370ee0
[16734.040498] Call Trace:
[16734.040500]
[16734.040504] __btrfs_remove_free_space_cache+0x27/0x30
[16734.040508] load_free_space_cache+0xad2/0xaf0
[16734.040548] caching_thread+0x40b/0x650
[16734.040556] ? lock_release+0x137/0x2d0
[16734.040563] btrfs_work_helper+0xf2/0x3e0
[16734.040566] ? lock_is_held_type+0xe2/0x140
[16734.040573] process_one_work+0x271/0x590
[16734.040583] worker_thread+0x52/0x3b0
[16734.040589] ? process_one_work+0x590/0x590
[16734.040594] kthread+0xf0/0x120
[16734.040597] ? kthread_complete_and_exit+0x20/0x20
[16734.040604] ret_from_fork+0x1f/0x30
[16734.040625]
[16734.040628] irq event stamp: 615759
[16734.040630] hardirqs last enabled at (615765): [] __up_console_sem+0x5e/0x70
[16734.040634] hardirqs last disabled at (615770): [] __up_console_sem+0x43/0x70
[16734.040637] softirqs last enabled at (615444): [] __irq_exit_rcu+0xeb/0x160
[16734.040641] softirqs last disabled at (615439): [] __irq_exit_rcu+0xeb/0x160
[16734.040645] ---[ end trace 0000000000000000 ]---
[16734.040649] BTRFS warning (device dm-11): block group 298844160 has wrong amount of free space
[16734.040666] BTRFS warning (device dm-11): failed to load free space cache for block group 298844160, rebuilding it now
[16736.135737] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16736.135751] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16736.137434] BTRFS error (device dm-11): error writing primary super block to device 1
[16736.137438] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16736.138092] BTRFS info (device dm-11: state E): forced readonly
[16736.138106] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16736.138110] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16736.141027] BTRFS: error (device dm-11: state EA) in btrfs_sync_log:3192: errno=-5 IO failure
[16736.143176] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16736.143181] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16736.148965] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16736.149115] BTRFS warning (device dm-11: state EA): direct IO failed ino 1979 rw 0,0 sector 0x292248 len 8192 err no 10
[16736.149160] BTRFS warning (device dm-11: state EA): direct IO failed ino 1979 rw 0,0 sector 0x253038 len 4096 err no 10
[16736.149848] BTRFS warning (device dm-11: state EA): direct IO failed ino 272 rw 0,0 sector 0x2a5798 len 12288 err no 10
[16736.164615] BTRFS warning (device dm-11: state EA): direct IO failed ino 1958 rw 0,0 sector 0x29eda8 len 86016 err no 10
[16736.164714] BTRFS warning (device dm-11: state EA): direct IO failed ino 2354 rw 0,0 sector 0x29a3d8 len 4096 err no 10
[16736.165099] BTRFS warning (device dm-11: state EA): direct IO failed ino 2327 rw 0,0 sector 0x291130 len 20480 err no 10
[16736.165988] BTRFS warning (device dm-11: state EA): direct IO failed ino 260 rw 0,0 sector 0x2a7af8 len 8192 err no 10
[16736.182474] BTRFS warning (device dm-11: state EA): direct IO failed ino 2384 rw 0,0 sector 0x29e1a0 len 12288 err no 10
[16736.184960] BTRFS warning (device dm-11: state EA): direct IO failed ino 2333 rw 0,0 sector 0x2942d8 len 4096 err no 10
[16736.764211] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16736.764218] BTRFS info (device dm-11): turning on async discard
[16736.764220] BTRFS info (device dm-11): disk space caching is enabled
[16736.768295] BTRFS info (device dm-11): start tree-log replay
[16738.969710] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16738.969721] btrfs_dev_stat_inc_and_print: 43 callbacks suppressed
[16738.969725] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[16738.969750] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16738.969757] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 2, rd 0, flush 0, corrupt 0, gen 0
[16738.969821] BTRFS error (device dm-11): error writing primary super block to device 1
[16738.969827] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16738.970720] BTRFS info (device dm-11: state E): forced readonly
[16738.970727] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16738.970731] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16738.976410] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16738.976416] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16738.979331] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 2, rd 1, flush 0, corrupt 0, gen 0
[16738.979356] BTRFS warning (device dm-11: state EA): direct IO failed ino 1958 rw 0,0 sector 0x2b6150 len 36864 err no 10
[16738.979487] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 2, rd 2, flush 0, corrupt 0, gen 0
[16738.979500] BTRFS warning (device dm-11: state EA): direct IO failed ino 259 rw 0,0 sector 0x2bb818 len 16384 err no 10
[16738.980209] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 2, rd 3, flush 0, corrupt 0, gen 0
[16738.980223] BTRFS warning (device dm-11: state EA): direct IO failed ino 257 rw 0,0 sector 0x2b1bf8 len 12288 err no 10
[16738.981588] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 2, rd 4, flush 0, corrupt 0, gen 0
[16738.981602] BTRFS warning (device dm-11: state EA): direct IO failed ino 2528 rw 0,0 sector 0x2b6f60 len 16384 err no 10
[16738.982724] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16738.984408] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 2, rd 5, flush 0, corrupt 0, gen 0
[16739.576261] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16739.576272] BTRFS info (device dm-11): turning on async discard
[16739.576274] BTRFS info (device dm-11): disk space caching is enabled
[16739.580885] BTRFS info (device dm-11): start tree-log replay
[16739.873217] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[16739.873282] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 1, flush 0, corrupt 0, gen 0
[16739.873340] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 2, flush 0, corrupt 0, gen 0
[16739.883839] BTRFS: error (device dm-11: state A) in btrfs_run_delayed_refs:2141: errno=-5 IO failure
[16739.884469] BTRFS info (device dm-11: state EA): forced readonly
[16739.884792] BTRFS: error (device dm-11: state EA) in maybe_insert_hole:5022: errno=-5 IO failure
[16739.891724] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16740.307158] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16740.307169] BTRFS info (device dm-11): turning on async discard
[16740.307173] BTRFS info (device dm-11): disk space caching is enabled
[16741.377085] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16741.377099] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16741.377108] BTRFS error (device dm-11): error writing primary super block to device 1
[16741.377111] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16741.377769] BTRFS info (device dm-11: state E): forced readonly
[16741.377774] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16741.377777] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16741.380207] BTRFS warning (device dm-11: state EA): direct IO failed ino 2551 rw 0,0 sector 0x2bfc08 len 40960 err no 10
[16741.387689] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16741.401775] BTRFS warning (device dm-11: state EA): direct IO failed ino 258 rw 0,0 sector 0x2bfb60 len 8192 err no 10
[16741.418959] BTRFS warning (device dm-11: state EA): direct IO failed ino 2554 rw 0,0 sector 0x2bdd60 len 53248 err no 10
[16741.419976] BTRFS warning (device dm-11: state EA): direct IO failed ino 2560 rw 0,0 sector 0x2be7a8 len 36864 err no 10
[16741.420154] BTRFS warning (device dm-11: state EA): direct IO failed ino 2344 rw 0,0 sector 0x2bdb20 len 49152 err no 10
[16741.421318] BTRFS warning (device dm-11: state EA): direct IO failed ino 2214 rw 0,0 sector 0x2bbdd0 len 40960 err no 10
[16741.425617] BTRFS warning (device dm-11: state EA): direct IO failed ino 2558 rw 0,0 sector 0x2bbd00 len 20480 err no 10
[16741.428004] BTRFS warning (device dm-11: state EA): direct IO failed ino 2567 rw 0,0 sector 0x2be0c8 len 57344 err no 10
[16741.958851] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16741.958860] BTRFS info (device dm-11): turning on async discard
[16741.958862] BTRFS info (device dm-11): disk space caching is enabled
[16741.999242] BTRFS: error (device dm-11: state A) in create_subvol:735: errno=-5 IO failure
[16741.999724] BTRFS info (device dm-11: state EA): forced readonly
[16742.000751] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16742.477530] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16742.477539] BTRFS info (device dm-11): turning on async discard
[16742.477541] BTRFS info (device dm-11): disk space caching is enabled
[16744.513253] btrfs_dev_stat_inc_and_print: 187 callbacks suppressed
[16744.513257] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[16744.513368] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 2, rd 0, flush 0, corrupt 0, gen 0
[16744.515509] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 3, rd 0, flush 0, corrupt 0, gen 0
[16744.515523] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 4, rd 0, flush 0, corrupt 0, gen 0
[16744.515774] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 5, rd 0, flush 0, corrupt 0, gen 0
[16744.515786] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 6, rd 0, flush 0, corrupt 0, gen 0
[16744.515933] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 7, rd 0, flush 0, corrupt 0, gen 0
[16744.515944] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 8, rd 0, flush 0, corrupt 0, gen 0
[16744.516060] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 9, rd 0, flush 0, corrupt 0, gen 0
[16744.516071] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 10, rd 0, flush 0, corrupt 0, gen 0
[16744.517064] BTRFS: error (device dm-11) in btrfs_commit_transaction:2496: errno=-5 IO failure (Error while writing out transaction)
[16744.517962] BTRFS info (device dm-11: state E): forced readonly
[16744.517969] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16744.517973] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16744.528500] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16745.114283] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16745.114291] BTRFS info (device dm-11): turning on async discard
[16745.114293] BTRFS info (device dm-11): disk space caching is enabled
[16745.142030] ------------[ cut here ]------------
[16745.142097] WARNING: CPU: 0 PID: 2170722 at fs/btrfs/discard.c:604 btrfs_discard_update_discardable+0x98/0xb0
[16745.142104] 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 iTCO_wdt intel_rapl_msr iTCO_vendor_support snd_hda_codec_generic snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hwdep snd_hda_core snd_pcm i2c_i801 snd_timer i2c_smbus intel_rapl_common snd joydev soundcore lpc_ich virtio_balloon zram ip_tables xfs crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel serio_raw qemu_fw_cfg
[16745.142168] CPU: 0 PID: 2170722 Comm: kworker/u4:4 Tainted: G W 5.19.0-rc8+ #798
[16745.142170] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[16745.142172] Workqueue: btrfs-cache btrfs_work_helper
[16745.142177] RIP: 0010:btrfs_discard_update_discardable+0x98/0xb0
[16745.142180] 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
[16745.142182] RSP: 0018:ffffc093c35e7ad0 EFLAGS: 00010246
[16745.142185] RAX: 0000000000000000 RBX: ffff9abf86272800 RCX: 0000000000000001
[16745.142194] RDX: 0000000000000000 RSI: ffffffff8d807c5b RDI: ffffffff8d8a831e
[16745.142195] RBP: ffff9abf85310000 R08: 0000000000000000 R09: 0000000000001000
[16745.142197] R10: 00000000000511f8 R11: 0000000000841800 R12: ffff9abff14f5810
[16745.142198] R13: ffff9abf834604c0 R14: ffff9abf85310000 R15: ffff9abfde0f9cb0
[16745.142200] FS: 0000000000000000(0000) GS:ffff9abffbc00000(0000) knlGS:0000000000000000
[16745.142202] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[16745.142204] CR2: 00007fecf713f490 CR3: 0000000106de4006 CR4: 0000000000370ef0
[16745.142207] Call Trace:
[16745.142209]
[16745.142213] __btrfs_remove_free_space_cache+0x27/0x30
[16745.142218] load_free_space_cache+0xad2/0xaf0
[16745.142258] caching_thread+0x40b/0x650
[16745.142266] ? lock_release+0x137/0x2d0
[16745.142274] btrfs_work_helper+0xf2/0x3e0
[16745.142276] ? lock_is_held_type+0xe2/0x140
[16745.142283] process_one_work+0x271/0x590
[16745.142292] ? process_one_work+0x590/0x590
[16745.142295] worker_thread+0x52/0x3b0
[16745.142328] ? process_one_work+0x590/0x590
[16745.142332] kthread+0xf0/0x120
[16745.142334] ? kthread_complete_and_exit+0x20/0x20
[16745.142339] ret_from_fork+0x1f/0x30
[16745.142352]
[16745.142354] irq event stamp: 711841
[16745.142355] hardirqs last enabled at (711847): [] __up_console_sem+0x5e/0x70
[16745.142361] hardirqs last disabled at (711852): [] __up_console_sem+0x43/0x70
[16745.142363] softirqs last enabled at (711810): [] __irq_exit_rcu+0xeb/0x160
[16745.142366] softirqs last disabled at (711797): [] __irq_exit_rcu+0xeb/0x160
[16745.142368] ---[ end trace 0000000000000000 ]---
[16745.142372] BTRFS warning (device dm-11): block group 298844160 has wrong amount of free space
[16745.142387] BTRFS warning (device dm-11): failed to load free space cache for block group 298844160, rebuilding it now
[16747.146901] BTRFS: error (device dm-11: state A) in __btrfs_free_extent:3078: errno=-5 IO failure
[16747.147426] BTRFS info (device dm-11: state EA): forced readonly
[16747.147432] BTRFS: error (device dm-11: state EA) in btrfs_run_delayed_refs:2141: errno=-5 IO failure
[16747.149056] BTRFS: error (device dm-11: state EA) in btrfs_commit_transaction:2496: errno=-5 IO failure (Error while writing out transaction)
[16747.150050] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16747.150054] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16747.153360] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16747.727473] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16747.727482] BTRFS info (device dm-11): turning on async discard
[16747.727484] BTRFS info (device dm-11): disk space caching is enabled
[16747.732029] BTRFS info (device dm-11): start tree-log replay
[16747.740991] BTRFS info (device dm-11): the free space cache file (298844160) is invalid, skip it
[16748.850256] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16748.850297] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16748.850314] BTRFS error (device dm-11): error writing primary super block to device 1
[16748.850317] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16748.850880] BTRFS info (device dm-11: state E): forced readonly
[16748.850884] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16748.850894] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16748.855441] BTRFS warning (device dm-11: state EA): direct IO failed ino 2738 rw 0,0 sector 0x2eb608 len 4096 err no 10
[16748.856171] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16748.856178] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16748.856928] BTRFS warning (device dm-11: state EA): direct IO failed ino 2628 rw 0,0 sector 0x2d34e0 len 24576 err no 10
[16748.859215] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16748.874205] BTRFS warning (device dm-11: state EA): direct IO failed ino 2575 rw 0,0 sector 0x2ec7f0 len 36864 err no 10
[16748.875219] BTRFS warning (device dm-11: state EA): direct IO failed ino 258 rw 0,0 sector 0x2ece20 len 81920 err no 10
[16748.893887] BTRFS warning (device dm-11: state EA): direct IO failed ino 260 rw 0,0 sector 0x2ed1c0 len 16384 err no 10
[16748.894855] BTRFS warning (device dm-11: state EA): direct IO failed ino 952 rw 0,0 sector 0x2ea958 len 53248 err no 10
[16748.896198] BTRFS warning (device dm-11: state EA): direct IO failed ino 261 rw 0,0 sector 0x2ec3d0 len 40960 err no 10
[16748.896768] BTRFS warning (device dm-11: state EA): direct IO failed ino 2749 rw 0,0 sector 0x2eba18 len 16384 err no 10
[16748.896870] BTRFS warning (device dm-11: state EA): direct IO failed ino 2738 rw 0,0 sector 0x2d2c20 len 4096 err no 10
[16748.898580] BTRFS warning (device dm-11: state EA): direct IO failed ino 261 rw 0,0 sector 0x2ec3c8 len 45056 err no 10
[16749.428728] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16749.428737] BTRFS info (device dm-11): turning on async discard
[16749.428738] BTRFS info (device dm-11): disk space caching is enabled
[16751.577340] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16751.577351] btrfs_dev_stat_inc_and_print: 40 callbacks suppressed
[16751.577354] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[16751.577376] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16751.577381] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 2, rd 0, flush 0, corrupt 0, gen 0
[16751.577402] BTRFS error (device dm-11): error writing primary super block to device 1
[16751.577409] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16751.578647] BTRFS info (device dm-11: state E): forced readonly
[16751.578656] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16751.578661] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16751.583630] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 2, rd 1, flush 0, corrupt 0, gen 0
[16751.583648] BTRFS warning (device dm-11: state EA): direct IO failed ino 2887 rw 0,0 sector 0x2fdd18 len 40960 err no 10
[16751.583938] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 2, rd 2, flush 0, corrupt 0, gen 0
[16751.583951] BTRFS warning (device dm-11: state EA): direct IO failed ino 2900 rw 0,0 sector 0x2fc5e8 len 49152 err no 10
[16751.584184] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 2, rd 3, flush 0, corrupt 0, gen 0
[16751.584196] BTRFS warning (device dm-11: state EA): direct IO failed ino 2900 rw 0,0 sector 0x2fc5c0 len 28672 err no 10
[16751.584487] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 2, rd 4, flush 0, corrupt 0, gen 0
[16751.584499] BTRFS warning (device dm-11: state EA): direct IO failed ino 2887 rw 0,0 sector 0x2fdd58 len 8192 err no 10
[16751.584682] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16751.584686] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16751.586728] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 2, rd 5, flush 0, corrupt 0, gen 0
[16751.586741] BTRFS warning (device dm-11: state EA): direct IO failed ino 2789 rw 0,0 sector 0x212a48 len 57344 err no 10
[16751.588708] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16751.603101] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 2, rd 6, flush 0, corrupt 0, gen 0
[16751.603127] BTRFS warning (device dm-11: state EA): direct IO failed ino 2771 rw 0,0 sector 0x2f6550 len 20480 err no 10
[16751.605858] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 2, rd 7, flush 0, corrupt 0, gen 0
[16751.606636] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 2, rd 8, flush 0, corrupt 0, gen 0
[16751.606651] BTRFS warning (device dm-11: state EA): direct IO failed ino 2875 rw 0,0 sector 0x2fd508 len 8192 err no 10
[16751.606734] BTRFS warning (device dm-11: state EA): direct IO failed ino 2900 rw 0,0 sector 0x2fc5d8 len 57344 err no 10
[16751.620026] BTRFS warning (device dm-11: state EA): direct IO failed ino 2839 rw 0,0 sector 0x2f4ab8 len 4096 err no 10
[16751.622610] BTRFS warning (device dm-11: state EA): direct IO failed ino 2900 rw 0,0 sector 0x2fc5c0 len 20480 err no 10
[16751.623110] BTRFS warning (device dm-11: state EA): direct IO failed ino 2783 rw 0,0 sector 0x2f16e8 len 4096 err no 10
[16752.188279] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16752.188288] BTRFS info (device dm-11): turning on async discard
[16752.188290] BTRFS info (device dm-11): disk space caching is enabled
[16752.192169] BTRFS info (device dm-11): start tree-log replay
[16752.371576] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16752.388148] BTRFS: error (device dm-11: state A) in __btrfs_run_delayed_items:1182: errno=-5 IO failure
[16752.388758] BTRFS info (device dm-11: state EA): forced readonly
[16752.388762] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16752.388765] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16752.860728] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16752.860737] BTRFS info (device dm-11): turning on async discard
[16752.860739] BTRFS info (device dm-11): disk space caching is enabled