[53179.920203] run fstests generic/251 at 2023-11-09 11:41:46
[53180.611812] BTRFS: device fsid 13921637-4436-40f4-9cb4-e48f1103a380 devid 1 transid 2781673 /dev/mapper/vg0-lv0 scanned by mount (3913819)
[53180.612535] BTRFS info (device dm-0): using crc32c (crc32c-intel) checksum algorithm
[53180.612541] BTRFS info (device dm-0): using free space tree
[53180.617237] BTRFS info (device dm-0): auto enabling async discard
[53180.846699] BTRFS: device fsid b704d8fa-81eb-4610-9634-3b562892d8f7 devid 1 transid 6 /dev/mapper/vg0-lv9 scanned by mount (3913878)
[53180.847256] BTRFS info (device dm-9): using crc32c (crc32c-intel) checksum algorithm
[53180.847264] BTRFS info (device dm-9): using free space tree
[53180.853529] BTRFS info (device dm-9): auto enabling async discard
[53180.853692] BTRFS info (device dm-9): checking UUID tree

[53799.557549] ======================================================
[53799.557767] WARNING: possible circular locking dependency detected
[53799.557988] 6.6.0-rc7+ #1353 Not tainted
[53799.558129] ------------------------------------------------------
[53799.558345] kswapd0/50 is trying to acquire lock:
[53799.558512] ffff99b93369e390 (btrfs_trans_num_writers){++++}-{0:0}, at: join_transaction+0x1d0/0x580
[53799.560620] 
               but task is already holding lock:
[53799.560826] ffff99b9137dc600 (sb_internal#2){++++}-{0:0}, at: btrfs_commit_inode_delayed_inode+0x5f/0x120
[53799.561168] 
               which lock already depends on the new lock.

[53799.561448] 
               the existing dependency chain (in reverse order) is:
[53799.561708] 
               -> #3 (sb_internal#2){++++}-{0:0}:
[53799.561922]        start_transaction+0x493/0xad0
[53799.562088]        btrfs_commit_inode_delayed_inode+0x5f/0x120
[53799.562295]        btrfs_evict_inode+0x273/0x3c0
[53799.562466]        evict+0xcc/0x1d0
[53799.562599]        inode_lru_isolate+0x14d/0x1e0
[53799.562764]        __list_lru_walk_one+0xbe/0x1c0
[53799.563188]        list_lru_walk_one+0x58/0x80
[53799.563349]        prune_icache_sb+0x39/0x60
[53799.563504]        super_cache_scan+0x167/0x1f0
[53799.563672]        do_shrink_slab+0x163/0x340
[53799.563835]        shrink_slab+0x1d7/0x2a0
[53799.563988]        shrink_node+0x2eb/0x7b0
[53799.564135]        balance_pgdat+0x344/0x780
[53799.564290]        kswapd+0x205/0x410
[53799.564424]        kthread+0xff/0x130
[53799.565012]        ret_from_fork+0x2d/0x50
[53799.565349]        ret_from_fork_asm+0x1b/0x30
[53799.565700] 
               -> #2 (fs_reclaim){+.+.}-{0:0}:
[53799.565908]        fs_reclaim_acquire+0xa2/0xe0
[53799.566076]        kmem_cache_alloc_lru+0x4e/0x600
[53799.566251]        btrfs_alloc_inode+0x2d/0x250
[53799.566414]        alloc_inode+0x1a/0xc0
[53799.566555]        iget5_locked+0xba/0x110
[53799.566703]        btrfs_iget+0x43/0xe0
[53799.566842]        create_reloc_inode+0x1a0/0x360
[53799.567015]        btrfs_relocate_block_group+0x1d2/0x3d0
[53799.567208]        btrfs_relocate_chunk+0x4c/0x1b0
[53799.567384]        btrfs_balance+0x8e7/0x11d0
[53799.567542]        btrfs_ioctl+0x1c25/0x2860
[53799.567702]        __x64_sys_ioctl+0x8b/0xc0
[53799.567860]        do_syscall_64+0x38/0x90
[53799.568591]        entry_SYSCALL_64_after_hwframe+0x6e/0xd8
[53799.568844] 
               -> #1 (btrfs_trans_num_extwriters){++++}-{0:0}:
[53799.569097]        join_transaction+0xaf/0x580
[53799.569258]        start_transaction+0x1a0/0xad0
[53799.569422]        btrfs_uuid_scan_kthread+0x2bc/0x3d0
[53799.569610]        kthread+0xff/0x130
[53799.569744]        ret_from_fork+0x2d/0x50
[53799.569893]        ret_from_fork_asm+0x1b/0x30
[53799.570055] 
               -> #0 (btrfs_trans_num_writers){++++}-{0:0}:
[53799.570291]        __lock_acquire+0x1415/0x2190
[53799.570870]        lock_acquire+0xc7/0x2b0
[53799.571019]        join_transaction+0x1e4/0x580
[53799.571182]        start_transaction+0x1a0/0xad0
[53799.571347]        btrfs_commit_inode_delayed_inode+0x5f/0x120
[53799.571553]        btrfs_evict_inode+0x273/0x3c0
[53799.571721]        evict+0xcc/0x1d0
[53799.571848]        inode_lru_isolate+0x14d/0x1e0
[53799.572017]        __list_lru_walk_one+0xbe/0x1c0
[53799.572184]        list_lru_walk_one+0x58/0x80
[53799.572344]        prune_icache_sb+0x39/0x60
[53799.572499]        super_cache_scan+0x167/0x1f0
[53799.572661]        do_shrink_slab+0x163/0x340
[53799.572819]        shrink_slab+0x1d7/0x2a0
[53799.572968]        shrink_node+0x2eb/0x7b0
[53799.573117]        balance_pgdat+0x344/0x780
[53799.573271]        kswapd+0x205/0x410
[53799.573404]        kthread+0xff/0x130
[53799.573537]        ret_from_fork+0x2d/0x50
[53799.573685]        ret_from_fork_asm+0x1b/0x30
[53799.573845] 
               other info that might help us debug this:

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

[53799.574496]  Possible unsafe locking scenario:

[53799.574703]        CPU0                    CPU1
[53799.574867]        ----                    ----
[53799.575029]   rlock(sb_internal#2);
[53799.575157]                                lock(fs_reclaim);
[53799.575356]                                lock(sb_internal#2);
[53799.575565]   rlock(btrfs_trans_num_writers);
[53799.575722] 
                *** DEADLOCK ***

[53799.575933] 4 locks held by kswapd0/50:
[53799.576071]  #0: ffffffff95e62ea0 (fs_reclaim){+.+.}-{0:0}, at: balance_pgdat+0x3eb/0x780
[53799.576355]  #1: ffffffff95e513b0 (shrinker_rwsem){++++}-{3:3}, at: shrink_slab+0x113/0x2a0
[53799.576645]  #2: ffff99b9137dc0e0 (&type->s_umount_key#45){++++}-{3:3}, at: super_cache_scan+0x38/0x1f0
[53799.576972]  #3: ffff99b9137dc600 (sb_internal#2){++++}-{0:0}, at: btrfs_commit_inode_delayed_inode+0x5f/0x120
[53799.577318] 
               stack backtrace:
[53799.577479] CPU: 1 PID: 50 Comm: kswapd0 Not tainted 6.6.0-rc7+ #1353
[53799.577703] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[53799.578001] Call Trace:
[53799.578093]  
[53799.578177]  dump_stack_lvl+0x58/0x90
[53799.578843]  check_noncircular+0x101/0x110
[53799.578999]  __lock_acquire+0x1415/0x2190
[53799.579146]  lock_acquire+0xc7/0x2b0
[53799.579277]  ? join_transaction+0x1d0/0x580
[53799.579427]  ? lock_release+0x134/0x270
[53799.579567]  ? join_transaction+0x1d0/0x580
[53799.579718]  ? join_transaction+0x3d/0x580
[53799.579868]  join_transaction+0x1e4/0x580
[53799.580015]  ? join_transaction+0x1d0/0x580
[53799.580165]  start_transaction+0x1a0/0xad0
[53799.580313]  btrfs_commit_inode_delayed_inode+0x5f/0x120
[53799.580503]  btrfs_evict_inode+0x273/0x3c0
[53799.580650]  ? lock_release+0x134/0x270
[53799.580791]  ? __pfx_wake_bit_function+0x10/0x10
[53799.581198]  evict+0xcc/0x1d0
[53799.581312]  inode_lru_isolate+0x14d/0x1e0
[53799.581460]  __list_lru_walk_one+0xbe/0x1c0
[53799.581610]  ? __pfx_inode_lru_isolate+0x10/0x10
[53799.581776]  ? __pfx_inode_lru_isolate+0x10/0x10
[53799.581946]  list_lru_walk_one+0x58/0x80
[53799.582088]  prune_icache_sb+0x39/0x60
[53799.582226]  super_cache_scan+0x167/0x1f0
[53799.582371]  do_shrink_slab+0x163/0x340
[53799.582510]  ? lock_is_held_type+0xe2/0x140
[53799.582675]  shrink_slab+0x1d7/0x2a0
[53799.582808]  shrink_node+0x2eb/0x7b0
[53799.582945]  balance_pgdat+0x344/0x780
[53799.583085]  kswapd+0x205/0x410
[53799.583202]  ? __pfx_autoremove_wake_function+0x10/0x10
[53799.583388]  ? __pfx_kswapd+0x10/0x10
[53799.583522]  kthread+0xff/0x130
[53799.583638]  ? __pfx_kthread+0x10/0x10
[53799.583775]  ret_from_fork+0x2d/0x50
[53799.583909]  ? __pfx_kthread+0x10/0x10
[53799.584046]  ret_from_fork_asm+0x1b/0x30
[53799.584190]  
[54018.666244] BTRFS: device fsid b704d8fa-81eb-4610-9634-3b562892d8f7 devid 1 transid 163 /dev/mapper/vg0-lv9 scanned by mount (3978802)
[54018.667341] BTRFS info (device dm-9): using crc32c (crc32c-intel) checksum algorithm
[54018.667641] BTRFS info (device dm-9): using free space tree
[54018.671088] BTRFS info (device dm-9): auto enabling async discard