[54552.734969] run fstests generic/251 at 2023-08-01 12:04:22
[54553.175959] BTRFS: device fsid ec3e1159-917e-46d6-82d2-6d36aac552b0 devid 1 transid 2450465 /dev/mapper/vg0-lv0 scanned by mount (3754245)
[54553.177054] BTRFS info (device dm-0): using crc32c (crc32c-intel) checksum algorithm
[54553.177061] BTRFS info (device dm-0): using free space tree
[54553.181165] BTRFS info (device dm-0): auto enabling async discard
[54553.373938] BTRFS: device fsid 6d35f8c0-2c4c-4f5b-8c05-5e9334373997 devid 1 transid 6 /dev/mapper/vg0-lv9 scanned by mkfs.btrfs (3754293)
[54553.391072] BTRFS info: devid 1 device path /dev/mapper/vg0-lv9 changed to /dev/dm-9 scanned by systemd-udevd (3753163)
[54553.391921] BTRFS info (device dm-9): using crc32c (crc32c-intel) checksum algorithm
[54553.391929] BTRFS info (device dm-9): turning on sync discard
[54553.391932] BTRFS info (device dm-9): enabling free space tree
[54553.391934] BTRFS info (device dm-9): using free space tree
[54553.392211] BTRFS info: devid 1 device path /dev/dm-9 changed to /dev/mapper/vg0-lv9 scanned by systemd-udevd (3753163)
[54553.395045] BTRFS info (device dm-9): creating free space tree
[54553.395667] BTRFS info (device dm-9): setting compat-ro feature flag for FREE_SPACE_TREE (0x1)
[54553.395671] BTRFS info (device dm-9): setting compat-ro feature flag for FREE_SPACE_TREE_VALID (0x2)
[54553.403233] BTRFS info (device dm-9): cleaning free space cache v1
[54553.410963] BTRFS info (device dm-9): checking UUID tree

[54824.010967] ======================================================
[54824.011199] WARNING: possible circular locking dependency detected
[54824.011426] 6.5.0-rc3+ #1257 Not tainted
[54824.011574] ------------------------------------------------------
[54824.011831] kswapd0/47 is trying to acquire lock:
[54824.012006] ffff8c9450602378 (btrfs_trans_num_writers){++++}-{0:0}, at: join_transaction+0x1af/0x590
[54824.012350] 
               but task is already holding lock:
[54824.012565] ffff8c944431c600 (sb_internal#2){++++}-{0:0}, at: btrfs_commit_inode_delayed_inode+0x5f/0x120
[54824.012915] 
               which lock already depends on the new lock.

[54824.013214] 
               the existing dependency chain (in reverse order) is:
[54824.013486] 
               -> #3 (sb_internal#2){++++}-{0:0}:
[54824.013705]        start_transaction+0x3f9/0x740
[54824.013881]        btrfs_commit_inode_delayed_inode+0x5f/0x120
[54824.014097]        btrfs_evict_inode+0x273/0x3c0
[54824.014275]        evict+0xcc/0x1d0
[54824.014410]        inode_lru_isolate+0x14d/0x1e0
[54824.014584]        __list_lru_walk_one+0xbe/0x1c0
[54824.014763]        list_lru_walk_one+0x58/0x80
[54824.014933]        prune_icache_sb+0x39/0x60
[54824.015096]        super_cache_scan+0x161/0x1f0
[54824.015270]        do_shrink_slab+0x163/0x340
[54824.015438]        shrink_slab+0x1d7/0x2a0
[54824.015592]        shrink_node+0x2eb/0x7b0
[54824.015748]        balance_pgdat+0x344/0x780
[54824.015910]        kswapd+0x205/0x410
[54824.016052]        kthread+0xfc/0x130
[54824.016198]        ret_from_fork+0x2d/0x50
[54824.016354]        ret_from_fork_asm+0x1b/0x30
[54824.016524] 
               -> #2 (fs_reclaim){+.+.}-{0:0}:
[54824.016736]        fs_reclaim_acquire+0xa5/0xe0
[54824.016906]        kmem_cache_alloc_lru+0x4e/0x570
[54824.017087]        btrfs_alloc_inode+0x2d/0x250
[54824.017264]        alloc_inode+0x1a/0xc0
[54824.017412]        iget5_locked+0xba/0x110
[54824.017566]        btrfs_iget+0x43/0xe0
[54824.017711]        create_reloc_inode+0x19d/0x370
[54824.017889]        btrfs_relocate_block_group+0x1b7/0x410
[54824.018090]        btrfs_relocate_chunk+0x4c/0x1b0
[54824.018273]        btrfs_balance+0x8e7/0x11d0
[54824.018437]        btrfs_ioctl+0x1d3d/0x2900
[54824.018600]        __x64_sys_ioctl+0x8b/0xc0
[54824.018762]        do_syscall_64+0x38/0x90
[54824.018920]        entry_SYSCALL_64_after_hwframe+0x6e/0xd8
[54824.019127] 
               -> #1 (btrfs_trans_num_extwriters){++++}-{0:0}:
[54824.019389]        join_transaction+0xb4/0x590
[54824.019557]        start_transaction+0x187/0x740
[54824.019730]        btrfs_uuid_scan_kthread+0x2bc/0x3d0
[54824.019922]        kthread+0xfc/0x130
[54824.020063]        ret_from_fork+0x2d/0x50
[54824.020221]        ret_from_fork_asm+0x1b/0x30
[54824.020392] 
               -> #0 (btrfs_trans_num_writers){++++}-{0:0}:
[54824.020641]        __lock_acquire+0x1415/0x2190
[54824.020814]        lock_acquire+0xc7/0x2b0
[54824.020967]        join_transaction+0x1de/0x590
[54824.021142]        start_transaction+0x187/0x740
[54824.021317]        btrfs_commit_inode_delayed_inode+0x5f/0x120
[54824.021532]        btrfs_evict_inode+0x273/0x3c0
[54824.021706]        evict+0xcc/0x1d0
[54824.021839]        inode_lru_isolate+0x14d/0x1e0
[54824.022014]        __list_lru_walk_one+0xbe/0x1c0
[54824.022195]        list_lru_walk_one+0x58/0x80
[54824.022363]        prune_icache_sb+0x39/0x60
[54824.022525]        super_cache_scan+0x161/0x1f0
[54824.022698]        do_shrink_slab+0x163/0x340
[54824.022865]        shrink_slab+0x1d7/0x2a0
[54824.023021]        shrink_node+0x2eb/0x7b0
[54824.023178]        balance_pgdat+0x344/0x780
[54824.023340]        kswapd+0x205/0x410
[54824.023479]        kthread+0xfc/0x130
[54824.023619]        ret_from_fork+0x2d/0x50
[54824.023773]        ret_from_fork_asm+0x1b/0x30
[54824.023941] 
               other info that might help us debug this:

[54824.024233] Chain exists of:
                 btrfs_trans_num_writers --> fs_reclaim --> sb_internal#2

[54824.024623]  Possible unsafe locking scenario:

[54824.024840]        CPU0                    CPU1
[54824.025010]        ----                    ----
[54824.025181]   rlock(sb_internal#2);
[54824.025315]                                lock(fs_reclaim);
[54824.025527]                                lock(sb_internal#2);
[54824.025746]   rlock(btrfs_trans_num_writers);
[54824.025911] 
                *** DEADLOCK ***

[54824.026135] 4 locks held by kswapd0/47:
[54824.026305]  #0: ffffffff95e62280 (fs_reclaim){+.+.}-{0:0}, at: balance_pgdat+0x492/0x780
[54824.026604]  #1: ffffffff95e507d0 (shrinker_rwsem){++++}-{3:3}, at: shrink_slab+0x113/0x2a0
[54824.026908]  #2: ffff8c944431c0e0 (&type->s_umount_key#45){++++}-{3:3}, at: super_cache_scan+0x38/0x1f0
[54824.027251]  #3: ffff8c944431c600 (sb_internal#2){++++}-{0:0}, at: btrfs_commit_inode_delayed_inode+0x5f/0x120
[54824.027615] 
               stack backtrace:
[54824.027781] CPU: 0 PID: 47 Comm: kswapd0 Not tainted 6.5.0-rc3+ #1257
[54824.028017] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[54824.028328] Call Trace:
[54824.028425]  
[54824.028512]  dump_stack_lvl+0x58/0x90
[54824.028655]  check_noncircular+0x101/0x110
[54824.028809]  __lock_acquire+0x1415/0x2190
[54824.028962]  lock_acquire+0xc7/0x2b0
[54824.029098]  ? join_transaction+0x1af/0x590
[54824.029260]  ? lock_release+0x134/0x270
[54824.029405]  join_transaction+0x1de/0x590
[54824.029555]  ? join_transaction+0x1af/0x590
[54824.029713]  start_transaction+0x187/0x740
[54824.029868]  btrfs_commit_inode_delayed_inode+0x5f/0x120
[54824.030066]  btrfs_evict_inode+0x273/0x3c0
[54824.030224]  ? lock_release+0x134/0x270
[54824.030369]  ? __pfx_wake_bit_function+0x10/0x10
[54824.030543]  evict+0xcc/0x1d0
[54824.030659]  inode_lru_isolate+0x14d/0x1e0
[54824.030815]  __list_lru_walk_one+0xbe/0x1c0
[54824.030975]  ? __pfx_inode_lru_isolate+0x10/0x10
[54824.031155]  ? __pfx_inode_lru_isolate+0x10/0x10
[54824.031329]  list_lru_walk_one+0x58/0x80
[54824.031480]  prune_icache_sb+0x39/0x60
[54824.031624]  super_cache_scan+0x161/0x1f0
[54824.031777]  do_shrink_slab+0x163/0x340
[54824.031924]  ? lock_is_held_type+0xe2/0x140
[54824.032081]  shrink_slab+0x1d7/0x2a0
[54824.032279]  shrink_node+0x2eb/0x7b0
[54824.032418]  balance_pgdat+0x344/0x780
[54824.032567]  kswapd+0x205/0x410
[54824.032690]  ? __pfx_autoremove_wake_function+0x10/0x10
[54824.032884]  ? __pfx_kswapd+0x10/0x10
[54824.033023]  kthread+0xfc/0x130
[54824.033152]  ? __pfx_kthread+0x10/0x10
[54824.033294]  ret_from_fork+0x2d/0x50
[54824.033431]  ? __pfx_kthread+0x10/0x10
[54824.033573]  ret_from_fork_asm+0x1b/0x30
[54824.033725] RIP: 0000:0x0
[54824.033839] Code: Unable to access opcode bytes at 0xffffffffffffffd6.
[54824.034077] RSP: 0000:0000000000000000 EFLAGS: 00000000 ORIG_RAX: 0000000000000000
[54824.034355] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
[54824.034614] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
[54824.034874] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
[54824.035134] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
[54824.035394] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
[54824.035655]  
[55226.332725] BTRFS: device fsid 6d35f8c0-2c4c-4f5b-8c05-5e9334373997 devid 1 transid 176 /dev/mapper/vg0-lv9 scanned by mount (3769805)
[55226.333708] BTRFS info (device dm-9): using crc32c (crc32c-intel) checksum algorithm
[55226.334002] BTRFS info (device dm-9): turning on sync discard
[55226.334213] BTRFS info (device dm-9): using free space tree