[34725.639877] run fstests generic/251 at 2023-10-24 06:34:07
[34726.088454] BTRFS: device fsid 13921637-4436-40f4-9cb4-e48f1103a380 devid 1 transid 2680168 /dev/mapper/vg0-lv0 scanned by mount (841572)
[34726.088999] BTRFS info (device dm-0): using crc32c (crc32c-intel) checksum algorithm
[34726.089005] BTRFS info (device dm-0): using free space tree
[34726.093185] BTRFS info (device dm-0): auto enabling async discard
[34726.625689] BTRFS: device fsid b23fcc13-5dad-4dc6-9f78-4a27a858b7fa devid 1 transid 6 /dev/mapper/vg0-lv9 scanned by mount (841630)
[34726.626246] BTRFS info (device dm-9): using crc32c (crc32c-intel) checksum algorithm
[34726.626262] BTRFS info (device dm-9): setting incompat feature flag for COMPRESS_LZO (0x8)
[34726.626266] BTRFS info (device dm-9): use lzo compression, level 0
[34726.626269] BTRFS info (device dm-9): disk space caching is enabled
[34726.630194] BTRFS info (device dm-9): auto enabling async discard
[34726.630359] BTRFS info (device dm-9): checking UUID tree

[35058.337521] ======================================================
[35058.338116] WARNING: possible circular locking dependency detected
[35058.338670] 6.6.0-rc7+ #1337 Not tainted
[35058.338990] ------------------------------------------------------
[35058.339486] kswapd0/50 is trying to acquire lock:
[35058.339865] ffff8f76d0182390 (btrfs_trans_num_writers){++++}-{0:0}, at: join_transaction+0x1d0/0x580
[35058.340848] 
               but task is already holding lock:
[35058.341319] ffff8f76e3420600 (sb_internal#2){++++}-{0:0}, at: btrfs_commit_inode_delayed_inode+0x5f/0x120
[35058.342078] 
               which lock already depends on the new lock.

[35058.342728] 
               the existing dependency chain (in reverse order) is:
[35058.343325] 
               -> #3 (sb_internal#2){++++}-{0:0}:
[35058.343791]        start_transaction+0x493/0xad0
[35058.344058]        btrfs_commit_inode_delayed_inode+0x5f/0x120
[35058.344382]        btrfs_evict_inode+0x273/0x3c0
[35058.344638]        evict+0xcc/0x1d0
[35058.344835]        inode_lru_isolate+0x14d/0x1e0
[35058.345092]        __list_lru_walk_one+0xbe/0x1c0
[35058.345351]        list_lru_walk_one+0x58/0x80
[35058.345598]        prune_icache_sb+0x39/0x60
[35058.345838]        super_cache_scan+0x167/0x1f0
[35058.346140]        do_shrink_slab+0x163/0x340
[35058.346396]        shrink_slab+0x1d7/0x2a0
[35058.346621]        shrink_node+0x2eb/0x7b0
[35058.346849]        balance_pgdat+0x344/0x780
[35058.347092]        kswapd+0x205/0x410
[35058.347295]        kthread+0xff/0x130
[35058.347504]        ret_from_fork+0x2d/0x50
[35058.347732]        ret_from_fork_asm+0x1b/0x30
[35058.348011] 
               -> #2 (fs_reclaim){+.+.}-{0:0}:
[35058.348365]        fs_reclaim_acquire+0xa2/0xe0
[35058.348630]        kmem_cache_alloc_lru+0x4e/0x600
[35058.348898]        btrfs_alloc_inode+0x2d/0x250
[35058.349152]        alloc_inode+0x1a/0xc0
[35058.349373]        iget5_locked+0xba/0x110
[35058.349597]        btrfs_iget+0x43/0xe0
[35058.349810]        create_reloc_inode+0x1a0/0x360
[35058.350074]        btrfs_relocate_block_group+0x1d2/0x3d0
[35058.350397]        btrfs_relocate_chunk+0x4c/0x1b0
[35058.350658]        btrfs_balance+0x8e7/0x11d0
[35058.350900]        btrfs_ioctl+0x1c25/0x2860
[35058.351150]        __x64_sys_ioctl+0x8b/0xc0
[35058.351390]        do_syscall_64+0x38/0x90
[35058.351622]        entry_SYSCALL_64_after_hwframe+0x6e/0xd8
[35058.351926] 
               -> #1 (btrfs_trans_num_extwriters){++++}-{0:0}:
[35058.352316]        join_transaction+0xaf/0x580
[35058.352563]        start_transaction+0x1a0/0xad0
[35058.352817]        btrfs_uuid_scan_kthread+0x2bc/0x3d0
[35058.353106]        kthread+0xff/0x130
[35058.353311]        ret_from_fork+0x2d/0x50
[35058.353537]        ret_from_fork_asm+0x1b/0x30
[35058.353787] 
               -> #0 (btrfs_trans_num_writers){++++}-{0:0}:
[35058.354157]        __lock_acquire+0x1415/0x2190
[35058.354409]        lock_acquire+0xc7/0x2b0
[35058.354637]        join_transaction+0x1e4/0x580
[35058.354889]        start_transaction+0x1a0/0xad0
[35058.355149]        btrfs_commit_inode_delayed_inode+0x5f/0x120
[35058.355469]        btrfs_evict_inode+0x273/0x3c0
[35058.355724]        evict+0xcc/0x1d0
[35058.355918]        inode_lru_isolate+0x14d/0x1e0
[35058.356180]        __list_lru_walk_one+0xbe/0x1c0
[35058.356439]        list_lru_walk_one+0x58/0x80
[35058.356685]        prune_icache_sb+0x39/0x60
[35058.356922]        super_cache_scan+0x167/0x1f0
[35058.357178]        do_shrink_slab+0x163/0x340
[35058.357421]        shrink_slab+0x1d7/0x2a0
[35058.357647]        shrink_node+0x2eb/0x7b0
[35058.357874]        balance_pgdat+0x344/0x780
[35058.358117]        kswapd+0x205/0x410
[35058.358323]        kthread+0xff/0x130
[35058.358529]        ret_from_fork+0x2d/0x50
[35058.358755]        ret_from_fork_asm+0x1b/0x30
[35058.359004] 
               other info that might help us debug this:

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

[35058.360019]  Possible unsafe locking scenario:

[35058.360338]        CPU0                    CPU1
[35058.360586]        ----                    ----
[35058.360838]   rlock(sb_internal#2);
[35058.361041]                                lock(fs_reclaim);
[35058.361349]                                lock(sb_internal#2);
[35058.361668]   rlock(btrfs_trans_num_writers);
[35058.361909] 
                *** DEADLOCK ***

[35058.362235] 4 locks held by kswapd0/50:
[35058.362447]  #0: ffffffffa3e62ea0 (fs_reclaim){+.+.}-{0:0}, at: balance_pgdat+0x3eb/0x780
[35058.362889]  #1: ffffffffa3e513b0 (shrinker_rwsem){++++}-{3:3}, at: shrink_slab+0x113/0x2a0
[35058.363343]  #2: ffff8f76e34200e0 (&type->s_umount_key#45){++++}-{3:3}, at: super_cache_scan+0x38/0x1f0
[35058.363848]  #3: ffff8f76e3420600 (sb_internal#2){++++}-{0:0}, at: btrfs_commit_inode_delayed_inode+0x5f/0x120
[35058.364393] 
               stack backtrace:
[35058.364681] CPU: 0 PID: 50 Comm: kswapd0 Not tainted 6.6.0-rc7+ #1337
[35058.365039] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[35058.365494] Call Trace:
[35058.365634]  
[35058.365759]  dump_stack_lvl+0x58/0x90
[35058.365969]  check_noncircular+0x101/0x110
[35058.366196]  __lock_acquire+0x1415/0x2190
[35058.366429]  lock_acquire+0xc7/0x2b0
[35058.366631]  ? join_transaction+0x1d0/0x580
[35058.366865]  ? lock_release+0x134/0x270
[35058.367082]  ? join_transaction+0x1d0/0x580
[35058.367325]  ? join_transaction+0x3d/0x580
[35058.367553]  join_transaction+0x1e4/0x580
[35058.367775]  ? join_transaction+0x1d0/0x580
[35058.368013]  start_transaction+0x1a0/0xad0
[35058.368240]  btrfs_commit_inode_delayed_inode+0x5f/0x120
[35058.368533]  btrfs_evict_inode+0x273/0x3c0
[35058.368762]  ? lock_release+0x134/0x270
[35058.368978]  ? __pfx_wake_bit_function+0x10/0x10
[35058.369295]  evict+0xcc/0x1d0
[35058.369477]  inode_lru_isolate+0x14d/0x1e0
[35058.369707]  __list_lru_walk_one+0xbe/0x1c0
[35058.369945]  ? __pfx_inode_lru_isolate+0x10/0x10
[35058.370204]  ? __pfx_inode_lru_isolate+0x10/0x10
[35058.370459]  list_lru_walk_one+0x58/0x80
[35058.370678]  prune_icache_sb+0x39/0x60
[35058.370889]  super_cache_scan+0x167/0x1f0
[35058.371116]  do_shrink_slab+0x163/0x340
[35058.371331]  ? lock_is_held_type+0xe2/0x140
[35058.371566]  shrink_slab+0x1d7/0x2a0
[35058.371768]  shrink_node+0x2eb/0x7b0
[35058.371974]  balance_pgdat+0x344/0x780
[35058.372189]  kswapd+0x205/0x410
[35058.372371]  ? __pfx_autoremove_wake_function+0x10/0x10
[35058.372658]  ? __pfx_kswapd+0x10/0x10
[35058.372863]  kthread+0xff/0x130
[35058.373047]  ? __pfx_kthread+0x10/0x10
[35058.373258]  ret_from_fork+0x2d/0x50
[35058.373459]  ? __pfx_kthread+0x10/0x10
[35058.373714]  ret_from_fork_asm+0x1b/0x30
[35058.373940]  
[35510.246802] BTRFS: device fsid b23fcc13-5dad-4dc6-9f78-4a27a858b7fa devid 1 transid 94 /dev/mapper/vg0-lv9 scanned by mount (855842)
[35510.248044] BTRFS info (device dm-9): using crc32c (crc32c-intel) checksum algorithm
[35510.248494] BTRFS info (device dm-9): use lzo compression, level 0
[35510.248991] BTRFS info (device dm-9): disk space caching is enabled
[35510.251772] BTRFS info (device dm-9): auto enabling async discard