[16428.748223] run fstests generic/475 at 2022-08-15 01:27:21
[16429.886618] BTRFS: device fsid 5f09557a-a888-4008-9322-0e245df2b18c devid 1 transid 6 /dev/mapper/vg0-lv9 scanned by mkfs.btrfs (2240076)
[16430.099054] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16430.099064] BTRFS info (device dm-11): turning on async discard
[16430.099065] BTRFS info (device dm-11): disk space caching is enabled
[16430.102969] BTRFS info (device dm-11): checking UUID tree
[16431.230773] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16431.230811] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[16431.230932] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16431.230935] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 2, rd 0, flush 0, corrupt 0, gen 0
[16431.230984] BTRFS error (device dm-11): error writing primary super block to device 1
[16431.231005] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16431.231700] BTRFS info (device dm-11: state E): forced readonly
[16431.231714] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16431.231729] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16431.234808] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 3, rd 0, flush 0, corrupt 0, gen 0
[16431.235330] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 4, rd 0, flush 0, corrupt 0, gen 0
[16431.235358] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 5, rd 0, flush 0, corrupt 0, gen 0
[16431.235529] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 6, rd 0, flush 0, corrupt 0, gen 0
[16431.235585] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 7, rd 0, flush 0, corrupt 0, gen 0
[16431.235714] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 8, rd 0, flush 0, corrupt 0, gen 0
[16431.235830] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 9, rd 0, flush 0, corrupt 0, gen 0
[16431.235857] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 10, rd 0, flush 0, corrupt 0, gen 0
[16431.239637] BTRFS warning (device dm-11: state EA): direct IO failed ino 285 rw 0,0 sector 0x98b0 len 16384 err no 10
[16431.242566] buffer_io_error: 760 callbacks suppressed
[16431.242571] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16431.777808] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16431.777817] BTRFS info (device dm-11): turning on async discard
[16431.777819] BTRFS info (device dm-11): disk space caching is enabled
[16433.836624] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16433.837364] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16433.837691] BTRFS error (device dm-11): error writing primary super block to device 1
[16433.837695] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16433.838354] BTRFS info (device dm-11: state E): forced readonly
[16433.838368] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16433.838372] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16433.838412] BTRFS: error (device dm-11: state EA) in btrfs_sync_log:3192: errno=-5 IO failure
[16433.847301] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16433.847310] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16433.851126] BTRFS warning (device dm-11: state EA): direct IO failed ino 300 rw 0,0 sector 0x122dd0 len 102400 err no 10
[16433.852068] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16433.855033] BTRFS warning (device dm-11: state EA): direct IO failed ino 360 rw 0,0 sector 0x11dbd0 len 8192 err no 10
[16433.857889] BTRFS warning (device dm-11: state EA): direct IO failed ino 300 rw 0,0 sector 0x127700 len 53248 err no 10
[16433.865942] BTRFS warning (device dm-11: state EA): direct IO failed ino 263 rw 0,0 sector 0x122828 len 24576 err no 10
[16433.868142] BTRFS warning (device dm-11: state EA): direct IO failed ino 262 rw 0,0 sector 0x126328 len 32768 err no 10
[16433.868404] BTRFS warning (device dm-11: state EA): direct IO failed ino 262 rw 0,0 sector 0x126350 len 12288 err no 10
[16433.869871] BTRFS warning (device dm-11: state EA): direct IO failed ino 298 rw 0,0 sector 0x9a90 len 32768 err no 10
[16434.389981] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16434.389989] BTRFS info (device dm-11): turning on async discard
[16434.389991] BTRFS info (device dm-11): disk space caching is enabled
[16435.470586] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16435.470601] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16435.470612] BTRFS error (device dm-11): error writing primary super block to device 1
[16435.470614] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16435.471272] BTRFS info (device dm-11: state E): forced readonly
[16435.471279] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16435.471285] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16435.473234] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16435.473283] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16435.486823] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16435.500054] BTRFS warning (device dm-11: state EA): direct IO failed ino 262 rw 0,0 sector 0x12d708 len 28672 err no 10
[16435.525928] BTRFS warning (device dm-11: state EA): direct IO failed ino 404 rw 0,0 sector 0x128b00 len 28672 err no 10
[16435.527853] BTRFS warning (device dm-11: state EA): direct IO failed ino 401 rw 0,0 sector 0x9388 len 4096 err no 10
[16435.528887] BTRFS warning (device dm-11: state EA): direct IO failed ino 401 rw 0,0 sector 0x12d420 len 53248 err no 10
[16436.048609] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16436.048617] BTRFS info (device dm-11): turning on async discard
[16436.048619] BTRFS info (device dm-11): disk space caching is enabled
[16436.086289] BTRFS: error (device dm-11: state A) in do_free_extent_accounting:2848: errno=-5 IO failure
[16436.087209] BTRFS info (device dm-11: state EA): forced readonly
[16436.087228] BTRFS: error (device dm-11: state EA) in btrfs_run_delayed_refs:2141: errno=-5 IO failure
[16436.089408] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16436.090492] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16436.090497] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16436.589785] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16436.589795] BTRFS info (device dm-11): turning on async discard
[16436.589797] BTRFS info (device dm-11): disk space caching is enabled
[16438.623806] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16438.623813] btrfs_dev_stat_inc_and_print: 47 callbacks suppressed
[16438.623815] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[16438.623826] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16438.623829] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 2, rd 0, flush 0, corrupt 0, gen 0
[16438.623839] BTRFS error (device dm-11): error writing primary super block to device 1
[16438.623841] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16438.624516] BTRFS info (device dm-11: state E): forced readonly
[16438.624527] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16438.624531] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16438.625084] BTRFS: error (device dm-11: state EA) in btrfs_sync_log:3192: errno=-5 IO failure
[16438.627311] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 3, rd 0, flush 0, corrupt 0, gen 0
[16438.628136] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 4, rd 0, flush 0, corrupt 0, gen 0
[16438.628565] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 5, rd 0, flush 0, corrupt 0, gen 0
[16438.628603] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 6, rd 0, flush 0, corrupt 0, gen 0
[16438.628630] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 7, rd 0, flush 0, corrupt 0, gen 0
[16438.628736] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 8, rd 0, flush 0, corrupt 0, gen 0
[16438.628845] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 9, rd 0, flush 0, corrupt 0, gen 0
[16438.628895] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 10, rd 0, flush 0, corrupt 0, gen 0
[16438.639328] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16438.653541] BTRFS warning (device dm-11: state EA): direct IO failed ino 389 rw 0,0 sector 0x12f698 len 32768 err no 10
[16438.656928] BTRFS warning (device dm-11: state EA): direct IO failed ino 472 rw 0,0 sector 0x130948 len 28672 err no 10
[16438.658944] BTRFS warning (device dm-11: state EA): direct IO failed ino 510 rw 0,0 sector 0x13d9f0 len 65536 err no 10
[16439.168848] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16439.168857] BTRFS info (device dm-11): turning on async discard
[16439.168859] BTRFS info (device dm-11): disk space caching is enabled
[16439.172845] BTRFS info (device dm-11): start tree-log replay
[16440.397358] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16440.397388] BTRFS error (device dm-11): error writing primary super block to device 1
[16440.397415] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16440.399064] BTRFS info (device dm-11: state E): forced readonly
[16440.399623] BTRFS: error (device dm-11: state EA) in btrfs_sync_log:3203: errno=-5 IO failure
[16440.402868] BTRFS warning (device dm-11: state EA): direct IO failed ino 553 rw 0,0 sector 0x147f68 len 28672 err no 10
[16440.403379] BTRFS warning (device dm-11: state EA): direct IO failed ino 553 rw 0,0 sector 0x147f50 len 65536 err no 10
[16440.406443] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16440.406448] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16440.407323] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16440.408650] BTRFS warning (device dm-11: state EA): direct IO failed ino 524 rw 0,0 sector 0x1419c0 len 45056 err no 10
[16440.409211] BTRFS warning (device dm-11: state EA): direct IO failed ino 524 rw 0,0 sector 0x140c60 len 8192 err no 10
[16440.422098] BTRFS warning (device dm-11: state EA): direct IO failed ino 257 rw 0,0 sector 0x6a80 len 4096 err no 10
[16440.422113] BTRFS warning (device dm-11: state EA): direct IO failed ino 257 rw 0,0 sector 0x71d8 len 4096 err no 10
[16440.423082] BTRFS warning (device dm-11: state EA): direct IO failed ino 553 rw 0,0 sector 0x1458c8 len 36864 err no 10
[16440.423105] BTRFS warning (device dm-11: state EA): direct IO failed ino 553 rw 0,0 sector 0x114c28 len 4096 err no 10
[16440.423185] BTRFS warning (device dm-11: state EA): direct IO failed ino 524 rw 0,0 sector 0x13f470 len 65536 err no 10
[16440.423753] BTRFS warning (device dm-11: state EA): direct IO failed ino 393 rw 0,0 sector 0x140360 len 8192 err no 10
[16440.424346] BTRFS warning (device dm-11: state EA): direct IO failed ino 524 rw 0,0 sector 0x146bf8 len 24576 err no 10
[16440.426723] BTRFS warning (device dm-11: state EA): direct IO failed ino 518 rw 0,0 sector 0x140fe8 len 24576 err no 10
[16440.426912] BTRFS warning (device dm-11: state EA): direct IO failed ino 518 rw 0,0 sector 0x1410d0 len 86016 err no 10
[16440.443683] BTRFS warning (device dm-11: state EA): direct IO failed ino 524 rw 0,0 sector 0x13f530 len 12288 err no 10
[16440.984599] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16440.984607] BTRFS info (device dm-11): turning on async discard
[16440.984609] BTRFS info (device dm-11): disk space caching is enabled
[16441.010548] ------------[ cut here ]------------
[16441.010623] WARNING: CPU: 0 PID: 2240173 at fs/btrfs/discard.c:604 btrfs_discard_update_discardable+0x98/0xb0
[16441.010637] 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 iTCO_vendor_support intel_rapl_msr snd_hda_codec_generic snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hwdep snd_hda_core joydev snd_pcm intel_rapl_common i2c_i801 snd_timer i2c_smbus snd soundcore lpc_ich virtio_balloon zram ip_tables xfs crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel serio_raw qemu_fw_cfg
[16441.010704] CPU: 0 PID: 2240173 Comm: kworker/u4:9 Not tainted 5.19.0-rc8+ #797
[16441.010707] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[16441.010711] Workqueue: btrfs-cache btrfs_work_helper
[16441.010722] RIP: 0010:btrfs_discard_update_discardable+0x98/0xb0
[16441.010724] 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
[16441.010727] RSP: 0018:ffffb06601eb3ad0 EFLAGS: 00010246
[16441.010730] RAX: 0000000000000000 RBX: ffff9bad541b2000 RCX: 0000000000000001
[16441.010731] RDX: 0000000000000000 RSI: ffffffffaf807c5b RDI: ffffffffaf8a831e
[16441.010733] RBP: ffff9bad53f28000 R08: 0000000000000000 R09: 0000000080270024
[16441.010735] R10: ffff9bac76a8fde8 R11: 000000000082d700 R12: ffff9bad42990010
[16441.010736] R13: ffff9bad437ebca0 R14: ffff9bad53f28000 R15: ffff9bad53473b60
[16441.010738] FS: 0000000000000000(0000) GS:ffff9badbbc00000(0000) knlGS:0000000000000000
[16441.010740] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[16441.010742] CR2: 00007fcc38da7000 CR3: 0000000106304002 CR4: 0000000000370ef0
[16441.010747] Call Trace:
[16441.010749]
[16441.010754] __btrfs_remove_free_space_cache+0x27/0x30
[16441.010760] load_free_space_cache+0xad2/0xaf0
[16441.010802] caching_thread+0x40b/0x650
[16441.010810] ? lock_release+0x137/0x2d0
[16441.010821] btrfs_work_helper+0xf2/0x3e0
[16441.010824] ? lock_is_held_type+0xe2/0x140
[16441.010835] process_one_work+0x271/0x590
[16441.010848] ? process_one_work+0x590/0x590
[16441.010851] worker_thread+0x52/0x3b0
[16441.010856] ? process_one_work+0x590/0x590
[16441.010859] kthread+0xf0/0x120
[16441.010861] ? kthread_complete_and_exit+0x20/0x20
[16441.010866] ret_from_fork+0x1f/0x30
[16441.010882]
[16441.010886] irq event stamp: 26927
[16441.010887] hardirqs last enabled at (26933): [] __up_console_sem+0x5e/0x70
[16441.010894] hardirqs last disabled at (26938): [] __up_console_sem+0x43/0x70
[16441.010896] softirqs last enabled at (25666): [] __irq_exit_rcu+0xeb/0x160
[16441.010899] softirqs last disabled at (25659): [] __irq_exit_rcu+0xeb/0x160
[16441.010902] ---[ end trace 0000000000000000 ]---
[16441.010905] BTRFS warning (device dm-11): block group 298844160 has wrong amount of free space
[16441.010922] BTRFS warning (device dm-11): failed to load free space cache for block group 298844160, rebuilding it now
[16442.086714] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16442.086729] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16442.086739] BTRFS error (device dm-11): error writing primary super block to device 1
[16442.086742] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16442.087621] BTRFS info (device dm-11: state E): forced readonly
[16442.087630] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16442.087633] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16442.089162] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16442.089168] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16442.089610] BTRFS: error (device dm-11: state EA) in btrfs_sync_log:3192: errno=-5 IO failure
[16442.094784] BTRFS warning (device dm-11: state EA): direct IO failed ino 601 rw 0,0 sector 0x14eed0 len 40960 err no 10
[16442.099188] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16442.111280] BTRFS warning (device dm-11: state EA): direct IO failed ino 572 rw 0,0 sector 0x14ef90 len 49152 err no 10
[16442.116258] BTRFS warning (device dm-11: state EA): direct IO failed ino 585 rw 0,0 sector 0x14eca8 len 32768 err no 10
[16442.117575] BTRFS warning (device dm-11: state EA): direct IO failed ino 264 rw 0,0 sector 0x14f500 len 36864 err no 10
[16442.130491] BTRFS warning (device dm-11: state EA): direct IO failed ino 574 rw 0,0 sector 0x149498 len 73728 err no 10
[16442.131718] BTRFS warning (device dm-11: state EA): direct IO failed ino 264 rw 0,0 sector 0x14f4b8 len 45056 err no 10
[16442.133686] BTRFS warning (device dm-11: state EA): direct IO failed ino 572 rw 0,0 sector 0x14a530 len 32768 err no 10
[16442.135748] BTRFS warning (device dm-11: state EA): direct IO failed ino 572 rw 0,0 sector 0x149cb8 len 45056 err no 10
[16442.136525] BTRFS warning (device dm-11: state EA): direct IO failed ino 572 rw 0,0 sector 0x14ec20 len 24576 err no 10
[16442.676474] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16442.676483] BTRFS info (device dm-11): turning on async discard
[16442.676485] BTRFS info (device dm-11): disk space caching is enabled
[16442.680138] BTRFS info (device dm-11): start tree-log replay
[16444.783870] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16444.783880] btrfs_dev_stat_inc_and_print: 54 callbacks suppressed
[16444.783884] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[16444.783902] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16444.783907] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 2, rd 0, flush 0, corrupt 0, gen 0
[16444.783922] BTRFS error (device dm-11): error writing primary super block to device 1
[16444.783926] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16444.785566] BTRFS info (device dm-11: state E): forced readonly
[16444.785597] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16444.785605] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16444.792104] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 2, rd 1, flush 0, corrupt 0, gen 0
[16444.792145] BTRFS warning (device dm-11: state EA): direct IO failed ino 662 rw 0,0 sector 0xa0b8 len 8192 err no 10
[16444.794039] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 2, rd 2, flush 0, corrupt 0, gen 0
[16444.795287] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 3, rd 2, flush 0, corrupt 0, gen 0
[16444.796450] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 4, rd 2, flush 0, corrupt 0, gen 0
[16444.796474] BTRFS warning (device dm-11: state EA): direct IO failed ino 662 rw 0,0 sector 0xa0c0 len 4096 err no 10
[16444.796480] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 5, rd 2, flush 0, corrupt 0, gen 0
[16444.796758] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 6, rd 2, flush 0, corrupt 0, gen 0
[16444.796959] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 7, rd 2, flush 0, corrupt 0, gen 0
[16444.796979] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 8, rd 2, flush 0, corrupt 0, gen 0
[16444.806723] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16444.825233] BTRFS warning (device dm-11: state EA): direct IO failed ino 610 rw 0,0 sector 0x157550 len 20480 err no 10
[16444.850060] BTRFS warning (device dm-11: state EA): direct IO failed ino 610 rw 0,0 sector 0x1541a0 len 61440 err no 10
[16444.850981] BTRFS warning (device dm-11: state EA): direct IO failed ino 632 rw 0,0 sector 0x157b10 len 4096 err no 10
[16444.851403] BTRFS warning (device dm-11: state EA): direct IO failed ino 610 rw 0,0 sector 0x112a38 len 49152 err no 10
[16444.852839] BTRFS warning (device dm-11: state EA): direct IO failed ino 662 rw 0,0 sector 0xa0a8 len 16384 err no 10
[16444.856829] BTRFS warning (device dm-11: state EA): direct IO failed ino 631 rw 0,0 sector 0x153d90 len 32768 err no 10
[16444.857567] BTRFS warning (device dm-11: state EA): direct IO failed ino 674 rw 0,0 sector 0x1588d0 len 49152 err no 10
[16445.369345] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16445.369362] BTRFS info (device dm-11): turning on async discard
[16445.369364] BTRFS info (device dm-11): disk space caching is enabled
[16447.446049] BTRFS: error (device dm-11) in btrfs_commit_transaction:2496: errno=-5 IO failure (Error while writing out transaction)
[16447.446718] BTRFS info (device dm-11: state E): forced readonly
[16447.446723] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16447.446726] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16447.455803] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16448.011923] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16448.011932] BTRFS info (device dm-11): turning on async discard
[16448.011934] BTRFS info (device dm-11): disk space caching is enabled
[16448.045256] BTRFS warning (device dm-11): direct IO failed ino 822 rw 1,34817 sector 0x312cc0 len 24576 err no 10
[16448.048372] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16448.057523] BTRFS: error (device dm-11: state A) in do_free_extent_accounting:2848: errno=-5 IO failure
[16448.058123] BTRFS info (device dm-11: state EA): forced readonly
[16448.058129] BTRFS: error (device dm-11: state EA) in btrfs_run_delayed_refs:2141: errno=-5 IO failure
[16448.555329] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16448.555338] BTRFS info (device dm-11): turning on async discard
[16448.555340] BTRFS info (device dm-11): disk space caching is enabled
[16448.591973] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16448.599134] BTRFS warning (device dm-11): direct IO failed ino 815 rw 1,34817 sector 0x312b58 len 65536 err no 10
[16448.603475] BTRFS warning (device dm-11): direct IO failed ino 815 rw 1,34817 sector 0x312b58 len 61440 err no 10
[16448.604299] BTRFS warning (device dm-11): direct IO failed ino 815 rw 1,34817 sector 0x7ab0 len 8192 err no 10
[16448.607609] BTRFS warning (device dm-11): direct IO failed ino 815 rw 1,34817 sector 0x312fc0 len 65536 err no 10
[16448.641903] BTRFS: error (device dm-11: state A) in __btrfs_free_extent:3078: errno=-5 IO failure
[16448.642748] BTRFS info (device dm-11: state EA): forced readonly
[16448.642770] BTRFS: error (device dm-11: state EA) in btrfs_run_delayed_refs:2141: errno=-5 IO failure
[16449.059675] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16449.059684] BTRFS info (device dm-11): turning on async discard
[16449.059685] BTRFS info (device dm-11): disk space caching is enabled
[16451.117270] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16451.117277] btrfs_dev_stat_inc_and_print: 127 callbacks suppressed
[16451.117278] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[16451.117296] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16451.117299] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 2, rd 0, flush 0, corrupt 0, gen 0
[16451.117304] BTRFS error (device dm-11): error writing primary super block to device 1
[16451.117309] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16451.117894] BTRFS info (device dm-11: state E): forced readonly
[16451.117900] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16451.118701] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16451.120841] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 2, rd 1, flush 0, corrupt 0, gen 0
[16451.120859] BTRFS warning (device dm-11: state EA): direct IO failed ino 257 rw 0,0 sector 0x17fa88 len 24576 err no 10
[16451.123597] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16451.123606] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16451.124130] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 3, rd 1, flush 0, corrupt 0, gen 0
[16451.124809] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 4, rd 1, flush 0, corrupt 0, gen 0
[16451.125297] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 5, rd 1, flush 0, corrupt 0, gen 0
[16451.125436] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 6, rd 1, flush 0, corrupt 0, gen 0
[16451.125466] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 7, rd 1, flush 0, corrupt 0, gen 0
[16451.125476] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 8, rd 1, flush 0, corrupt 0, gen 0
[16451.125527] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 9, rd 1, flush 0, corrupt 0, gen 0
[16451.130060] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16451.151073] BTRFS warning (device dm-11: state EA): direct IO failed ino 257 rw 0,0 sector 0x17fb00 len 53248 err no 10
[16451.163760] BTRFS warning (device dm-11: state EA): direct IO failed ino 259 rw 0,0 sector 0x181140 len 12288 err no 10
[16451.163770] BTRFS warning (device dm-11: state EA): direct IO failed ino 259 rw 0,0 sector 0x180868 len 4096 err no 10
[16451.163786] BTRFS warning (device dm-11: state EA): direct IO failed ino 262 rw 0,0 sector 0x17eb18 len 28672 err no 10
[16451.165536] BTRFS warning (device dm-11: state EA): direct IO failed ino 259 rw 0,0 sector 0x17f5a8 len 4096 err no 10
[16451.168603] BTRFS warning (device dm-11: state EA): direct IO failed ino 818 rw 0,0 sector 0x176bc0 len 4096 err no 10
[16451.716952] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16451.716961] BTRFS info (device dm-11): turning on async discard
[16451.716962] BTRFS info (device dm-11): disk space caching is enabled
[16451.721197] BTRFS info (device dm-11): start tree-log replay
[16451.729173] ------------[ cut here ]------------
[16451.729239] WARNING: CPU: 0 PID: 1704138 at fs/btrfs/discard.c:604 btrfs_discard_update_discardable+0x98/0xb0
[16451.729246] 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 iTCO_vendor_support intel_rapl_msr snd_hda_codec_generic snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hwdep snd_hda_core joydev snd_pcm intel_rapl_common i2c_i801 snd_timer i2c_smbus snd soundcore lpc_ich virtio_balloon zram ip_tables xfs crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel serio_raw qemu_fw_cfg
[16451.729322] CPU: 0 PID: 1704138 Comm: kworker/u4:6 Tainted: G W 5.19.0-rc8+ #797
[16451.729325] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[16451.729326] Workqueue: btrfs-cache btrfs_work_helper
[16451.729331] RIP: 0010:btrfs_discard_update_discardable+0x98/0xb0
[16451.729334] 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
[16451.729336] RSP: 0018:ffffb0660173bad0 EFLAGS: 00010246
[16451.729339] RAX: 0000000000000000 RBX: ffff9bad541b2800 RCX: 0000000000000001
[16451.729341] RDX: 0000000000000000 RSI: ffffffffaf807c5b RDI: ffffffffaf8a831e
[16451.729343] RBP: ffff9bad6a930000 R08: 0000000000000000 R09: 0000000000001000
[16451.729344] R10: 000000000003e842 R11: 0000000000831000 R12: ffff9bad42995010
[16451.729346] R13: ffff9bad42c704c0 R14: ffff9bad6a930000 R15: ffff9bad53473bd0
[16451.729348] FS: 0000000000000000(0000) GS:ffff9badbbc00000(0000) knlGS:0000000000000000
[16451.729350] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[16451.729351] CR2: 00007f763be04e08 CR3: 000000010086e002 CR4: 0000000000370ef0
[16451.729355] Call Trace:
[16451.729357]
[16451.729362] __btrfs_remove_free_space_cache+0x27/0x30
[16451.729366] load_free_space_cache+0xad2/0xaf0
[16451.729405] caching_thread+0x40b/0x650
[16451.729413] ? lock_release+0x137/0x2d0
[16451.729421] btrfs_work_helper+0xf2/0x3e0
[16451.729423] ? lock_is_held_type+0xe2/0x140
[16451.729431] process_one_work+0x271/0x590
[16451.729440] worker_thread+0x52/0x3b0
[16451.729445] ? process_one_work+0x590/0x590
[16451.729448] kthread+0xf0/0x120
[16451.729450] ? kthread_complete_and_exit+0x20/0x20
[16451.729455] ret_from_fork+0x1f/0x30
[16451.729468]
[16451.729469] irq event stamp: 24341871
[16451.729471] hardirqs last enabled at (24341877): [] __up_console_sem+0x5e/0x70
[16451.729474] hardirqs last disabled at (24341882): [] __up_console_sem+0x43/0x70
[16451.729476] softirqs last enabled at (24341314): [] __irq_exit_rcu+0xeb/0x160
[16451.729479] softirqs last disabled at (24341307): [] __irq_exit_rcu+0xeb/0x160
[16451.729482] ---[ end trace 0000000000000000 ]---
[16451.729485] BTRFS warning (device dm-11): block group 298844160 has wrong amount of free space
[16451.729499] BTRFS warning (device dm-11): failed to load free space cache for block group 298844160, rebuilding it now
[16451.946733] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16451.951116] BTRFS warning (device dm-11): direct IO failed ino 900 rw 1,34817 sector 0x180e50 len 12288 err no 10
[16451.955162] BTRFS warning (device dm-11): direct IO failed ino 610 rw 1,34817 sector 0x180e50 len 36864 err no 10
[16451.956070] BTRFS warning (device dm-11): direct IO failed ino 610 rw 1,34817 sector 0x180e50 len 32768 err no 10
[16451.956339] BTRFS warning (device dm-11): direct IO failed ino 610 rw 1,34817 sector 0x180e50 len 102400 err no 10
[16451.956843] BTRFS warning (device dm-11): direct IO failed ino 900 rw 1,34817 sector 0x180e50 len 32768 err no 10
[16451.959325] BTRFS: error (device dm-11: state A) in do_free_extent_accounting:2848: errno=-5 IO failure
[16451.960008] BTRFS info (device dm-11: state EA): forced readonly
[16451.960060] BTRFS: error (device dm-11: state EA) in btrfs_run_delayed_refs:2141: errno=-5 IO failure
[16452.495152] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16452.495160] BTRFS info (device dm-11): turning on async discard
[16452.495162] BTRFS info (device dm-11): disk space caching is enabled
[16453.535018] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16453.535036] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16453.535053] BTRFS error (device dm-11): error writing primary super block to device 1
[16453.535060] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16453.535851] BTRFS info (device dm-11: state E): forced readonly
[16453.535858] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16453.535863] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16453.543083] BTRFS warning (device dm-11: state EA): direct IO failed ino 898 rw 0,0 sector 0x188fd0 len 81920 err no 10
[16453.544145] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16453.544150] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16453.544839] BTRFS warning (device dm-11: state EA): direct IO failed ino 898 rw 0,0 sector 0x183b20 len 49152 err no 10
[16453.545609] BTRFS warning (device dm-11: state EA): direct IO failed ino 906 rw 0,0 sector 0x152b98 len 4096 err no 10
[16453.546682] BTRFS warning (device dm-11: state EA): direct IO failed ino 258 rw 0,0 sector 0x18a070 len 4096 err no 10
[16453.547964] BTRFS warning (device dm-11: state EA): direct IO failed ino 260 rw 0,0 sector 0x189c00 len 8192 err no 10
[16453.548142] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16453.548234] BTRFS warning (device dm-11: state EA): direct IO failed ino 935 rw 0,0 sector 0x186198 len 36864 err no 10
[16453.548814] BTRFS warning (device dm-11: state EA): direct IO failed ino 943 rw 0,0 sector 0x189910 len 20480 err no 10
[16453.551382] BTRFS warning (device dm-11: state EA): direct IO failed ino 260 rw 0,0 sector 0x188460 len 57344 err no 10
[16453.552351] BTRFS warning (device dm-11: state EA): direct IO failed ino 935 rw 0,0 sector 0x189a50 len 98304 err no 10
[16453.552409] BTRFS warning (device dm-11: state EA): direct IO failed ino 263 rw 0,0 sector 0x189108 len 45056 err no 10
[16453.553738] BTRFS warning (device dm-11: state EA): direct IO failed ino 257 rw 0,0 sector 0x18a738 len 36864 err no 10
[16453.561260] BTRFS warning (device dm-11: state EA): direct IO failed ino 257 rw 0,0 sector 0x18a7e0 len 8192 err no 10
[16453.561651] BTRFS warning (device dm-11: state EA): direct IO failed ino 971 rw 0,0 sector 0x18a250 len 61440 err no 10
[16453.579866] BTRFS warning (device dm-11: state EA): direct IO failed ino 898 rw 0,0 sector 0x1879d8 len 49152 err no 10
[16453.580581] BTRFS warning (device dm-11: state EA): direct IO failed ino 948 rw 0,0 sector 0x189a00 len 16384 err no 10
[16453.581865] BTRFS warning (device dm-11: state EA): direct IO failed ino 898 rw 0,0 sector 0x185598 len 4096 err no 10
[16453.584016] BTRFS warning (device dm-11: state EA): direct IO failed ino 909 rw 0,0 sector 0x187c10 len 16384 err no 10
[16454.107043] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16454.107051] BTRFS info (device dm-11): turning on async discard
[16454.107053] BTRFS info (device dm-11): disk space caching is enabled
[16454.129375] ------------[ cut here ]------------
[16454.129443] WARNING: CPU: 0 PID: 2170455 at fs/btrfs/discard.c:604 btrfs_discard_update_discardable+0x98/0xb0
[16454.129450] 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 iTCO_vendor_support intel_rapl_msr snd_hda_codec_generic snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hwdep snd_hda_core joydev snd_pcm intel_rapl_common i2c_i801 snd_timer i2c_smbus snd soundcore lpc_ich virtio_balloon zram ip_tables xfs crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel serio_raw qemu_fw_cfg
[16454.129516] CPU: 0 PID: 2170455 Comm: kworker/u4:1 Tainted: G W 5.19.0-rc8+ #797
[16454.129518] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[16454.129520] Workqueue: btrfs-cache btrfs_work_helper
[16454.129525] RIP: 0010:btrfs_discard_update_discardable+0x98/0xb0
[16454.129528] 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
[16454.129531] RSP: 0018:ffffb06606b1bad0 EFLAGS: 00010246
[16454.129533] RAX: 0000000000000000 RBX: ffff9bad541b3400 RCX: 0000000000000001
[16454.129535] RDX: 0000000000000000 RSI: ffffffffaf807c5b RDI: ffffffffaf8a831e
[16454.129537] RBP: ffff9bad56840000 R08: 0000000000000000 R09: 0000000000001000
[16454.129538] R10: ffff9bac4fd6c970 R11: 0000000000831600 R12: ffff9bad42990810
[16454.129540] R13: ffff9bad555eeb30 R14: ffff9bad56840000 R15: ffff9bad51d6ef50
[16454.129542] FS: 0000000000000000(0000) GS:ffff9badbbc00000(0000) knlGS:0000000000000000
[16454.129543] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[16454.129545] CR2: 0000000001849000 CR3: 0000000105f6a004 CR4: 0000000000370ef0
[16454.129550] Call Trace:
[16454.129553]
[16454.129558] __btrfs_remove_free_space_cache+0x27/0x30
[16454.129562] load_free_space_cache+0xad2/0xaf0
[16454.129602] caching_thread+0x40b/0x650
[16454.129611] ? lock_release+0x137/0x2d0
[16454.129618] btrfs_work_helper+0xf2/0x3e0
[16454.129621] ? lock_is_held_type+0xe2/0x140
[16454.129628] process_one_work+0x271/0x590
[16454.129638] worker_thread+0x52/0x3b0
[16454.129643] ? process_one_work+0x590/0x590
[16454.129646] kthread+0xf0/0x120
[16454.129649] ? kthread_complete_and_exit+0x20/0x20
[16454.129653] ret_from_fork+0x1f/0x30
[16454.129667]
[16454.129668] irq event stamp: 3476899
[16454.129670] hardirqs last enabled at (3476905): [] __up_console_sem+0x5e/0x70
[16454.129673] hardirqs last disabled at (3476910): [] __up_console_sem+0x43/0x70
[16454.129675] softirqs last enabled at (3476272): [] __irq_exit_rcu+0xeb/0x160
[16454.129678] softirqs last disabled at (3476267): [] __irq_exit_rcu+0xeb/0x160
[16454.129680] ---[ end trace 0000000000000000 ]---
[16454.129683] BTRFS warning (device dm-11): block group 298844160 has wrong amount of free space
[16454.129697] BTRFS warning (device dm-11): failed to load free space cache for block group 298844160, rebuilding it now
[16455.134475] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16455.134493] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16455.134504] BTRFS error (device dm-11): error writing primary super block to device 1
[16455.134509] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16455.135197] BTRFS info (device dm-11: state E): forced readonly
[16455.135202] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16455.135211] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16455.138003] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16455.138008] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16455.138961] BTRFS warning (device dm-11: state EA): direct IO failed ino 973 rw 0,0 sector 0x18bfc0 len 4096 err no 10
[16455.141797] BTRFS warning (device dm-11: state EA): direct IO failed ino 257 rw 0,0 sector 0x18bf60 len 4096 err no 10
[16455.144768] BTRFS warning (device dm-11: state EA): direct IO failed ino 572 rw 0,0 sector 0x14f150 len 77824 err no 10
[16455.144803] BTRFS warning (device dm-11: state EA): direct IO failed ino 572 rw 0,0 sector 0x13af88 len 4096 err no 10
[16455.148202] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16455.158574] BTRFS warning (device dm-11: state EA): direct IO failed ino 979 rw 0,0 sector 0x6a48 len 8192 err no 10
[16455.160400] BTRFS warning (device dm-11: state EA): direct IO failed ino 266 rw 0,0 sector 0x18d788 len 40960 err no 10
[16455.693476] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16455.693485] BTRFS info (device dm-11): turning on async discard
[16455.693487] BTRFS info (device dm-11): disk space caching is enabled
[16455.697903] BTRFS info (device dm-11): start tree-log replay
[16455.705122] ------------[ cut here ]------------
[16455.705189] WARNING: CPU: 0 PID: 2194007 at fs/btrfs/discard.c:604 btrfs_discard_update_discardable+0x98/0xb0
[16455.705196] 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 iTCO_vendor_support intel_rapl_msr snd_hda_codec_generic snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hwdep snd_hda_core joydev snd_pcm intel_rapl_common i2c_i801 snd_timer i2c_smbus snd soundcore lpc_ich virtio_balloon zram ip_tables xfs crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel serio_raw qemu_fw_cfg
[16455.705268] CPU: 0 PID: 2194007 Comm: kworker/u4:4 Tainted: G W 5.19.0-rc8+ #797
[16455.705271] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[16455.705273] Workqueue: btrfs-cache btrfs_work_helper
[16455.705278] RIP: 0010:btrfs_discard_update_discardable+0x98/0xb0
[16455.705281] 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
[16455.705283] RSP: 0018:ffffb0660192bad0 EFLAGS: 00010246
[16455.705286] RAX: 0000000000000000 RBX: ffff9bad4ea52c00 RCX: 0000000000000001
[16455.705288] RDX: 0000000000000000 RSI: ffffffffaf807c5b RDI: ffffffffaf8a831e
[16455.705290] RBP: ffff9bad4e99c000 R08: 0000000000000000 R09: 0000000000001000
[16455.705291] R10: ffff9bac4762a490 R11: 0000000000831600 R12: ffff9bad52d31810
[16455.705293] R13: ffff9bad44478e10 R14: ffff9bad4e99c000 R15: ffff9bad53473ee0
[16455.705295] FS: 0000000000000000(0000) GS:ffff9badbbc00000(0000) knlGS:0000000000000000
[16455.705296] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[16455.705298] CR2: 00007f190ee1f24e CR3: 000000010ebda004 CR4: 0000000000370ef0
[16455.705302] Call Trace:
[16455.705305]
[16455.705311] __btrfs_remove_free_space_cache+0x27/0x30
[16455.705315] load_free_space_cache+0xad2/0xaf0
[16455.705354] caching_thread+0x40b/0x650
[16455.705363] ? lock_release+0x137/0x2d0
[16455.705370] btrfs_work_helper+0xf2/0x3e0
[16455.705373] ? lock_is_held_type+0xe2/0x140
[16455.705380] process_one_work+0x271/0x590
[16455.705389] ? process_one_work+0x590/0x590
[16455.705392] worker_thread+0x52/0x3b0
[16455.705397] ? process_one_work+0x590/0x590
[16455.705400] kthread+0xf0/0x120
[16455.705402] ? kthread_complete_and_exit+0x20/0x20
[16455.705407] ret_from_fork+0x1f/0x30
[16455.705420]
[16455.705422] irq event stamp: 74171
[16455.705424] hardirqs last enabled at (74177): [] __up_console_sem+0x5e/0x70
[16455.705427] hardirqs last disabled at (74182): [] __up_console_sem+0x43/0x70
[16455.705429] softirqs last enabled at (73606): [] __irq_exit_rcu+0xeb/0x160
[16455.705432] softirqs last disabled at (73601): [] __irq_exit_rcu+0xeb/0x160
[16455.705435] ---[ end trace 0000000000000000 ]---
[16455.705438] BTRFS warning (device dm-11): block group 298844160 has wrong amount of free space
[16455.705452] BTRFS warning (device dm-11): failed to load free space cache for block group 298844160, rebuilding it now
[16455.796661] BTRFS warning (device dm-11): direct IO failed ino 1018 rw 1,34817 sector 0x190bc8 len 81920 err no 10
[16455.800909] BTRFS warning (device dm-11): direct IO failed ino 1018 rw 1,34817 sector 0x190bc8 len 65536 err no 10
[16455.803457] BTRFS warning (device dm-11): direct IO failed ino 1018 rw 1,34817 sector 0x8908 len 4096 err no 10
[16455.806410] BTRFS warning (device dm-11): direct IO failed ino 1017 rw 1,34817 sector 0x190bc8 len 65536 err no 10
[16455.808645] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16455.821882] BTRFS warning (device dm-11): direct IO failed ino 1017 rw 1,34817 sector 0x190bc8 len 24576 err no 10
[16455.832650] BTRFS: error (device dm-11: state A) in __btrfs_run_delayed_items:1182: errno=-5 IO failure
[16455.833363] BTRFS info (device dm-11: state EA): forced readonly
[16455.833368] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16455.833372] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16456.346812] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16456.346820] BTRFS info (device dm-11): turning on async discard
[16456.346822] BTRFS info (device dm-11): disk space caching is enabled
[16457.383446] btrfs_dev_stat_inc_and_print: 136 callbacks suppressed
[16457.383451] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[16457.383481] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16457.383484] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 2, rd 0, flush 0, corrupt 0, gen 0
[16457.383492] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16457.383495] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 3, rd 0, flush 0, corrupt 0, gen 0
[16457.384294] BTRFS error (device dm-11): error writing primary super block to device 1
[16457.384299] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16457.385038] BTRFS info (device dm-11: state E): forced readonly
[16457.385064] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16457.385067] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16457.387796] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 3, rd 1, flush 0, corrupt 0, gen 0
[16457.393909] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 3, rd 2, flush 0, corrupt 0, gen 0
[16457.394364] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16457.394491] BTRFS warning (device dm-11: state EA): direct IO failed ino 1062 rw 0,0 sector 0x1963f0 len 8192 err no 10
[16457.395778] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 4, rd 2, flush 0, corrupt 0, gen 0
[16457.396407] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 5, rd 2, flush 0, corrupt 0, gen 0
[16457.396580] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 6, rd 2, flush 0, corrupt 0, gen 0
[16457.396594] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 7, rd 2, flush 0, corrupt 0, gen 0
[16457.397415] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 7, rd 3, flush 0, corrupt 0, gen 0
[16457.413846] BTRFS warning (device dm-11: state EA): direct IO failed ino 1024 rw 0,0 sector 0x9868 len 8192 err no 10
[16457.439522] BTRFS warning (device dm-11: state EA): direct IO failed ino 1017 rw 0,0 sector 0x9828 len 24576 err no 10
[16457.439831] BTRFS warning (device dm-11: state EA): direct IO failed ino 1049 rw 0,0 sector 0x198928 len 12288 err no 10
[16457.973561] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16457.973569] BTRFS info (device dm-11): turning on async discard
[16457.973571] BTRFS info (device dm-11): disk space caching is enabled
[16457.977696] BTRFS info (device dm-11): start tree-log replay
[16458.118836] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16458.154604] BTRFS: error (device dm-11: state A) in __btrfs_run_delayed_items:1182: errno=-5 IO failure
[16458.155127] BTRFS info (device dm-11: state EA): forced readonly
[16458.155131] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16458.155134] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16458.656382] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16458.656391] BTRFS info (device dm-11): turning on async discard
[16458.656393] BTRFS info (device dm-11): disk space caching is enabled
[16460.917730] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16460.917781] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16460.917863] BTRFS error (device dm-11): error writing primary super block to device 1
[16460.917876] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16460.920172] BTRFS info (device dm-11: state E): forced readonly
[16460.920200] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16460.920208] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16460.924485] BTRFS: error (device dm-11: state EA) in btrfs_sync_log:3192: errno=-5 IO failure
[16460.931166] BTRFS warning (device dm-11: state EA): direct IO failed ino 1108 rw 0,0 sector 0x1a1d38 len 86016 err no 10
[16460.931566] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16460.931609] BTRFS warning (device dm-11: state EA): direct IO failed ino 1108 rw 0,0 sector 0x1a1dd8 len 4096 err no 10
[16460.931869] BTRFS warning (device dm-11: state EA): direct IO failed ino 1158 rw 0,0 sector 0x1a5688 len 53248 err no 10
[16460.932702] BTRFS warning (device dm-11: state EA): direct IO failed ino 1136 rw 0,0 sector 0x1a3ed8 len 16384 err no 10
[16460.945311] BTRFS warning (device dm-11: state EA): direct IO failed ino 1153 rw 0,0 sector 0x1a6ad0 len 16384 err no 10
[16460.945494] BTRFS warning (device dm-11: state EA): direct IO failed ino 258 rw 0,0 sector 0x1a8c98 len 8192 err no 10
[16460.946489] BTRFS warning (device dm-11: state EA): direct IO failed ino 258 rw 0,0 sector 0x1a9f88 len 36864 err no 10
[16460.968042] BTRFS warning (device dm-11: state EA): direct IO failed ino 262 rw 0,0 sector 0x1a1f58 len 40960 err no 10
[16461.499469] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16461.499479] BTRFS info (device dm-11): turning on async discard
[16461.499480] BTRFS info (device dm-11): disk space caching is enabled
[16461.551605] BTRFS: error (device dm-11: state A) in do_free_extent_accounting:2848: errno=-5 IO failure
[16461.552364] BTRFS info (device dm-11: state EA): forced readonly
[16461.552370] BTRFS: error (device dm-11: state EA) in btrfs_run_delayed_refs:2141: errno=-5 IO failure
[16461.553003] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16461.553007] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16461.556016] BTRFS warning (device dm-11: state EA): direct IO failed ino 1177 rw 0,0 sector 0x9748 len 8192 err no 10
[16461.558013] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16461.604466] BTRFS warning (device dm-11: state EA): direct IO failed ino 1177 rw 0,0 sector 0x9748 len 24576 err no 10
[16462.079778] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16462.079786] BTRFS info (device dm-11): turning on async discard
[16462.079788] BTRFS info (device dm-11): disk space caching is enabled
[16463.178305] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16463.178317] btrfs_dev_stat_inc_and_print: 95 callbacks suppressed
[16463.178320] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[16463.178352] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16463.178361] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 2, rd 0, flush 0, corrupt 0, gen 0
[16463.178405] BTRFS error (device dm-11): error writing primary super block to device 1
[16463.178414] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16463.180419] BTRFS info (device dm-11: state E): forced readonly
[16463.180434] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16463.180457] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16463.184351] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16463.184357] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16463.186702] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 3, rd 0, flush 0, corrupt 0, gen 0
[16463.186880] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 4, rd 0, flush 0, corrupt 0, gen 0
[16463.186948] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 5, rd 0, flush 0, corrupt 0, gen 0
[16463.187248] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 6, rd 0, flush 0, corrupt 0, gen 0
[16463.187641] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 7, rd 0, flush 0, corrupt 0, gen 0
[16463.187883] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 8, rd 0, flush 0, corrupt 0, gen 0
[16463.187924] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 9, rd 0, flush 0, corrupt 0, gen 0
[16463.188013] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 10, rd 0, flush 0, corrupt 0, gen 0
[16463.189561] BTRFS warning (device dm-11: state EA): direct IO failed ino 260 rw 0,0 sector 0x1ae978 len 77824 err no 10
[16463.190543] BTRFS warning (device dm-11: state EA): direct IO failed ino 260 rw 0,0 sector 0x1ae9e8 len 32768 err no 10
[16463.198680] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16463.230354] BTRFS warning (device dm-11: state EA): direct IO failed ino 261 rw 0,0 sector 0x1b1cf8 len 4096 err no 10
[16463.739190] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16463.739198] BTRFS info (device dm-11): turning on async discard
[16463.739200] BTRFS info (device dm-11): disk space caching is enabled
[16464.796176] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16464.796198] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16464.796229] BTRFS error (device dm-11): error writing primary super block to device 1
[16464.796235] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16464.797139] BTRFS info (device dm-11: state E): forced readonly
[16464.797144] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16464.797311] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16464.800862] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16464.800868] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16464.807453] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16464.812735] BTRFS warning (device dm-11: state EA): direct IO failed ino 1218 rw 0,0 sector 0x1b1490 len 8192 err no 10
[16464.827233] BTRFS warning (device dm-11: state EA): direct IO failed ino 258 rw 0,0 sector 0x1b50d0 len 57344 err no 10
[16464.839036] BTRFS warning (device dm-11: state EA): direct IO failed ino 1228 rw 0,0 sector 0x1b5b58 len 12288 err no 10
[16464.840911] BTRFS warning (device dm-11: state EA): direct IO failed ino 258 rw 0,0 sector 0x1b3670 len 20480 err no 10
[16464.842644] BTRFS warning (device dm-11: state EA): direct IO failed ino 1214 rw 0,0 sector 0x1b2088 len 4096 err no 10
[16464.842670] BTRFS warning (device dm-11: state EA): direct IO failed ino 1214 rw 0,0 sector 0x192950 len 4096 err no 10
[16464.843437] BTRFS warning (device dm-11: state EA): direct IO failed ino 818 rw 0,0 sector 0x1b1610 len 16384 err no 10
[16464.848905] BTRFS warning (device dm-11: state EA): direct IO failed ino 1179 rw 0,0 sector 0x1b39d8 len 12288 err no 10
[16465.361113] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16465.361122] BTRFS info (device dm-11): turning on async discard
[16465.361124] BTRFS info (device dm-11): disk space caching is enabled
[16467.401254] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16467.401279] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16467.401285] BTRFS error (device dm-11): error writing primary super block to device 1
[16467.401288] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16467.401899] BTRFS info (device dm-11: state E): forced readonly
[16467.401905] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16467.401909] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16467.405470] BTRFS warning (device dm-11: state EA): direct IO failed ino 1286 rw 0,0 sector 0x1ba980 len 24576 err no 10
[16467.413044] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16467.416045] BTRFS warning (device dm-11: state EA): direct IO failed ino 267 rw 0,0 sector 0x1c5ec8 len 40960 err no 10
[16467.420115] BTRFS warning (device dm-11: state EA): direct IO failed ino 1264 rw 0,0 sector 0x1bbcd8 len 4096 err no 10
[16467.433389] BTRFS warning (device dm-11: state EA): direct IO failed ino 258 rw 0,0 sector 0x1bea58 len 28672 err no 10
[16467.434742] BTRFS warning (device dm-11: state EA): direct IO failed ino 1271 rw 0,0 sector 0x1bee78 len 53248 err no 10
[16467.942700] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16467.942708] BTRFS info (device dm-11): turning on async discard
[16467.942710] BTRFS info (device dm-11): disk space caching is enabled
[16469.988772] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16469.988780] btrfs_dev_stat_inc_and_print: 30 callbacks suppressed
[16469.988783] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[16469.988801] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16469.988806] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 2, rd 0, flush 0, corrupt 0, gen 0
[16469.988819] BTRFS error (device dm-11): error writing primary super block to device 1
[16469.988823] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16469.989550] BTRFS info (device dm-11: state E): forced readonly
[16469.989556] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16469.989560] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16469.992873] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16469.992879] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16469.995862] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 2, rd 1, flush 0, corrupt 0, gen 0
[16469.995928] BTRFS warning (device dm-11: state EA): direct IO failed ino 1214 rw 0,0 sector 0x192b10 len 8192 err no 10
[16469.996806] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 2, rd 2, flush 0, corrupt 0, gen 0
[16469.997082] BTRFS warning (device dm-11: state EA): direct IO failed ino 259 rw 0,0 sector 0x1d1200 len 28672 err no 10
[16469.998611] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 2, rd 3, flush 0, corrupt 0, gen 0
[16469.998891] BTRFS warning (device dm-11: state EA): direct IO failed ino 1335 rw 0,0 sector 0x1d2888 len 12288 err no 10
[16470.001535] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 2, rd 4, flush 0, corrupt 0, gen 0
[16470.001558] BTRFS warning (device dm-11: state EA): direct IO failed ino 1336 rw 0,0 sector 0x1ce698 len 20480 err no 10
[16470.002127] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 2, rd 5, flush 0, corrupt 0, gen 0
[16470.002141] BTRFS warning (device dm-11: state EA): direct IO failed ino 1253 rw 0,0 sector 0x1cb4b8 len 49152 err no 10
[16470.003161] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16470.004886] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 2, rd 6, flush 0, corrupt 0, gen 0
[16470.004901] BTRFS warning (device dm-11: state EA): direct IO failed ino 1253 rw 0,0 sector 0xa2f0 len 4096 err no 10
[16470.005399] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 2, rd 7, flush 0, corrupt 0, gen 0
[16470.005412] BTRFS warning (device dm-11: state EA): direct IO failed ino 1253 rw 0,0 sector 0x1cb510 len 4096 err no 10
[16470.029510] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 2, rd 8, flush 0, corrupt 0, gen 0
[16470.029558] BTRFS warning (device dm-11: state EA): direct IO failed ino 1214 rw 0,0 sector 0x194c48 len 4096 err no 10
[16470.029901] BTRFS warning (device dm-11: state EA): direct IO failed ino 1214 rw 0,0 sector 0x194378 len 8192 err no 10
[16470.030042] BTRFS warning (device dm-11: state EA): direct IO failed ino 1214 rw 0,0 sector 0x1cbe80 len 12288 err no 10
[16470.492926] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16470.492935] BTRFS info (device dm-11): turning on async discard
[16470.492937] BTRFS info (device dm-11): disk space caching is enabled
[16470.517016] ------------[ cut here ]------------
[16470.517081] WARNING: CPU: 0 PID: 2240173 at fs/btrfs/discard.c:604 btrfs_discard_update_discardable+0x98/0xb0
[16470.517090] 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 iTCO_vendor_support intel_rapl_msr snd_hda_codec_generic snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hwdep snd_hda_core joydev snd_pcm intel_rapl_common i2c_i801 snd_timer i2c_smbus snd soundcore lpc_ich virtio_balloon zram ip_tables xfs crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel serio_raw qemu_fw_cfg
[16470.517177] CPU: 0 PID: 2240173 Comm: kworker/u4:9 Tainted: G W 5.19.0-rc8+ #797
[16470.517179] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[16470.517181] Workqueue: btrfs-cache btrfs_work_helper
[16470.517186] RIP: 0010:btrfs_discard_update_discardable+0x98/0xb0
[16470.517189] 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
[16470.517191] RSP: 0018:ffffb06601eb3ad0 EFLAGS: 00010246
[16470.517194] RAX: 0000000000000000 RBX: ffff9bad541b3200 RCX: 0000000000000001
[16470.517196] RDX: 0000000000000000 RSI: ffffffffaf807c5b RDI: ffffffffaf8a831e
[16470.517198] RBP: ffff9bad9b448000 R08: 0000000000000000 R09: 0000000000001000
[16470.517199] R10: ffff9bad4790ae50 R11: 0000000000836d00 R12: ffff9bad4fc63810
[16470.517201] R13: ffff9bad42d58e10 R14: ffff9bad9b448000 R15: ffff9bad53473a80
[16470.517202] FS: 0000000000000000(0000) GS:ffff9badbbc00000(0000) knlGS:0000000000000000
[16470.517204] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[16470.517206] CR2: 00007fc0db007430 CR3: 00000001345d8002 CR4: 0000000000370ef0
[16470.517210] Call Trace:
[16470.517212]
[16470.517217] __btrfs_remove_free_space_cache+0x27/0x30
[16470.517221] load_free_space_cache+0xad2/0xaf0
[16470.517261] caching_thread+0x40b/0x650
[16470.517269] ? lock_release+0x137/0x2d0
[16470.517276] btrfs_work_helper+0xf2/0x3e0
[16470.517279] ? lock_is_held_type+0xe2/0x140
[16470.517287] process_one_work+0x271/0x590
[16470.517296] ? process_one_work+0x590/0x590
[16470.517298] worker_thread+0x52/0x3b0
[16470.517303] ? process_one_work+0x590/0x590
[16470.517306] kthread+0xf0/0x120
[16470.517309] ? kthread_complete_and_exit+0x20/0x20
[16470.517313] ret_from_fork+0x1f/0x30
[16470.517327]
[16470.517328] irq event stamp: 161101
[16470.517330] hardirqs last enabled at (161107): [] __up_console_sem+0x5e/0x70
[16470.517333] hardirqs last disabled at (161112): [] __up_console_sem+0x43/0x70
[16470.517335] softirqs last enabled at (160530): [] __irq_exit_rcu+0xeb/0x160
[16470.517338] softirqs last disabled at (160511): [] __irq_exit_rcu+0xeb/0x160
[16470.517340] ---[ end trace 0000000000000000 ]---
[16470.517343] BTRFS warning (device dm-11): block group 298844160 has wrong amount of free space
[16470.517358] BTRFS warning (device dm-11): failed to load free space cache for block group 298844160, rebuilding it now
[16472.549782] BTRFS warning (device dm-11): direct IO failed ino 1400 rw 1,34817 sector 0x1e0e60 len 102400 err no 10
[16472.549913] BTRFS warning (device dm-11): direct IO failed ino 1392 rw 1,34817 sector 0x1e12d8 len 65536 err no 10
[16472.549920] BTRFS warning (device dm-11): direct IO failed ino 1389 rw 0,0 sector 0x1d88f0 len 90112 err no 10
[16472.564882] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16472.566122] BTRFS warning (device dm-11): direct IO failed ino 267 rw 0,0 sector 0x1d2aa8 len 32768 err no 10
[16472.566684] BTRFS warning (device dm-11): direct IO failed ino 1400 rw 1,34817 sector 0x1e1920 len 49152 err no 10
[16472.567557] BTRFS warning (device dm-11): direct IO failed ino 272 rw 1,34817 sector 0x1e1478 len 90112 err no 10
[16472.571562] BTRFS warning (device dm-11): direct IO failed ino 1413 rw 1,34817 sector 0x1e1a40 len 102400 err no 10
[16472.573002] BTRFS warning (device dm-11): direct IO failed ino 1392 rw 1,34817 sector 0x1e1a40 len 106496 err no 10
[16472.599336] BTRFS warning (device dm-11): direct IO failed ino 259 rw 1,34817 sector 0x1e2498 len 69632 err no 10
[16472.599851] BTRFS: error (device dm-11: state A) in btrfs_rename_exchange:9253: errno=-5 IO failure
[16472.600446] BTRFS info (device dm-11: state EA): forced readonly
[16472.600622] BTRFS warning (device dm-11: state EA): direct IO failed ino 1394 rw 1,34817 sector 0x1e2498 len 73728 err no 10
[16472.601944] BTRFS warning (device dm-11: state EA): direct IO failed ino 265 rw 0,0 sector 0x1dfc30 len 12288 err no 10
[16472.602641] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16473.146594] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16473.146602] BTRFS info (device dm-11): turning on async discard
[16473.146604] BTRFS info (device dm-11): disk space caching is enabled
[16475.246896] btrfs_dev_stat_inc_and_print: 77 callbacks suppressed
[16475.246901] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[16475.246960] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16475.246963] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 2, rd 0, flush 0, corrupt 0, gen 0
[16475.246971] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16475.246973] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 3, rd 0, flush 0, corrupt 0, gen 0
[16475.247050] BTRFS error (device dm-11): error writing primary super block to device 1
[16475.247054] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16475.247875] BTRFS info (device dm-11: state E): forced readonly
[16475.247880] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16475.247884] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16475.250225] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16475.250229] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16475.254754] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 3, rd 1, flush 0, corrupt 0, gen 0
[16475.254787] BTRFS warning (device dm-11: state EA): direct IO failed ino 275 rw 0,0 sector 0x1edc58 len 20480 err no 10
[16475.255261] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 4, rd 1, flush 0, corrupt 0, gen 0
[16475.256013] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 5, rd 1, flush 0, corrupt 0, gen 0
[16475.256755] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 6, rd 1, flush 0, corrupt 0, gen 0
[16475.256845] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 7, rd 1, flush 0, corrupt 0, gen 0
[16475.259240] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16475.276952] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 7, rd 2, flush 0, corrupt 0, gen 0
[16475.276973] BTRFS warning (device dm-11: state EA): direct IO failed ino 273 rw 0,0 sector 0x1edcb8 len 24576 err no 10
[16475.277511] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 7, rd 3, flush 0, corrupt 0, gen 0
[16475.277525] BTRFS warning (device dm-11: state EA): direct IO failed ino 275 rw 0,0 sector 0x1edc58 len 12288 err no 10
[16475.303660] BTRFS warning (device dm-11: state EA): direct IO failed ino 1498 rw 0,0 sector 0x1e9bc8 len 20480 err no 10
[16475.304519] BTRFS warning (device dm-11: state EA): direct IO failed ino 258 rw 0,0 sector 0x1ef810 len 57344 err no 10
[16475.306457] BTRFS warning (device dm-11: state EA): direct IO failed ino 258 rw 0,0 sector 0x1ef810 len 57344 err no 10
[16475.307053] BTRFS warning (device dm-11: state EA): direct IO failed ino 1499 rw 0,0 sector 0x1ee550 len 98304 err no 10
[16475.307225] BTRFS warning (device dm-11: state EA): direct IO failed ino 1475 rw 0,0 sector 0x6bd8 len 12288 err no 10
[16475.309692] BTRFS warning (device dm-11: state EA): direct IO failed ino 259 rw 0,0 sector 0x1eff30 len 28672 err no 10
[16475.841566] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16475.841575] BTRFS info (device dm-11): turning on async discard
[16475.841577] BTRFS info (device dm-11): disk space caching is enabled
[16475.845494] BTRFS info (device dm-11): start tree-log replay
[16477.961043] BTRFS: error (device dm-11) in btrfs_commit_transaction:2496: errno=-5 IO failure (Error while writing out transaction)
[16477.961911] BTRFS info (device dm-11: state E): forced readonly
[16477.961916] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16477.961919] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16477.965532] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16478.527551] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16478.527560] BTRFS info (device dm-11): turning on async discard
[16478.527562] BTRFS info (device dm-11): disk space caching is enabled
[16480.626820] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16480.626828] btrfs_dev_stat_inc_and_print: 12 callbacks suppressed
[16480.626831] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[16480.626845] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16480.626849] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 2, rd 0, flush 0, corrupt 0, gen 0
[16480.626862] BTRFS error (device dm-11): error writing primary super block to device 1
[16480.626865] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16480.627633] BTRFS info (device dm-11: state E): forced readonly
[16480.627648] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16480.627652] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16480.628762] BTRFS: error (device dm-11: state EA) in btrfs_sync_log:3192: errno=-5 IO failure
[16480.630394] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 3, rd 0, flush 0, corrupt 0, gen 0
[16480.631557] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 4, rd 0, flush 0, corrupt 0, gen 0
[16480.631581] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 5, rd 0, flush 0, corrupt 0, gen 0
[16480.631615] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 6, rd 0, flush 0, corrupt 0, gen 0
[16480.631986] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 7, rd 0, flush 0, corrupt 0, gen 0
[16480.632055] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 8, rd 0, flush 0, corrupt 0, gen 0
[16480.632148] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 9, rd 0, flush 0, corrupt 0, gen 0
[16480.632240] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 10, rd 0, flush 0, corrupt 0, gen 0
[16480.633034] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16480.633052] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16480.633551] BTRFS warning (device dm-11: state EA): direct IO failed ino 258 rw 0,0 sector 0x20ba48 len 12288 err no 10
[16480.643162] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16480.664018] BTRFS warning (device dm-11: state EA): direct IO failed ino 1034 rw 0,0 sector 0x210ec0 len 32768 err no 10
[16480.664369] BTRFS warning (device dm-11: state EA): direct IO failed ino 266 rw 0,0 sector 0x20fe90 len 49152 err no 10
[16481.219435] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16481.219444] BTRFS info (device dm-11): turning on async discard
[16481.219446] BTRFS info (device dm-11): disk space caching is enabled
[16481.224050] BTRFS info (device dm-11): start tree-log replay
[16481.231272] BTRFS info (device dm-11): the free space cache file (298844160) is invalid, skip it
[16483.456902] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16483.456929] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16483.456953] BTRFS error (device dm-11): error writing primary super block to device 1
[16483.456959] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16483.458470] BTRFS info (device dm-11: state E): forced readonly
[16483.458490] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16483.458496] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16483.459842] BTRFS: error (device dm-11: state EA) in btrfs_sync_log:3192: errno=-5 IO failure
[16483.467212] BTRFS warning (device dm-11: state EA): direct IO failed ino 261 rw 0,0 sector 0x21dd28 len 73728 err no 10
[16483.467991] BTRFS warning (device dm-11: state EA): direct IO failed ino 261 rw 0,0 sector 0x21ce68 len 20480 err no 10
[16483.474182] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16483.486434] BTRFS warning (device dm-11: state EA): direct IO failed ino 1658 rw 0,0 sector 0x6db0 len 4096 err no 10
[16483.486659] BTRFS warning (device dm-11: state EA): direct IO failed ino 265 rw 0,0 sector 0x2220a0 len 65536 err no 10
[16483.486890] BTRFS warning (device dm-11: state EA): direct IO failed ino 269 rw 0,0 sector 0x222d28 len 94208 err no 10
[16483.487133] BTRFS warning (device dm-11: state EA): direct IO failed ino 404 rw 0,0 sector 0x2134d0 len 81920 err no 10
[16483.488659] BTRFS warning (device dm-11: state EA): direct IO failed ino 260 rw 0,0 sector 0x219e70 len 20480 err no 10
[16483.489200] BTRFS warning (device dm-11: state EA): direct IO failed ino 269 rw 0,0 sector 0x222d28 len 45056 err no 10
[16483.493495] BTRFS warning (device dm-11: state EA): direct IO failed ino 1657 rw 0,0 sector 0x1d50b0 len 4096 err no 10
[16483.494117] BTRFS warning (device dm-11: state EA): direct IO failed ino 263 rw 0,0 sector 0x21bfb8 len 36864 err no 10
[16483.494577] BTRFS warning (device dm-11: state EA): direct IO failed ino 262 rw 0,0 sector 0x220c68 len 8192 err no 10
[16483.496202] BTRFS warning (device dm-11: state EA): direct IO failed ino 1657 rw 0,0 sector 0x219fb0 len 12288 err no 10
[16483.512054] BTRFS warning (device dm-11: state EA): direct IO failed ino 259 rw 0,0 sector 0x21fa68 len 12288 err no 10
[16483.513010] BTRFS warning (device dm-11: state EA): direct IO failed ino 1658 rw 0,0 sector 0x2170b8 len 40960 err no 10
[16484.082066] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16484.082075] BTRFS info (device dm-11): turning on async discard
[16484.082077] BTRFS info (device dm-11): disk space caching is enabled
[16484.086456] BTRFS info (device dm-11): start tree-log replay
[16484.183776] BTRFS warning (device dm-11): direct IO failed ino 1697 rw 1,34817 sector 0x222558 len 122880 err no 10
[16484.193192] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16484.201747] BTRFS: error (device dm-11: state A) in maybe_insert_hole:5022: errno=-5 IO failure
[16484.202346] BTRFS info (device dm-11: state EA): forced readonly
[16484.205309] BTRFS: error (device dm-11: state EA) in do_free_extent_accounting:2848: errno=-5 IO failure
[16484.206114] BTRFS: error (device dm-11: state EA) in btrfs_run_delayed_refs:2141: errno=-5 IO failure
[16484.699582] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16484.699591] BTRFS info (device dm-11): turning on async discard
[16484.699593] BTRFS info (device dm-11): disk space caching is enabled
[16486.815475] btrfs_dev_stat_inc_and_print: 63 callbacks suppressed
[16486.815482] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[16486.816329] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 2, rd 0, flush 0, corrupt 0, gen 0
[16486.816339] BTRFS warning (device dm-11): direct IO failed ino 266 rw 1,34817 sector 0x236160 len 8192 err no 10
[16486.816382] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16486.816387] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 3, rd 0, flush 0, corrupt 0, gen 0
[16486.816405] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16486.816409] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 4, rd 0, flush 0, corrupt 0, gen 0
[16486.819593] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 5, rd 0, flush 0, corrupt 0, gen 0
[16486.820353] BTRFS error (device dm-11): error writing primary super block to device 1
[16486.820361] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16486.821613] BTRFS info (device dm-11: state E): forced readonly
[16486.821623] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16486.821630] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16486.826294] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 6, rd 0, flush 0, corrupt 0, gen 0
[16486.827188] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 7, rd 0, flush 0, corrupt 0, gen 0
[16486.827225] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 8, rd 0, flush 0, corrupt 0, gen 0
[16486.827259] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 9, rd 0, flush 0, corrupt 0, gen 0
[16486.827673] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 10, rd 0, flush 0, corrupt 0, gen 0
[16486.828375] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16486.828381] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16486.832310] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16486.853034] BTRFS warning (device dm-11: state EA): direct IO failed ino 1719 rw 0,0 sector 0x22d058 len 32768 err no 10
[16486.855364] BTRFS warning (device dm-11: state EA): direct IO failed ino 1392 rw 0,0 sector 0x22cd98 len 45056 err no 10
[16486.871481] BTRFS warning (device dm-11: state EA): direct IO failed ino 1696 rw 0,0 sector 0x231540 len 36864 err no 10
[16486.871523] BTRFS warning (device dm-11: state EA): direct IO failed ino 1696 rw 0,0 sector 0x213d40 len 24576 err no 10
[16486.873080] BTRFS warning (device dm-11: state EA): direct IO failed ino 1696 rw 0,0 sector 0x92d0 len 4096 err no 10
[16487.396352] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16487.396360] BTRFS info (device dm-11): turning on async discard
[16487.396362] BTRFS info (device dm-11): disk space caching is enabled
[16487.420538] ------------[ cut here ]------------
[16487.420627] WARNING: CPU: 0 PID: 2235757 at fs/btrfs/discard.c:604 btrfs_discard_update_discardable+0x98/0xb0
[16487.420634] 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 iTCO_vendor_support intel_rapl_msr snd_hda_codec_generic snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hwdep snd_hda_core joydev snd_pcm intel_rapl_common i2c_i801 snd_timer i2c_smbus snd soundcore lpc_ich virtio_balloon zram ip_tables xfs crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel serio_raw qemu_fw_cfg
[16487.420729] CPU: 0 PID: 2235757 Comm: kworker/u4:8 Tainted: G W 5.19.0-rc8+ #797
[16487.420732] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[16487.420734] Workqueue: btrfs-cache btrfs_work_helper
[16487.420739] RIP: 0010:btrfs_discard_update_discardable+0x98/0xb0
[16487.420742] 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
[16487.420745] RSP: 0018:ffffb06602be3ad0 EFLAGS: 00010246
[16487.420747] RAX: 0000000000000000 RBX: ffff9bad541b2000 RCX: 0000000000000001
[16487.420749] RDX: 0000000000000000 RSI: ffffffffaf807c5b RDI: ffffffffaf8a831e
[16487.420751] RBP: ffff9bad493c8000 R08: 0000000000000000 R09: 0000000000001000
[16487.420753] R10: ffff9bad44b1dde8 R11: 0000000000838600 R12: ffff9bad42991010
[16487.420754] R13: ffff9bad42fdd890 R14: ffff9bad493c8000 R15: ffff9bad53473850
[16487.420756] FS: 0000000000000000(0000) GS:ffff9badbbc00000(0000) knlGS:0000000000000000
[16487.420758] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[16487.420760] CR2: 00007fe88ff19300 CR3: 000000015c574004 CR4: 0000000000370ef0
[16487.420763] Call Trace:
[16487.420766]
[16487.420771] __btrfs_remove_free_space_cache+0x27/0x30
[16487.420775] load_free_space_cache+0xad2/0xaf0
[16487.420814] caching_thread+0x40b/0x650
[16487.420822] ? lock_release+0x137/0x2d0
[16487.420830] btrfs_work_helper+0xf2/0x3e0
[16487.420833] ? lock_is_held_type+0xe2/0x140
[16487.420840] process_one_work+0x271/0x590
[16487.420850] worker_thread+0x52/0x3b0
[16487.420854] ? process_one_work+0x590/0x590
[16487.420857] kthread+0xf0/0x120
[16487.420860] ? kthread_complete_and_exit+0x20/0x20
[16487.420864] ret_from_fork+0x1f/0x30
[16487.420878]
[16487.420879] irq event stamp: 232753
[16487.420881] hardirqs last enabled at (232759): [] __up_console_sem+0x5e/0x70
[16487.420884] hardirqs last disabled at (232764): [] __up_console_sem+0x43/0x70
[16487.420886] softirqs last enabled at (232382): [] __irq_exit_rcu+0xeb/0x160
[16487.420889] softirqs last disabled at (232375): [] __irq_exit_rcu+0xeb/0x160
[16487.420892] ---[ end trace 0000000000000000 ]---
[16487.420895] BTRFS warning (device dm-11): block group 298844160 has wrong amount of free space
[16487.420910] BTRFS warning (device dm-11): failed to load free space cache for block group 298844160, rebuilding it now
[16488.432214] BTRFS warning (device dm-11): direct IO failed ino 267 rw 1,34817 sector 0x23d2f0 len 65536 err no 10
[16488.432752] BTRFS warning (device dm-11): direct IO failed ino 298 rw 0,0 sector 0x23b398 len 4096 err no 10
[16488.438269] BTRFS: error (device dm-11) in btrfs_commit_transaction:2496: errno=-5 IO failure (Error while writing out transaction)
[16488.438944] BTRFS info (device dm-11: state E): forced readonly
[16488.438949] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16488.438952] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16488.443848] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16488.960199] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16488.960207] BTRFS info (device dm-11): turning on async discard
[16488.960209] BTRFS info (device dm-11): disk space caching is enabled
[16488.964953] BTRFS info (device dm-11): start tree-log replay
[16489.051314] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16489.052697] BTRFS warning (device dm-11): direct IO failed ino 1819 rw 1,34817 sector 0x23caa0 len 20480 err no 10
[16489.056183] BTRFS: error (device dm-11: state A) in maybe_insert_hole:5022: errno=-5 IO failure
[16489.056842] BTRFS info (device dm-11: state EA): forced readonly
[16489.561395] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16489.561404] BTRFS info (device dm-11): turning on async discard
[16489.561405] BTRFS info (device dm-11): disk space caching is enabled
[16491.701922] BTRFS: error (device dm-11) in btrfs_commit_transaction:2496: errno=-5 IO failure (Error while writing out transaction)
[16491.702653] BTRFS info (device dm-11: state E): forced readonly
[16491.702659] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16491.702662] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16491.702943] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16492.324377] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16492.324385] BTRFS info (device dm-11): turning on async discard
[16492.324387] BTRFS info (device dm-11): disk space caching is enabled
[16492.329175] BTRFS info (device dm-11): start tree-log replay
[16492.425699] btrfs_dev_stat_inc_and_print: 76 callbacks suppressed
[16492.425703] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 0, rd 1, flush 0, corrupt 0, gen 0
[16492.425718] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 0, rd 2, flush 0, corrupt 0, gen 0
[16492.425756] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 0, rd 3, flush 0, corrupt 0, gen 0
[16492.425760] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 0, rd 4, flush 0, corrupt 0, gen 0
[16492.426119] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 0, rd 5, flush 0, corrupt 0, gen 0
[16492.427630] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 0, rd 6, flush 0, corrupt 0, gen 0
[16492.429937] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 6, flush 0, corrupt 0, gen 0
[16492.429953] BTRFS warning (device dm-11): direct IO failed ino 1787 rw 1,34817 sector 0x2514d8 len 77824 err no 10
[16492.431510] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 7, flush 0, corrupt 0, gen 0
[16492.432299] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 8, flush 0, corrupt 0, gen 0
[16492.432391] BTRFS: error (device dm-11: state A) in create_subvol:735: errno=-5 IO failure
[16492.432993] BTRFS info (device dm-11: state EA): forced readonly
[16492.433702] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 1, rd 9, flush 0, corrupt 0, gen 0
[16492.436700] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16492.918937] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16492.918946] BTRFS info (device dm-11): turning on async discard
[16492.918948] BTRFS info (device dm-11): disk space caching is enabled
[16494.951123] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16494.951132] BTRFS error (device dm-11): error writing primary super block to device 1
[16494.951135] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16494.951760] BTRFS info (device dm-11: state E): forced readonly
[16494.951775] BTRFS: error (device dm-11: state EA) in btrfs_sync_log:3203: errno=-5 IO failure
[16494.955678] BTRFS warning (device dm-11: state EA): direct IO failed ino 258 rw 0,0 sector 0x2565c0 len 16384 err no 10
[16494.955737] BTRFS warning (device dm-11: state EA): direct IO failed ino 1972 rw 0,0 sector 0x259160 len 8192 err no 10
[16494.955773] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16494.955778] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16494.961505] BTRFS warning (device dm-11: state EA): direct IO failed ino 2012 rw 0,0 sector 0x25e2e8 len 12288 err no 10
[16494.963496] BTRFS warning (device dm-11: state EA): direct IO failed ino 1944 rw 0,0 sector 0x2536d0 len 24576 err no 10
[16494.963521] BTRFS warning (device dm-11: state EA): direct IO failed ino 1944 rw 0,0 sector 0x2531f8 len 12288 err no 10
[16494.966516] BTRFS warning (device dm-11: state EA): direct IO failed ino 1944 rw 0,0 sector 0x25aa98 len 32768 err no 10
[16494.966548] BTRFS warning (device dm-11: state EA): direct IO failed ino 263 rw 0,0 sector 0x259be8 len 57344 err no 10
[16494.966727] BTRFS warning (device dm-11: state EA): direct IO failed ino 263 rw 0,0 sector 0x252a28 len 4096 err no 10
[16494.966739] BTRFS warning (device dm-11: state EA): direct IO failed ino 263 rw 0,0 sector 0x261570 len 4096 err no 10
[16494.973082] BTRFS warning (device dm-11: state EA): direct IO failed ino 263 rw 0,0 sector 0x261630 len 16384 err no 10
[16494.973482] BTRFS warning (device dm-11: state EA): direct IO failed ino 263 rw 0,0 sector 0x261628 len 20480 err no 10
[16494.976689] BTRFS warning (device dm-11: state EA): direct IO failed ino 1606 rw 0,0 sector 0x256f30 len 8192 err no 10
[16494.981353] BTRFS warning (device dm-11: state EA): direct IO failed ino 2021 rw 0,0 sector 0x25ed88 len 20480 err no 10
[16494.981688] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16494.982826] BTRFS warning (device dm-11: state EA): direct IO failed ino 263 rw 0,0 sector 0x2615e8 len 12288 err no 10
[16495.002455] BTRFS warning (device dm-11: state EA): direct IO failed ino 1606 rw 0,0 sector 0x256f20 len 16384 err no 10
[16495.003247] BTRFS warning (device dm-11: state EA): direct IO failed ino 1969 rw 0,0 sector 0x258c90 len 65536 err no 10
[16495.005296] BTRFS warning (device dm-11: state EA): direct IO failed ino 1944 rw 0,0 sector 0x262958 len 12288 err no 10
[16495.006183] BTRFS warning (device dm-11: state EA): direct IO failed ino 2030 rw 0,0 sector 0x261788 len 4096 err no 10
[16495.007103] BTRFS warning (device dm-11: state EA): direct IO failed ino 1943 rw 0,0 sector 0x2529e0 len 4096 err no 10
[16495.007176] BTRFS warning (device dm-11: state EA): direct IO failed ino 1606 rw 0,0 sector 0x254060 len 16384 err no 10
[16495.017737] BTRFS warning (device dm-11: state EA): direct IO failed ino 1974 rw 0,0 sector 0x9ac8 len 4096 err no 10
[16495.572376] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16495.572385] BTRFS info (device dm-11): turning on async discard
[16495.572387] BTRFS info (device dm-11): disk space caching is enabled
[16495.576380] BTRFS info (device dm-11): start tree-log replay
[16495.578260] BTRFS warning (device dm-11): block group 30408704 has wrong amount of free space
[16495.578275] BTRFS warning (device dm-11): failed to load free space cache for block group 30408704, rebuilding it now
[16495.681794] BTRFS: error (device dm-11: state A) in create_subvol:735: errno=-5 IO failure
[16495.682272] BTRFS info (device dm-11: state EA): forced readonly
[16495.692548] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16496.171695] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16496.171703] BTRFS info (device dm-11): turning on async discard
[16496.171705] BTRFS info (device dm-11): disk space caching is enabled
[16498.226078] btrfs_dev_stat_inc_and_print: 147 callbacks suppressed
[16498.226082] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[16498.226226] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 2, rd 0, flush 0, corrupt 0, gen 0
[16498.226232] BTRFS warning (device dm-11): direct IO failed ino 2054 rw 1,34817 sector 0x2715f8 len 40960 err no 10
[16498.226254] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16498.226258] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 3, rd 0, flush 0, corrupt 0, gen 0
[16498.226269] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16498.226273] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 4, rd 0, flush 0, corrupt 0, gen 0
[16498.227744] BTRFS error (device dm-11): error writing primary super block to device 1
[16498.227749] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16498.228427] BTRFS info (device dm-11: state E): forced readonly
[16498.228433] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16498.228442] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16498.230326] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 4, rd 1, flush 0, corrupt 0, gen 0
[16498.230343] BTRFS warning (device dm-11: state EA): direct IO failed ino 258 rw 0,0 sector 0x267a18 len 73728 err no 10
[16498.231161] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 5, rd 1, flush 0, corrupt 0, gen 0
[16498.232721] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 5, rd 2, flush 0, corrupt 0, gen 0
[16498.233179] BTRFS warning (device dm-11: state EA): direct IO failed ino 2051 rw 0,0 sector 0x266538 len 40960 err no 10
[16498.234496] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 6, rd 2, flush 0, corrupt 0, gen 0
[16498.235106] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 7, rd 2, flush 0, corrupt 0, gen 0
[16498.235144] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 8, rd 2, flush 0, corrupt 0, gen 0
[16498.240999] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16498.241011] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16498.241257] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16498.244514] BTRFS warning (device dm-11: state EA): direct IO failed ino 2021 rw 0,0 sector 0x253840 len 12288 err no 10
[16498.246351] BTRFS warning (device dm-11: state EA): direct IO failed ino 1696 rw 0,0 sector 0x2661f0 len 65536 err no 10
[16498.262605] BTRFS warning (device dm-11: state EA): direct IO failed ino 1467 rw 0,0 sector 0x2688f0 len 8192 err no 10
[16498.264054] BTRFS warning (device dm-11: state EA): direct IO failed ino 2051 rw 0,0 sector 0x26d858 len 28672 err no 10
[16498.273673] BTRFS warning (device dm-11: state EA): direct IO failed ino 2044 rw 0,0 sector 0x262908 len 45056 err no 10
[16498.274760] BTRFS warning (device dm-11: state EA): direct IO failed ino 2064 rw 0,0 sector 0x26ab70 len 8192 err no 10
[16498.275483] BTRFS warning (device dm-11: state EA): direct IO failed ino 2060 rw 0,0 sector 0x267568 len 57344 err no 10
[16498.290748] BTRFS warning (device dm-11: state EA): direct IO failed ino 1450 rw 0,0 sector 0x265540 len 73728 err no 10
[16498.820282] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16498.820290] BTRFS info (device dm-11): turning on async discard
[16498.820292] BTRFS info (device dm-11): disk space caching is enabled
[16498.864421] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16498.886187] BTRFS: error (device dm-11: state A) in __btrfs_free_extent:3078: errno=-5 IO failure
[16498.886718] BTRFS info (device dm-11: state EA): forced readonly
[16498.886725] BTRFS: error (device dm-11: state EA) in btrfs_run_delayed_refs:2141: errno=-5 IO failure
[16499.348141] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16499.348149] BTRFS info (device dm-11): turning on async discard
[16499.348151] BTRFS info (device dm-11): disk space caching is enabled
[16499.371556] ------------[ cut here ]------------
[16499.371625] WARNING: CPU: 1 PID: 2170455 at fs/btrfs/discard.c:604 btrfs_discard_update_discardable+0x98/0xb0
[16499.371632] 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 iTCO_vendor_support intel_rapl_msr snd_hda_codec_generic snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hwdep snd_hda_core joydev snd_pcm intel_rapl_common i2c_i801 snd_timer i2c_smbus snd soundcore lpc_ich virtio_balloon zram ip_tables xfs crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel serio_raw qemu_fw_cfg
[16499.371713] CPU: 1 PID: 2170455 Comm: kworker/u4:1 Tainted: G W 5.19.0-rc8+ #797
[16499.371716] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[16499.371718] Workqueue: btrfs-cache btrfs_work_helper
[16499.371723] RIP: 0010:btrfs_discard_update_discardable+0x98/0xb0
[16499.371727] 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
[16499.371729] RSP: 0018:ffffb06606b1bad0 EFLAGS: 00010246
[16499.371733] RAX: 0000000000000000 RBX: ffff9bad541b3a00 RCX: 0000000000000001
[16499.371736] RDX: 0000000000000000 RSI: ffffffffaf807c5b RDI: ffffffffaf8a831e
[16499.371738] RBP: ffff9bad4ae0c000 R08: 0000000000000000 R09: 0000000000001000
[16499.371741] R10: 0000000000060844 R11: 000000000083a300 R12: ffff9bad42996010
[16499.371743] R13: ffff9bad44451760 R14: ffff9bad4ae0c000 R15: ffff9bad51d6ecb0
[16499.371745] FS: 0000000000000000(0000) GS:ffff9badbbd00000(0000) knlGS:0000000000000000
[16499.371747] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[16499.371749] CR2: 000000000043c090 CR3: 00000001028dc002 CR4: 0000000000370ee0
[16499.371753] Call Trace:
[16499.371755]
[16499.371760] __btrfs_remove_free_space_cache+0x27/0x30
[16499.371765] load_free_space_cache+0xad2/0xaf0
[16499.371812] caching_thread+0x40b/0x650
[16499.371825] ? lock_release+0x137/0x2d0
[16499.371834] btrfs_work_helper+0xf2/0x3e0
[16499.371837] ? lock_is_held_type+0xe2/0x140
[16499.371844] process_one_work+0x271/0x590
[16499.371854] worker_thread+0x52/0x3b0
[16499.371858] ? process_one_work+0x590/0x590
[16499.371861] kthread+0xf0/0x120
[16499.371863] ? kthread_complete_and_exit+0x20/0x20
[16499.371868] ret_from_fork+0x1f/0x30
[16499.371881]
[16499.371883] irq event stamp: 3606353
[16499.371884] hardirqs last enabled at (3606359): [] __up_console_sem+0x5e/0x70
[16499.371888] hardirqs last disabled at (3606364): [] __up_console_sem+0x43/0x70
[16499.371890] softirqs last enabled at (3605818): [] __irq_exit_rcu+0xeb/0x160
[16499.371893] softirqs last disabled at (3605809): [] __irq_exit_rcu+0xeb/0x160
[16499.371895] ---[ end trace 0000000000000000 ]---
[16499.371898] BTRFS warning (device dm-11): block group 298844160 has wrong amount of free space
[16499.371914] BTRFS warning (device dm-11): failed to load free space cache for block group 298844160, rebuilding it now
[16500.373388] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16500.373403] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16500.373412] BTRFS error (device dm-11): error writing primary super block to device 1
[16500.373415] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16500.374269] BTRFS info (device dm-11: state E): forced readonly
[16500.374276] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16500.374281] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16500.375797] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16500.375802] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16500.376972] BTRFS warning (device dm-11: state EA): direct IO failed ino 1589 rw 0,0 sector 0x275c38 len 65536 err no 10
[16500.382684] BTRFS warning (device dm-11: state EA): direct IO failed ino 2148 rw 0,0 sector 0x278c80 len 53248 err no 10
[16500.385860] BTRFS warning (device dm-11: state EA): direct IO failed ino 2148 rw 0,0 sector 0x278cf8 len 32768 err no 10
[16500.387138] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16500.391394] BTRFS warning (device dm-11: state EA): direct IO failed ino 2148 rw 0,0 sector 0x278cd0 len 61440 err no 10
[16500.392848] BTRFS warning (device dm-11: state EA): direct IO failed ino 2114 rw 0,0 sector 0x2755c8 len 77824 err no 10
[16500.392948] BTRFS warning (device dm-11: state EA): direct IO failed ino 2114 rw 0,0 sector 0x270c98 len 24576 err no 10
[16500.394146] BTRFS warning (device dm-11: state EA): direct IO failed ino 2114 rw 0,0 sector 0x2711e8 len 12288 err no 10
[16500.396225] BTRFS warning (device dm-11: state EA): direct IO failed ino 2152 rw 0,0 sector 0x279818 len 32768 err no 10
[16500.397222] BTRFS warning (device dm-11: state EA): direct IO failed ino 2148 rw 0,0 sector 0x278d00 len 24576 err no 10
[16500.397966] BTRFS warning (device dm-11: state EA): direct IO failed ino 2148 rw 0,0 sector 0x278c98 len 65536 err no 10
[16500.398203] BTRFS warning (device dm-11: state EA): direct IO failed ino 2114 rw 0,0 sector 0x2754f0 len 49152 err no 10
[16500.401160] BTRFS warning (device dm-11: state EA): direct IO failed ino 1179 rw 0,0 sector 0x277868 len 20480 err no 10
[16500.413758] BTRFS warning (device dm-11: state EA): direct IO failed ino 2140 rw 0,0 sector 0x9258 len 4096 err no 10
[16500.414136] BTRFS warning (device dm-11: state EA): direct IO failed ino 1589 rw 0,0 sector 0x275f70 len 8192 err no 10
[16500.414949] BTRFS warning (device dm-11: state EA): direct IO failed ino 1589 rw 0,0 sector 0x273b80 len 16384 err no 10
[16500.433338] BTRFS warning (device dm-11: state EA): direct IO failed ino 2148 rw 0,0 sector 0x278c78 len 24576 err no 10
[16500.973962] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16500.973974] BTRFS info (device dm-11): turning on async discard
[16500.973977] BTRFS info (device dm-11): disk space caching is enabled
[16502.012274] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16502.012292] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16502.012297] BTRFS error (device dm-11): error writing primary super block to device 1
[16502.012301] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16502.012925] BTRFS info (device dm-11: state E): forced readonly
[16502.012930] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16502.012933] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16502.017252] BTRFS warning (device dm-11: state EA): direct IO failed ino 1787 rw 0,0 sector 0x27bf90 len 24576 err no 10
[16502.021894] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16502.035087] BTRFS warning (device dm-11: state EA): direct IO failed ino 2153 rw 0,0 sector 0x253748 len 4096 err no 10
[16502.040884] BTRFS warning (device dm-11: state EA): direct IO failed ino 2145 rw 0,0 sector 0x278788 len 102400 err no 10
[16502.053916] BTRFS warning (device dm-11: state EA): direct IO failed ino 2147 rw 0,0 sector 0x279468 len 53248 err no 10
[16502.055672] BTRFS warning (device dm-11: state EA): direct IO failed ino 2147 rw 0,0 sector 0x279468 len 53248 err no 10
[16502.055713] BTRFS warning (device dm-11: state EA): direct IO failed ino 258 rw 0,0 sector 0x27cde0 len 69632 err no 10
[16502.057019] BTRFS warning (device dm-11: state EA): direct IO failed ino 1787 rw 0,0 sector 0x279440 len 16384 err no 10
[16502.057346] BTRFS warning (device dm-11: state EA): direct IO failed ino 1709 rw 0,0 sector 0x27c5b0 len 53248 err no 10
[16502.058618] BTRFS warning (device dm-11: state EA): direct IO failed ino 2147 rw 0,0 sector 0x279470 len 49152 err no 10
[16502.059232] BTRFS warning (device dm-11: state EA): direct IO failed ino 2148 rw 0,0 sector 0x27e340 len 61440 err no 10
[16502.062791] BTRFS warning (device dm-11: state EA): direct IO failed ino 2058 rw 0,0 sector 0x27cda0 len 28672 err no 10
[16502.062812] BTRFS warning (device dm-11: state EA): direct IO failed ino 2058 rw 0,0 sector 0x253d10 len 4096 err no 10
[16502.064427] BTRFS warning (device dm-11: state EA): direct IO failed ino 1709 rw 0,0 sector 0x27e148 len 4096 err no 10
[16502.065439] BTRFS warning (device dm-11: state EA): direct IO failed ino 258 rw 0,0 sector 0x27c2e0 len 8192 err no 10
[16502.574377] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16502.574385] BTRFS info (device dm-11): turning on async discard
[16502.574387] BTRFS info (device dm-11): disk space caching is enabled
[16503.636180] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16503.636187] btrfs_dev_stat_inc_and_print: 112 callbacks suppressed
[16503.636188] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[16503.636202] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16503.636204] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 2, rd 0, flush 0, corrupt 0, gen 0
[16503.636265] BTRFS error (device dm-11): error writing primary super block to device 1
[16503.636270] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16503.636910] BTRFS info (device dm-11: state E): forced readonly
[16503.636915] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16503.636921] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16503.639894] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16503.639898] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16503.642880] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 3, rd 0, flush 0, corrupt 0, gen 0
[16503.644470] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 3, rd 1, flush 0, corrupt 0, gen 0
[16503.644517] BTRFS warning (device dm-11: state EA): direct IO failed ino 2122 rw 0,0 sector 0x288168 len 24576 err no 10
[16503.645185] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 3, rd 2, flush 0, corrupt 0, gen 0
[16503.645212] BTRFS warning (device dm-11: state EA): direct IO failed ino 257 rw 0,0 sector 0x287058 len 45056 err no 10
[16503.648416] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16503.665020] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 3, rd 3, flush 0, corrupt 0, gen 0
[16503.665041] BTRFS warning (device dm-11: state EA): direct IO failed ino 2146 rw 0,0 sector 0x284b68 len 8192 err no 10
[16503.667562] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 3, rd 4, flush 0, corrupt 0, gen 0
[16503.667577] BTRFS warning (device dm-11: state EA): direct IO failed ino 257 rw 0,0 sector 0x288640 len 40960 err no 10
[16503.667683] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 3, rd 5, flush 0, corrupt 0, gen 0
[16503.667697] BTRFS warning (device dm-11: state EA): direct IO failed ino 2192 rw 0,0 sector 0x282438 len 4096 err no 10
[16503.670649] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 3, rd 6, flush 0, corrupt 0, gen 0
[16503.672414] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 3, rd 7, flush 0, corrupt 0, gen 0
[16503.672429] BTRFS warning (device dm-11: state EA): direct IO failed ino 257 rw 0,0 sector 0x287058 len 61440 err no 10
[16503.674816] BTRFS warning (device dm-11: state EA): direct IO failed ino 257 rw 0,0 sector 0x287030 len 36864 err no 10
[16503.674883] BTRFS warning (device dm-11: state EA): direct IO failed ino 257 rw 0,0 sector 0x287028 len 20480 err no 10
[16503.687309] BTRFS warning (device dm-11: state EA): direct IO failed ino 2192 rw 0,0 sector 0x282978 len 20480 err no 10
[16503.689112] BTRFS warning (device dm-11: state EA): direct IO failed ino 2192 rw 0,0 sector 0x2812b8 len 4096 err no 10
[16504.230861] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16504.230870] BTRFS info (device dm-11): turning on async discard
[16504.230872] BTRFS info (device dm-11): disk space caching is enabled
[16506.318537] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16506.318555] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16506.318563] BTRFS error (device dm-11): error writing primary super block to device 1
[16506.318567] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16506.319192] BTRFS info (device dm-11: state E): forced readonly
[16506.319197] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16506.319200] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16506.325900] BTRFS warning (device dm-11: state EA): direct IO failed ino 1179 rw 0,0 sector 0x28a7c0 len 69632 err no 10
[16506.326287] BTRFS warning (device dm-11: state EA): direct IO failed ino 2252 rw 0,0 sector 0x296860 len 20480 err no 10
[16506.326387] BTRFS warning (device dm-11: state EA): direct IO failed ino 2287 rw 0,0 sector 0x299e28 len 49152 err no 10
[16506.328640] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16506.344514] BTRFS warning (device dm-11: state EA): direct IO failed ino 2249 rw 0,0 sector 0x28fe78 len 24576 err no 10
[16506.347051] BTRFS warning (device dm-11: state EA): direct IO failed ino 2249 rw 0,0 sector 0x299e20 len 4096 err no 10
[16506.366500] BTRFS warning (device dm-11: state EA): direct IO failed ino 2234 rw 0,0 sector 0x28c340 len 4096 err no 10
[16506.370677] BTRFS warning (device dm-11: state EA): direct IO failed ino 2249 rw 0,0 sector 0x299db8 len 57344 err no 10
[16506.886404] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16506.886413] BTRFS info (device dm-11): turning on async discard
[16506.886415] BTRFS info (device dm-11): disk space caching is enabled
[16506.907829] ------------[ cut here ]------------
[16506.907892] WARNING: CPU: 1 PID: 2146935 at fs/btrfs/discard.c:604 btrfs_discard_update_discardable+0x98/0xb0
[16506.907899] 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 iTCO_vendor_support intel_rapl_msr snd_hda_codec_generic snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hwdep snd_hda_core joydev snd_pcm intel_rapl_common i2c_i801 snd_timer i2c_smbus snd soundcore lpc_ich virtio_balloon zram ip_tables xfs crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel serio_raw qemu_fw_cfg
[16506.907966] CPU: 1 PID: 2146935 Comm: kworker/u4:0 Tainted: G W 5.19.0-rc8+ #797
[16506.907968] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[16506.907970] Workqueue: btrfs-cache btrfs_work_helper
[16506.907975] RIP: 0010:btrfs_discard_update_discardable+0x98/0xb0
[16506.907978] 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
[16506.907980] RSP: 0000:ffffb0660168bad0 EFLAGS: 00010246
[16506.907983] RAX: 0000000000000000 RBX: ffff9bad541b2800 RCX: 0000000000000001
[16506.907985] RDX: 0000000000000000 RSI: ffffffffaf807c5b RDI: ffffffffaf8a831e
[16506.907986] RBP: ffff9bad4ae0c000 R08: 0000000000000000 R09: 0000000000001000
[16506.907988] R10: ffff9bac937e2080 R11: 000000000083a100 R12: ffff9bad42996810
[16506.907990] R13: ffff9bad55b2bca0 R14: ffff9bad4ae0c000 R15: ffff9bad42a6a5b0
[16506.907991] FS: 0000000000000000(0000) GS:ffff9badbbd00000(0000) knlGS:0000000000000000
[16506.907993] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[16506.907995] CR2: 00007fe0cf462000 CR3: 0000000103b7a003 CR4: 0000000000370ee0
[16506.907999] Call Trace:
[16506.908002]
[16506.908006] __btrfs_remove_free_space_cache+0x27/0x30
[16506.908010] load_free_space_cache+0xad2/0xaf0
[16506.908049] caching_thread+0x40b/0x650
[16506.908058] ? lock_release+0x137/0x2d0
[16506.908067] btrfs_work_helper+0xf2/0x3e0
[16506.908072] ? lock_is_held_type+0xe2/0x140
[16506.908082] process_one_work+0x271/0x590
[16506.908097] worker_thread+0x52/0x3b0
[16506.908102] ? process_one_work+0x590/0x590
[16506.908105] kthread+0xf0/0x120
[16506.908107] ? kthread_complete_and_exit+0x20/0x20
[16506.908112] ret_from_fork+0x1f/0x30
[16506.908125]
[16506.908127] irq event stamp: 10747211
[16506.908128] hardirqs last enabled at (10747217): [] __up_console_sem+0x5e/0x70
[16506.908132] hardirqs last disabled at (10747222): [] __up_console_sem+0x43/0x70
[16506.908136] softirqs last enabled at (10746616): [] __irq_exit_rcu+0xeb/0x160
[16506.908139] softirqs last disabled at (10746585): [] __irq_exit_rcu+0xeb/0x160
[16506.908142] ---[ end trace 0000000000000000 ]---
[16506.908145] BTRFS warning (device dm-11): block group 298844160 has wrong amount of free space
[16506.908163] BTRFS warning (device dm-11): failed to load free space cache for block group 298844160, rebuilding it now
[16508.034494] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16508.034516] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16508.034526] BTRFS error (device dm-11): error writing primary super block to device 1
[16508.034531] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16508.035350] BTRFS info (device dm-11: state E): forced readonly
[16508.035356] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16508.035361] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16508.042491] BTRFS warning (device dm-11: state EA): direct IO failed ino 2295 rw 0,0 sector 0x29d658 len 4096 err no 10
[16508.047226] BTRFS warning (device dm-11: state EA): direct IO failed ino 2300 rw 0,0 sector 0x7300 len 4096 err no 10
[16508.049230] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16508.069874] BTRFS warning (device dm-11: state EA): direct IO failed ino 2154 rw 0,0 sector 0x29df98 len 8192 err no 10
[16508.086346] BTRFS warning (device dm-11: state EA): direct IO failed ino 257 rw 0,0 sector 0x2a13f0 len 8192 err no 10
[16508.087941] BTRFS warning (device dm-11: state EA): direct IO failed ino 2302 rw 0,0 sector 0x29d428 len 8192 err no 10
[16508.608546] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16508.608555] BTRFS info (device dm-11): turning on async discard
[16508.608557] BTRFS info (device dm-11): disk space caching is enabled
[16508.612787] BTRFS info (device dm-11): start tree-log replay
[16509.702134] btrfs_dev_stat_inc_and_print: 43 callbacks suppressed
[16509.702139] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[16509.702664] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 2, rd 0, flush 0, corrupt 0, gen 0
[16509.704168] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 3, rd 0, flush 0, corrupt 0, gen 0
[16509.704195] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 4, rd 0, flush 0, corrupt 0, gen 0
[16509.704251] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 5, rd 0, flush 0, corrupt 0, gen 0
[16509.704257] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 6, rd 0, flush 0, corrupt 0, gen 0
[16509.704333] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 7, rd 0, flush 0, corrupt 0, gen 0
[16509.704338] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 8, rd 0, flush 0, corrupt 0, gen 0
[16509.704535] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 9, rd 0, flush 0, corrupt 0, gen 0
[16509.704542] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 10, rd 0, flush 0, corrupt 0, gen 0
[16509.704932] BTRFS: error (device dm-11) in btrfs_commit_transaction:2496: errno=-5 IO failure (Error while writing out transaction)
[16509.705638] BTRFS info (device dm-11: state E): forced readonly
[16509.705643] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16509.705646] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16509.712887] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16510.281199] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16510.281208] BTRFS info (device dm-11): turning on async discard
[16510.281210] BTRFS info (device dm-11): disk space caching is enabled
[16510.306257] ------------[ cut here ]------------
[16510.306323] WARNING: CPU: 0 PID: 1704138 at fs/btrfs/discard.c:604 btrfs_discard_update_discardable+0x98/0xb0
[16510.306330] 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 iTCO_vendor_support intel_rapl_msr snd_hda_codec_generic snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hwdep snd_hda_core joydev snd_pcm intel_rapl_common i2c_i801 snd_timer i2c_smbus snd soundcore lpc_ich virtio_balloon zram ip_tables xfs crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel serio_raw qemu_fw_cfg
[16510.306396] CPU: 0 PID: 1704138 Comm: kworker/u4:6 Tainted: G W 5.19.0-rc8+ #797
[16510.306399] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[16510.306400] Workqueue: btrfs-cache btrfs_work_helper
[16510.306405] RIP: 0010:btrfs_discard_update_discardable+0x98/0xb0
[16510.306408] 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
[16510.306428] RSP: 0000:ffffb0660173bad0 EFLAGS: 00010246
[16510.306432] RAX: 0000000000000000 RBX: ffff9bad541b2800 RCX: 0000000000000001
[16510.306433] RDX: 0000000000000000 RSI: ffffffffaf807c5b RDI: ffffffffaf8a831e
[16510.306435] RBP: ffff9bad4ae0c000 R08: 0000000000000000 R09: 0000000000001000
[16510.306437] R10: ffff9bac48290a40 R11: 000000000083a300 R12: ffff9bad42991010
[16510.306443] R13: ffff9bad567a7480 R14: ffff9bad4ae0c000 R15: ffff9bad42a6a380
[16510.306445] FS: 0000000000000000(0000) GS:ffff9badbbc00000(0000) knlGS:0000000000000000
[16510.306447] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[16510.306449] CR2: 00007fd7f1d9e160 CR3: 0000000103b4e006 CR4: 0000000000370ef0
[16510.306452] Call Trace:
[16510.306455]
[16510.306459] __btrfs_remove_free_space_cache+0x27/0x30
[16510.306464] load_free_space_cache+0xad2/0xaf0
[16510.306504] caching_thread+0x40b/0x650
[16510.306512] ? lock_release+0x137/0x2d0
[16510.306519] btrfs_work_helper+0xf2/0x3e0
[16510.306523] ? lock_is_held_type+0xe2/0x140
[16510.306530] process_one_work+0x271/0x590
[16510.306540] worker_thread+0x52/0x3b0
[16510.306546] ? process_one_work+0x590/0x590
[16510.306550] kthread+0xf0/0x120
[16510.306553] ? kthread_complete_and_exit+0x20/0x20
[16510.306561] ret_from_fork+0x1f/0x30
[16510.306576]
[16510.306578] irq event stamp: 24470919
[16510.306579] hardirqs last enabled at (24470925): [] __up_console_sem+0x5e/0x70
[16510.306583] hardirqs last disabled at (24470930): [] __up_console_sem+0x43/0x70
[16510.306585] softirqs last enabled at (24469646): [] __irq_exit_rcu+0xeb/0x160
[16510.306588] softirqs last disabled at (24469637): [] __irq_exit_rcu+0xeb/0x160
[16510.306590] ---[ end trace 0000000000000000 ]---
[16510.306593] BTRFS warning (device dm-11): block group 298844160 has wrong amount of free space
[16510.306608] BTRFS warning (device dm-11): failed to load free space cache for block group 298844160, rebuilding it now
[16512.338501] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16512.338518] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16512.338885] BTRFS error (device dm-11): error writing primary super block to device 1
[16512.338890] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16512.339695] BTRFS info (device dm-11: state E): forced readonly
[16512.339701] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16512.339706] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16512.343073] BTRFS warning (device dm-11: state EA): direct IO failed ino 2413 rw 0,0 sector 0x2ac7d8 len 69632 err no 10
[16512.350721] BTRFS warning (device dm-11: state EA): direct IO failed ino 2557 rw 0,0 sector 0x2bfc90 len 8192 err no 10
[16512.352093] BTRFS warning (device dm-11: state EA): direct IO failed ino 2579 rw 0,0 sector 0x2be1c8 len 36864 err no 10
[16512.352729] BTRFS warning (device dm-11: state EA): direct IO failed ino 2461 rw 0,0 sector 0x2b7d88 len 28672 err no 10
[16512.352768] BTRFS warning (device dm-11: state EA): direct IO failed ino 2461 rw 0,0 sector 0x2b29e8 len 20480 err no 10
[16512.353488] BTRFS warning (device dm-11: state EA): direct IO failed ino 2407 rw 0,0 sector 0x2bab40 len 77824 err no 10
[16512.355938] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16512.373536] BTRFS warning (device dm-11: state EA): direct IO failed ino 2556 rw 0,0 sector 0x2babd8 len 8192 err no 10
[16512.373559] BTRFS warning (device dm-11: state EA): direct IO failed ino 2556 rw 0,0 sector 0x2babe8 len 20480 err no 10
[16512.373575] BTRFS warning (device dm-11: state EA): direct IO failed ino 2556 rw 0,0 sector 0x2bac10 len 4096 err no 10
[16512.375625] BTRFS warning (device dm-11: state EA): direct IO failed ino 2556 rw 0,0 sector 0x2babd8 len 8192 err no 10
[16512.375650] BTRFS warning (device dm-11: state EA): direct IO failed ino 2556 rw 0,0 sector 0x2babe8 len 20480 err no 10
[16512.375675] BTRFS warning (device dm-11: state EA): direct IO failed ino 2556 rw 0,0 sector 0x2bac10 len 4096 err no 10
[16512.387704] BTRFS warning (device dm-11: state EA): direct IO failed ino 2557 rw 0,0 sector 0x2bfcb8 len 36864 err no 10
[16512.401750] BTRFS warning (device dm-11: state EA): direct IO failed ino 2514 rw 0,0 sector 0x2ba3d0 len 28672 err no 10
[16512.401823] BTRFS warning (device dm-11: state EA): direct IO failed ino 2245 rw 0,0 sector 0x2b7040 len 20480 err no 10
[16512.406994] BTRFS warning (device dm-11: state EA): direct IO failed ino 2498 rw 0,0 sector 0x2bf178 len 8192 err no 10
[16512.414258] BTRFS warning (device dm-11: state EA): direct IO failed ino 2556 rw 0,0 sector 0x2babd8 len 8192 err no 10
[16512.414277] BTRFS warning (device dm-11: state EA): direct IO failed ino 2556 rw 0,0 sector 0x2babe8 len 12288 err no 10
[16512.969274] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16512.969282] BTRFS info (device dm-11): turning on async discard
[16512.969284] BTRFS info (device dm-11): disk space caching is enabled
[16512.995703] ------------[ cut here ]------------
[16512.995784] WARNING: CPU: 0 PID: 2235757 at fs/btrfs/discard.c:604 btrfs_discard_update_discardable+0x98/0xb0
[16512.995792] 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 iTCO_vendor_support intel_rapl_msr snd_hda_codec_generic snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hwdep snd_hda_core joydev snd_pcm intel_rapl_common i2c_i801 snd_timer i2c_smbus snd soundcore lpc_ich virtio_balloon zram ip_tables xfs crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel serio_raw qemu_fw_cfg
[16512.995880] CPU: 0 PID: 2235757 Comm: kworker/u4:8 Tainted: G W 5.19.0-rc8+ #797
[16512.995883] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[16512.995885] Workqueue: btrfs-cache btrfs_work_helper
[16512.995890] RIP: 0010:btrfs_discard_update_discardable+0x98/0xb0
[16512.995893] 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
[16512.995895] RSP: 0018:ffffb06602be3ad0 EFLAGS: 00010246
[16512.995898] RAX: 0000000000000000 RBX: ffff9bad4ea53600 RCX: 0000000000000001
[16512.995900] RDX: 0000000000000000 RSI: ffffffffaf807c5b RDI: ffffffffaf8a831e
[16512.995901] RBP: ffff9bad6eb18000 R08: 0000000000000000 R09: 0000000000001000
[16512.995903] R10: 000000000003e842 R11: 0000000000839700 R12: ffff9bad52d31810
[16512.995904] R13: ffff9bad567984c0 R14: ffff9bad6eb18000 R15: ffff9bad42a6ad90
[16512.995906] FS: 0000000000000000(0000) GS:ffff9badbbc00000(0000) knlGS:0000000000000000
[16512.995908] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[16512.995910] CR2: 00007f16688104e0 CR3: 0000000103f8a001 CR4: 0000000000370ef0
[16512.995914] Call Trace:
[16512.995916]
[16512.995920] __btrfs_remove_free_space_cache+0x27/0x30
[16512.995925] load_free_space_cache+0xad2/0xaf0
[16512.995981] caching_thread+0x40b/0x650
[16512.995989] ? lock_release+0x137/0x2d0
[16512.995997] btrfs_work_helper+0xf2/0x3e0
[16512.996000] ? lock_is_held_type+0xe2/0x140
[16512.996007] process_one_work+0x271/0x590
[16512.996017] worker_thread+0x52/0x3b0
[16512.996022] ? process_one_work+0x590/0x590
[16512.996025] kthread+0xf0/0x120
[16512.996027] ? kthread_complete_and_exit+0x20/0x20
[16512.996032] ret_from_fork+0x1f/0x30
[16512.996046]
[16512.996047] irq event stamp: 334439
[16512.996049] hardirqs last enabled at (334445): [] __up_console_sem+0x5e/0x70
[16512.996052] hardirqs last disabled at (334450): [] __up_console_sem+0x43/0x70
[16512.996054] softirqs last enabled at (333862): [] __irq_exit_rcu+0xeb/0x160
[16512.996071] softirqs last disabled at (333855): [] __irq_exit_rcu+0xeb/0x160
[16512.996074] ---[ end trace 0000000000000000 ]---
[16512.996077] BTRFS warning (device dm-11): block group 298844160 has wrong amount of free space
[16512.996092] BTRFS warning (device dm-11): failed to load free space cache for block group 298844160, rebuilding it now
[16514.046912] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16514.046922] BTRFS error (device dm-11): error writing primary super block to device 1
[16514.046924] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16514.047813] BTRFS info (device dm-11: state E): forced readonly
[16514.047827] BTRFS: error (device dm-11: state EA) in btrfs_sync_log:3203: errno=-5 IO failure
[16514.051625] BTRFS warning (device dm-11: state EA): direct IO failed ino 2593 rw 0,0 sector 0x2bf660 len 57344 err no 10
[16514.054201] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16514.054206] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16514.057466] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16514.058491] BTRFS warning (device dm-11: state EA): direct IO failed ino 2591 rw 0,0 sector 0x2be9b8 len 24576 err no 10
[16514.070094] BTRFS warning (device dm-11: state EA): direct IO failed ino 2586 rw 0,0 sector 0x292d50 len 4096 err no 10
[16514.070662] BTRFS warning (device dm-11: state EA): direct IO failed ino 2612 rw 0,0 sector 0x2c49a8 len 90112 err no 10
[16514.073007] BTRFS warning (device dm-11: state EA): direct IO failed ino 2607 rw 0,0 sector 0x2c37e8 len 45056 err no 10
[16514.074454] BTRFS warning (device dm-11: state EA): direct IO failed ino 2612 rw 0,0 sector 0x2c49a8 len 32768 err no 10
[16514.075237] BTRFS warning (device dm-11: state EA): direct IO failed ino 2612 rw 0,0 sector 0x2c37a8 len 32768 err no 10
[16514.077792] BTRFS warning (device dm-11: state EA): direct IO failed ino 2607 rw 0,0 sector 0x2c3900 len 57344 err no 10
[16514.078002] BTRFS warning (device dm-11: state EA): direct IO failed ino 2612 rw 0,0 sector 0x2c3790 len 45056 err no 10
[16514.078947] BTRFS warning (device dm-11: state EA): direct IO failed ino 2612 rw 0,0 sector 0x2c4a68 len 8192 err no 10
[16514.079320] BTRFS warning (device dm-11: state EA): direct IO failed ino 2607 rw 0,0 sector 0x2c38b8 len 12288 err no 10
[16514.080180] BTRFS warning (device dm-11: state EA): direct IO failed ino 2612 rw 0,0 sector 0x2c4a08 len 57344 err no 10
[16514.096392] BTRFS warning (device dm-11: state EA): direct IO failed ino 2582 rw 0,0 sector 0x2bd578 len 49152 err no 10
[16514.607348] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16514.607356] BTRFS info (device dm-11): turning on async discard
[16514.607358] BTRFS info (device dm-11): disk space caching is enabled
[16515.643224] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16515.643230] btrfs_dev_stat_inc_and_print: 47 callbacks suppressed
[16515.643232] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 1, rd 0, flush 0, corrupt 0, gen 0
[16515.643244] BTRFS warning (device dm-11): lost page write due to IO error on /dev/mapper/error-test (-5)
[16515.643246] BTRFS error (device dm-11): bdev /dev/mapper/error-test errs: wr 2, rd 0, flush 0, corrupt 0, gen 0
[16515.643250] BTRFS error (device dm-11): error writing primary super block to device 1
[16515.643255] BTRFS: error (device dm-11) in write_all_supers:4342: errno=-5 IO failure (1 errors while writing supers)
[16515.643853] BTRFS info (device dm-11: state E): forced readonly
[16515.643858] BTRFS warning (device dm-11: state E): Skipping commit of aborted transaction.
[16515.644630] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16515.646515] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 3, rd 0, flush 0, corrupt 0, gen 0
[16515.646885] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 4, rd 0, flush 0, corrupt 0, gen 0
[16515.646915] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 5, rd 0, flush 0, corrupt 0, gen 0
[16515.647407] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 6, rd 0, flush 0, corrupt 0, gen 0
[16515.647428] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 7, rd 0, flush 0, corrupt 0, gen 0
[16515.647599] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 8, rd 0, flush 0, corrupt 0, gen 0
[16515.647640] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 9, rd 0, flush 0, corrupt 0, gen 0
[16515.647651] BTRFS error (device dm-11: state EA): bdev /dev/mapper/error-test errs: wr 10, rd 0, flush 0, corrupt 0, gen 0
[16515.648039] BTRFS warning (device dm-11: state EA): Skipping commit of aborted transaction.
[16515.648049] BTRFS: error (device dm-11: state EA) in cleanup_transaction:2007: errno=-5 IO failure
[16515.654656] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16515.674575] BTRFS warning (device dm-11: state EA): direct IO failed ino 262 rw 0,0 sector 0x2c9cd8 len 8192 err no 10
[16515.675118] BTRFS warning (device dm-11: state EA): direct IO failed ino 2345 rw 0,0 sector 0x2c8058 len 40960 err no 10
[16515.675759] BTRFS warning (device dm-11: state EA): direct IO failed ino 262 rw 0,0 sector 0x2c9c28 len 98304 err no 10
[16515.675867] BTRFS warning (device dm-11: state EA): direct IO failed ino 2345 rw 0,0 sector 0x2c9820 len 32768 err no 10
[16515.676238] BTRFS warning (device dm-11: state EA): direct IO failed ino 2345 rw 0,0 sector 0x2c7fd0 len 69632 err no 10
[16515.676843] BTRFS warning (device dm-11: state EA): direct IO failed ino 2148 rw 0,0 sector 0x2cdbc0 len 12288 err no 10
[16515.679929] BTRFS warning (device dm-11: state EA): direct IO failed ino 2583 rw 0,0 sector 0x7300 len 4096 err no 10
[16515.681574] BTRFS warning (device dm-11: state EA): direct IO failed ino 262 rw 0,0 sector 0x2c9c00 len 49152 err no 10
[16515.682104] BTRFS warning (device dm-11: state EA): direct IO failed ino 2589 rw 0,0 sector 0x2c6450 len 16384 err no 10
[16515.701688] BTRFS warning (device dm-11: state EA): direct IO failed ino 2148 rw 0,0 sector 0x2cd978 len 28672 err no 10
[16515.701781] BTRFS warning (device dm-11: state EA): direct IO failed ino 2617 rw 0,0 sector 0x2cdcc0 len 12288 err no 10
[16515.702224] BTRFS warning (device dm-11: state EA): direct IO failed ino 2148 rw 0,0 sector 0x2cdb90 len 36864 err no 10
[16516.214782] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16516.214791] BTRFS info (device dm-11): turning on async discard
[16516.214793] BTRFS info (device dm-11): disk space caching is enabled
[16516.219386] BTRFS info (device dm-11): start tree-log replay
[16516.318198] BTRFS: error (device dm-11: state A) in __btrfs_free_extent:3078: errno=-5 IO failure
[16516.318708] BTRFS info (device dm-11: state EA): forced readonly
[16516.318714] BTRFS: error (device dm-11: state EA) in btrfs_run_delayed_refs:2141: errno=-5 IO failure
[16516.321831] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16516.787733] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16516.787741] BTRFS info (device dm-11): turning on async discard
[16516.787743] BTRFS info (device dm-11): disk space caching is enabled
[16516.826051] Buffer I/O error on dev dm-11, logical block 2621424, async page read
[16516.845919] BTRFS: error (device dm-11: state A) in __btrfs_free_extent:3078: errno=-5 IO failure
[16516.846608] BTRFS info (device dm-11: state EA): forced readonly
[16516.846615] BTRFS: error (device dm-11: state EA) in btrfs_run_delayed_refs:2141: errno=-5 IO failure
[16517.343956] BTRFS info (device dm-11): using crc32c (crc32c-intel) checksum algorithm
[16517.343964] BTRFS info (device dm-11): turning on async discard
[16517.343967] BTRFS info (device dm-11): disk space caching is enabled