[29140.611244] run fstests generic/251 at 2023-08-18 04:58:20
[29141.059725] BTRFS: device fsid 442e5b9d-ccad-458f-8dc7-acd1904d321e devid 1 transid 1445588 /dev/mapper/vg0-lv0 scanned by mount (610773)
[29141.060797] BTRFS info (device dm-0): using crc32c (crc32c-intel) checksum algorithm
[29141.060803] BTRFS info (device dm-0): using free space tree
[29141.066394] BTRFS info (device dm-0): auto enabling async discard
[29141.282220] BTRFS: device fsid 2092deaf-0224-493a-a00c-28d6ee69d8c3 devid 1 transid 6 /dev/mapper/vg0-lv7 scanned by mkfs.btrfs (610821)
[29141.312814] BTRFS info (device dm-7): using crc32c (crc32c-intel) checksum algorithm
[29141.312824] BTRFS info (device dm-7): use zlib compression, level 3
[29141.312828] BTRFS info (device dm-7): using free space tree
[29141.317194] BTRFS info (device dm-7): auto enabling async discard
[29141.317348] BTRFS info (device dm-7): checking UUID tree

[29709.655074] ======================================================
[29709.655275] WARNING: possible circular locking dependency detected
[29709.655477] 6.5.0-rc6+ #1274 Not tainted
[29709.655646] ------------------------------------------------------
[29709.655849] kswapd0/47 is trying to acquire lock:
[29709.656023] ffff97b64ad2e388 (btrfs_trans_num_writers){++++}-{0:0}, at: join_transaction+0x1af/0x590
[29709.659211] 
               but task is already holding lock:
[29709.659461] ffff97b65ac9c600 (sb_internal){++++}-{0:0}, at: btrfs_commit_inode_delayed_inode+0x5f/0x120
[29709.659780] 
               which lock already depends on the new lock.

[29709.660097] 
               the existing dependency chain (in reverse order) is:
[29709.660359] 
               -> #3 (sb_internal){++++}-{0:0}:
[29709.660599]        start_transaction+0x3f9/0x740
[29709.660774]        btrfs_commit_inode_delayed_inode+0x5f/0x120
[29709.660972]        btrfs_evict_inode+0x273/0x3c0
[29709.661148]        evict+0xcc/0x1d0
[29709.661299]        inode_lru_isolate+0x14d/0x1e0
[29709.661470]        __list_lru_walk_one+0xbe/0x1c0
[29709.661652]        list_lru_walk_one+0x58/0x80
[29709.661825]        prune_icache_sb+0x39/0x60
[29709.661990]        super_cache_scan+0x161/0x1f0
[29709.662161]        do_shrink_slab+0x163/0x340
[29709.662334]        shrink_slab+0x1d7/0x2a0
[29709.662499]        shrink_node+0x2eb/0x7b0
[29709.662668]        balance_pgdat+0x344/0x780
[29709.662833]        kswapd+0x205/0x410
[29709.662990]        kthread+0xfc/0x130
[29709.663194]        ret_from_fork+0x2d/0x50
[29709.663436]        ret_from_fork_asm+0x1b/0x30
[29709.663634] 
               -> #2 (fs_reclaim){+.+.}-{0:0}:
[29709.663865]        fs_reclaim_acquire+0xa5/0xe0
[29709.664037]        kmem_cache_alloc_lru+0x4e/0x570
[29709.664217]        btrfs_alloc_inode+0x2d/0x250
[29709.664390]        alloc_inode+0x1a/0xc0
[29709.664555]        iget5_locked+0xba/0x110
[29709.664719]        btrfs_iget+0x43/0xe0
[29709.664879]        create_reloc_inode+0x19d/0x370
[29709.665056]        btrfs_relocate_block_group+0x1b7/0x410
[29709.665243]        btrfs_relocate_chunk+0x4c/0x1b0
[29709.665417]        btrfs_balance+0x8e7/0x11d0
[29709.665591]        btrfs_ioctl+0x1d3d/0x2900
[29709.665760]        __x64_sys_ioctl+0x8b/0xc0
[29709.665926]        do_syscall_64+0x38/0x90
[29709.666089]        entry_SYSCALL_64_after_hwframe+0x73/0xdd
[29709.666283] 
               -> #1 (btrfs_trans_num_extwriters){++++}-{0:0}:
[29709.666540]        join_transaction+0xb4/0x590
[29709.666713]        start_transaction+0x187/0x740
[29709.666889]        btrfs_dirty_inode+0x40/0xd0
[29709.667062]        touch_atime+0x15b/0x280
[29709.667224]        filemap_read+0x2de/0x310
[29709.667388]        vfs_read+0x19e/0x2e0
[29709.667555]        ksys_read+0x55/0xd0
[29709.667718]        do_syscall_64+0x38/0x90
[29709.667881]        entry_SYSCALL_64_after_hwframe+0x73/0xdd
[29709.668067] 
               -> #0 (btrfs_trans_num_writers){++++}-{0:0}:
[29709.668320]        __lock_acquire+0x1415/0x2190
[29709.668494]        lock_acquire+0xc7/0x2b0
[29709.668686]        join_transaction+0x1de/0x590
[29709.668894]        start_transaction+0x187/0x740
[29709.669100]        btrfs_commit_inode_delayed_inode+0x5f/0x120
[29709.669294]        btrfs_evict_inode+0x273/0x3c0
[29709.669467]        evict+0xcc/0x1d0
[29709.669626]        inode_lru_isolate+0x14d/0x1e0
[29709.669802]        __list_lru_walk_one+0xbe/0x1c0
[29709.669976]        list_lru_walk_one+0x58/0x80
[29709.670144]        prune_icache_sb+0x39/0x60
[29709.670313]        super_cache_scan+0x161/0x1f0
[29709.670486]        do_shrink_slab+0x163/0x340
[29709.670657]        shrink_slab+0x1d7/0x2a0
[29709.670818]        shrink_node+0x2eb/0x7b0
[29709.670984]        balance_pgdat+0x344/0x780
[29709.671248]        kswapd+0x205/0x410
[29709.671451]        kthread+0xfc/0x130
[29709.672680]        ret_from_fork+0x2d/0x50
[29709.672846]        ret_from_fork_asm+0x1b/0x30
[29709.673018] 
               other info that might help us debug this:

[29709.673333] Chain exists of:
                 btrfs_trans_num_writers --> fs_reclaim --> sb_internal

[29709.673700]  Possible unsafe locking scenario:

[29709.673936]        CPU0                    CPU1
[29709.674106]        ----                    ----
[29709.674275]   rlock(sb_internal);
[29709.674423]                                lock(fs_reclaim);
[29709.674715]                                lock(sb_internal);
[29709.675052]   rlock(btrfs_trans_num_writers);
[29709.675362] 
                *** DEADLOCK ***

[29709.675702] 4 locks held by kswapd0/47:
[29709.675913]  #0: ffffffffa0e62280 (fs_reclaim){+.+.}-{0:0}, at: balance_pgdat+0x492/0x780
[29709.676257]  #1: ffffffffa0e507d0 (shrinker_rwsem){++++}-{3:3}, at: shrink_slab+0x113/0x2a0
[29709.676600]  #2: ffff97b65ac9c0e0 (&type->s_umount_key#35){++++}-{3:3}, at: super_cache_scan+0x38/0x1f0
[29709.676984]  #3: ffff97b65ac9c600 (sb_internal){++++}-{0:0}, at: btrfs_commit_inode_delayed_inode+0x5f/0x120
[29709.677364] 
               stack backtrace:
[29709.677615] CPU: 1 PID: 47 Comm: kswapd0 Not tainted 6.5.0-rc6+ #1274
[29709.677855] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[29709.678444] Call Trace:
[29709.678645]  
[29709.678799]  dump_stack_lvl+0x58/0x90
[29709.679000]  check_noncircular+0x101/0x110
[29709.679206]  __lock_acquire+0x1415/0x2190
[29709.679406]  lock_acquire+0xc7/0x2b0
[29709.679600]  ? join_transaction+0x1af/0x590
[29709.679805]  ? lock_release+0x134/0x270
[29709.679993]  join_transaction+0x1de/0x590
[29709.680206]  ? join_transaction+0x1af/0x590
[29709.680409]  start_transaction+0x187/0x740
[29709.680603]  btrfs_commit_inode_delayed_inode+0x5f/0x120
[29709.680824]  btrfs_evict_inode+0x273/0x3c0
[29709.681028]  ? lock_release+0x134/0x270
[29709.681222]  ? __pfx_wake_bit_function+0x10/0x10
[29709.681424]  evict+0xcc/0x1d0
[29709.681614]  inode_lru_isolate+0x14d/0x1e0
[29709.681809]  __list_lru_walk_one+0xbe/0x1c0
[29709.682000]  ? __pfx_inode_lru_isolate+0x10/0x10
[29709.682211]  ? __pfx_inode_lru_isolate+0x10/0x10
[29709.682412]  list_lru_walk_one+0x58/0x80
[29709.682617]  prune_icache_sb+0x39/0x60
[29709.682817]  super_cache_scan+0x161/0x1f0
[29709.683019]  do_shrink_slab+0x163/0x340
[29709.683220]  shrink_slab+0x1d7/0x2a0
[29709.683419]  shrink_node+0x2eb/0x7b0
[29709.683602]  balance_pgdat+0x344/0x780
[29709.683800]  kswapd+0x205/0x410
[29709.683977]  ? __pfx_autoremove_wake_function+0x10/0x10
[29709.684200]  ? __pfx_kswapd+0x10/0x10
[29709.684389]  kthread+0xfc/0x130
[29709.684576]  ? __pfx_kthread+0x10/0x10
[29709.684777]  ret_from_fork+0x2d/0x50
[29709.684969]  ? __pfx_kthread+0x10/0x10
[29709.685173]  ret_from_fork_asm+0x1b/0x30
[29709.685362]  
[30157.331494] BTRFS: device fsid 2092deaf-0224-493a-a00c-28d6ee69d8c3 devid 1 transid 68 /dev/mapper/vg0-lv7 scanned by mount (625115)
[30157.332820] BTRFS info (device dm-7): using crc32c (crc32c-intel) checksum algorithm
[30157.333113] BTRFS info (device dm-7): use zlib compression, level 3
[30157.333300] BTRFS info (device dm-7): using free space tree
[30157.336385] BTRFS info (device dm-7): auto enabling async discard