[11795.019743] run fstests generic/251 at 2023-11-02 00:09:04
[11795.481271] BTRFS: device fsid 442e5b9d-ccad-458f-8dc7-acd1904d321e devid 1 transid 1750052 /dev/mapper/vg0-lv0 scanned by mount (1550058)
[11795.481877] BTRFS info (device dm-0): using crc32c (crc32c-intel) checksum algorithm
[11795.481884] BTRFS info (device dm-0): using free space tree
[11795.487599] BTRFS info (device dm-0): auto enabling async discard
[11797.123798] BTRFS: device fsid 00137945-b46c-4b00-9862-93d33e9c8ccd devid 1 transid 6 /dev/mapper/vg0-lv7 scanned by mount (1550117)
[11797.124654] BTRFS info (device dm-7): using crc32c (crc32c-intel) checksum algorithm
[11797.124663] BTRFS info (device dm-7): using free space tree
[11797.135713] BTRFS info (device dm-7): auto enabling async discard
[11797.135954] BTRFS info (device dm-7): checking UUID tree

[12624.328896] ======================================================
[12624.329200] WARNING: possible circular locking dependency detected
[12624.329515] 6.6.0-rc7+ #1346 Not tainted
[12624.329764] ------------------------------------------------------
[12624.330073] kswapd0/50 is trying to acquire lock:
[12624.330346] ffff9cd0c659e390 (btrfs_trans_num_writers){++++}-{0:0}, at: join_transaction+0x1d0/0x580
[12624.330825] 
               but task is already holding lock:
[12624.331194] ffff9cd0f82c8600 (sb_internal){++++}-{0:0}, at: btrfs_commit_inode_delayed_inode+0x5f/0x120
[12624.331689] 
               which lock already depends on the new lock.

[12624.332201] 
               the existing dependency chain (in reverse order) is:
[12624.332597] 
               -> #3 (sb_internal){++++}-{0:0}:
[12624.332896]        start_transaction+0x493/0xad0
[12624.333114]        btrfs_commit_inode_delayed_inode+0x5f/0x120
[12624.333364]        btrfs_evict_inode+0x273/0x3c0
[12624.333592]        evict+0xcc/0x1d0
[12624.333793]        inode_lru_isolate+0x14d/0x1e0
[12624.334009]        __list_lru_walk_one+0xbe/0x1c0
[12624.334232]        list_lru_walk_one+0x58/0x80
[12624.334453]        prune_icache_sb+0x39/0x60
[12624.334669]        super_cache_scan+0x167/0x1f0
[12624.334887]        do_shrink_slab+0x163/0x340
[12624.335107]        shrink_slab+0x1d7/0x2a0
[12624.335320]        shrink_node+0x2eb/0x7b0
[12624.335529]        balance_pgdat+0x344/0x780
[12624.335742]        kswapd+0x205/0x410
[12624.335938]        kthread+0xff/0x130
[12624.336136]        ret_from_fork+0x2d/0x50
[12624.336346]        ret_from_fork_asm+0x1b/0x30
[12624.336561] 
               -> #2 (fs_reclaim){+.+.}-{0:0}:
[12624.336867]        fs_reclaim_acquire+0xa2/0xe0
[12624.337091]        kmem_cache_alloc_lru+0x4e/0x600
[12624.337317]        btrfs_alloc_inode+0x2d/0x250
[12624.337537]        alloc_inode+0x1a/0xc0
[12624.337746]        iget5_locked+0xba/0x110
[12624.337952]        btrfs_iget+0x43/0xe0
[12624.338152]        create_reloc_inode+0x1a0/0x360
[12624.338380]        btrfs_relocate_block_group+0x1d2/0x3d0
[12624.338621]        btrfs_relocate_chunk+0x4c/0x1b0
[12624.338841]        btrfs_balance+0x8e7/0x11d0
[12624.339053]        btrfs_ioctl+0x1c25/0x2860
[12624.339263]        __x64_sys_ioctl+0x8b/0xc0
[12624.339484]        do_syscall_64+0x38/0x90
[12624.339699]        entry_SYSCALL_64_after_hwframe+0x6e/0xd8
[12624.339942] 
               -> #1 (btrfs_trans_num_extwriters){++++}-{0:0}:
[12624.340272]        join_transaction+0xaf/0x580
[12624.340489]        start_transaction+0x1a0/0xad0
[12624.340710]        btrfs_dirty_inode+0x40/0xd0
[12624.340928]        touch_atime+0x133/0x220
[12624.341138]        filemap_read+0x2f0/0x300
[12624.341347]        __kernel_read+0xef/0x2a0
[12624.341555]        bprm_execve+0x2b0/0x870
[12624.341764]        do_execveat_common+0x1b5/0x260
[12624.341987]        __x64_sys_execve+0x39/0x50
[12624.342198]        do_syscall_64+0x38/0x90
[12624.342408]        entry_SYSCALL_64_after_hwframe+0x6e/0xd8
[12624.342654] 
               -> #0 (btrfs_trans_num_writers){++++}-{0:0}:
[12624.342974]        __lock_acquire+0x1415/0x2190
[12624.343192]        lock_acquire+0xc7/0x2b0
[12624.343405]        join_transaction+0x1e4/0x580
[12624.343622]        start_transaction+0x1a0/0xad0
[12624.343838]        btrfs_commit_inode_delayed_inode+0x5f/0x120
[12624.344084]        btrfs_evict_inode+0x273/0x3c0
[12624.344310]        evict+0xcc/0x1d0
[12624.344506]        inode_lru_isolate+0x14d/0x1e0
[12624.344754]        __list_lru_walk_one+0xbe/0x1c0
[12624.344972]        list_lru_walk_one+0x58/0x80
[12624.345188]        prune_icache_sb+0x39/0x60
[12624.345407]        super_cache_scan+0x167/0x1f0
[12624.345623]        do_shrink_slab+0x163/0x340
[12624.345836]        shrink_slab+0x1d7/0x2a0
[12624.346047]        shrink_node+0x2eb/0x7b0
[12624.346255]        balance_pgdat+0x344/0x780
[12624.346472]        kswapd+0x205/0x410
[12624.346669]        kthread+0xff/0x130
[12624.346868]        ret_from_fork+0x2d/0x50
[12624.347076]        ret_from_fork_asm+0x1b/0x30
[12624.347288] 
               other info that might help us debug this:

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

[12624.348167]  Possible unsafe locking scenario:

[12624.348476]        CPU0                    CPU1
[12624.348690]        ----                    ----
[12624.348904]   rlock(sb_internal);
[12624.349092]                                lock(fs_reclaim);
[12624.349338]                                lock(sb_internal);
[12624.349577]   rlock(btrfs_trans_num_writers);
[12624.349787] 
                *** DEADLOCK ***

[12624.350134] 4 locks held by kswapd0/50:
[12624.350343]  #0: ffffffffa2e62ea0 (fs_reclaim){+.+.}-{0:0}, at: balance_pgdat+0x3eb/0x780
[12624.350702]  #1: ffffffffa2e513b0 (shrinker_rwsem){++++}-{3:3}, at: shrink_slab+0x113/0x2a0
[12624.351067]  #2: ffff9cd0f82c80e0 (&type->s_umount_key#35){++++}-{3:3}, at: super_cache_scan+0x38/0x1f0
[12624.351458]  #3: ffff9cd0f82c8600 (sb_internal){++++}-{0:0}, at: btrfs_commit_inode_delayed_inode+0x5f/0x120
[12624.351863] 
               stack backtrace:
[12624.352139] CPU: 1 PID: 50 Comm: kswapd0 Not tainted 6.6.0-rc7+ #1346
[12624.352408] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[12624.352776] Call Trace:
[12624.352945]  
[12624.353112]  dump_stack_lvl+0x58/0x90
[12624.353316]  check_noncircular+0x101/0x110
[12624.353523]  __lock_acquire+0x1415/0x2190
[12624.353735]  lock_acquire+0xc7/0x2b0
[12624.353929]  ? join_transaction+0x1d0/0x580
[12624.354138]  ? lock_release+0x134/0x270
[12624.354348]  ? join_transaction+0x1d0/0x580
[12624.354560]  ? join_transaction+0x3d/0x580
[12624.354766]  join_transaction+0x1e4/0x580
[12624.354970]  ? join_transaction+0x1d0/0x580
[12624.356250]  start_transaction+0x1a0/0xad0
[12624.356470]  btrfs_commit_inode_delayed_inode+0x5f/0x120
[12624.356705]  btrfs_evict_inode+0x273/0x3c0
[12624.356912]  ? lock_release+0x134/0x270
[12624.357117]  ? __pfx_wake_bit_function+0x10/0x10
[12624.357344]  evict+0xcc/0x1d0
[12624.357528]  inode_lru_isolate+0x14d/0x1e0
[12624.357735]  __list_lru_walk_one+0xbe/0x1c0
[12624.357946]  ? __pfx_inode_lru_isolate+0x10/0x10
[12624.358165]  ? __pfx_inode_lru_isolate+0x10/0x10
[12624.358388]  list_lru_walk_one+0x58/0x80
[12624.358595]  prune_icache_sb+0x39/0x60
[12624.358801]  super_cache_scan+0x167/0x1f0
[12624.359007]  do_shrink_slab+0x163/0x340
[12624.359208]  shrink_slab+0x1d7/0x2a0
[12624.359413]  shrink_node+0x2eb/0x7b0
[12624.359616]  balance_pgdat+0x344/0x780
[12624.359820]  kswapd+0x205/0x410
[12624.360010]  ? __pfx_autoremove_wake_function+0x10/0x10
[12624.360247]  ? __pfx_kswapd+0x10/0x10
[12624.360449]  kthread+0xff/0x130
[12624.360635]  ? __pfx_kthread+0x10/0x10
[12624.360839]  ret_from_fork+0x2d/0x50
[12624.361038]  ? __pfx_kthread+0x10/0x10
[12624.361236]  ret_from_fork_asm+0x1b/0x30
[12624.361468]  
[12793.337040] BTRFS: device fsid 00137945-b46c-4b00-9862-93d33e9c8ccd devid 1 transid 86 /dev/mapper/vg0-lv7 scanned by mount (1560349)
[12793.338635] BTRFS info (device dm-7): using crc32c (crc32c-intel) checksum algorithm
[12793.338932] BTRFS info (device dm-7): using free space tree
[12793.341750] BTRFS info (device dm-7): auto enabling async discard