[12283.080433] run fstests generic/251 at 2023-11-05 00:18:47
[12283.699219] BTRFS: device fsid ec3e1159-917e-46d6-82d2-6d36aac552b0 devid 1 transid 3098883 /dev/mapper/vg0-lv0 scanned by mount (1639813)
[12283.700040] BTRFS info (device dm-0): using crc32c (crc32c-intel) checksum algorithm
[12283.700050] BTRFS info (device dm-0): using free space tree
[12283.705321] BTRFS info (device dm-0): auto enabling async discard
[12284.042131] BTRFS: device fsid fff1a937-0729-4178-a099-bc214de315b2 devid 1 transid 6 /dev/mapper/vg0-lv9 scanned by mount (1639872)
[12284.043650] BTRFS info (device dm-9): using crc32c (crc32c-intel) checksum algorithm
[12284.043663] BTRFS info (device dm-9): turning on async discard
[12284.043666] BTRFS info (device dm-9): disk space caching is enabled
[12284.050000] BTRFS info (device dm-9): checking UUID tree

[12617.729138] ======================================================
[12617.730226] WARNING: possible circular locking dependency detected
[12617.730873] 6.6.0-rc7+ #1349 Not tainted
[12617.731285] ------------------------------------------------------
[12617.731823] kswapd0/51 is trying to acquire lock:
[12617.732240] ffff9cbacdf9a390 (btrfs_trans_num_writers){++++}-{0:0}, at: join_transaction+0x1d0/0x580
[12617.735148] 
               but task is already holding lock:
[12617.735655] ffff9cbadf283600 (sb_internal#2){++++}-{0:0}, at: btrfs_commit_inode_delayed_inode+0x5f/0x120
[12617.736607] 
               which lock already depends on the new lock.

[12617.737651] 
               the existing dependency chain (in reverse order) is:
[12617.738587] 
               -> #3 (sb_internal#2){++++}-{0:0}:
[12617.738965]        start_transaction+0x493/0xad0
[12617.739257]        btrfs_commit_inode_delayed_inode+0x5f/0x120
[12617.739666]        btrfs_evict_inode+0x273/0x3c0
[12617.740048]        evict+0xcc/0x1d0
[12617.740305]        inode_lru_isolate+0x14d/0x1e0
[12617.740673]        __list_lru_walk_one+0xbe/0x1c0
[12617.741494]        list_lru_walk_one+0x58/0x80
[12617.741819]        prune_icache_sb+0x39/0x60
[12617.742139]        super_cache_scan+0x167/0x1f0
[12617.742593]        do_shrink_slab+0x163/0x340
[12617.743312]        shrink_slab+0x1d7/0x2a0
[12617.743615]        shrink_node+0x2eb/0x7b0
[12617.743928]        balance_pgdat+0x344/0x780
[12617.744240]        kswapd+0x205/0x410
[12617.744509]        kthread+0xff/0x130
[12617.744778]        ret_from_fork+0x2d/0x50
[12617.745104]        ret_from_fork_asm+0x1b/0x30
[12617.745468] 
               -> #2 (fs_reclaim){+.+.}-{0:0}:
[12617.745822]        fs_reclaim_acquire+0xa2/0xe0
[12617.746362]        kmem_cache_alloc_lru+0x4e/0x600
[12617.746867]        btrfs_alloc_inode+0x2d/0x250
[12617.747216]        alloc_inode+0x1a/0xc0
[12617.747563]        iget5_locked+0xba/0x110
[12617.747893]        btrfs_iget+0x43/0xe0
[12617.748196]        create_reloc_inode+0x1a0/0x360
[12617.748557]        btrfs_relocate_block_group+0x1d2/0x3d0
[12617.748963]        btrfs_relocate_chunk+0x4c/0x1b0
[12617.749491]        btrfs_balance+0x8e7/0x11d0
[12617.749822]        btrfs_ioctl+0x1c25/0x2860
[12617.750263]        __x64_sys_ioctl+0x8b/0xc0
[12617.750584]        do_syscall_64+0x38/0x90
[12617.751090]        entry_SYSCALL_64_after_hwframe+0x6e/0xd8
[12617.751499] 
               -> #1 (btrfs_trans_num_extwriters){++++}-{0:0}:
[12617.752015]        join_transaction+0xaf/0x580
[12617.752340]        start_transaction+0x1a0/0xad0
[12617.752672]        btrfs_uuid_scan_kthread+0x2bc/0x3d0
[12617.753227]        kthread+0xff/0x130
[12617.753527]        ret_from_fork+0x2d/0x50
[12617.753817]        ret_from_fork_asm+0x1b/0x30
[12617.754146] 
               -> #0 (btrfs_trans_num_writers){++++}-{0:0}:
[12617.754619]        __lock_acquire+0x1415/0x2190
[12617.754951]        lock_acquire+0xc7/0x2b0
[12617.755250]        join_transaction+0x1e4/0x580
[12617.755577]        start_transaction+0x1a0/0xad0
[12617.755913]        btrfs_commit_inode_delayed_inode+0x5f/0x120
[12617.756333]        btrfs_evict_inode+0x273/0x3c0
[12617.756648]        evict+0xcc/0x1d0
[12617.756901]        inode_lru_isolate+0x14d/0x1e0
[12617.757244]        __list_lru_walk_one+0xbe/0x1c0
[12617.757583]        list_lru_walk_one+0x58/0x80
[12617.757894]        prune_icache_sb+0x39/0x60
[12617.758176]        super_cache_scan+0x167/0x1f0
[12617.758455]        do_shrink_slab+0x163/0x340
[12617.758726]        shrink_slab+0x1d7/0x2a0
[12617.758992]        shrink_node+0x2eb/0x7b0
[12617.759257]        balance_pgdat+0x344/0x780
[12617.759527]        kswapd+0x205/0x410
[12617.759776]        kthread+0xff/0x130
[12617.760055]        ret_from_fork+0x2d/0x50
[12617.760358]        ret_from_fork_asm+0x1b/0x30
[12617.760682] 
               other info that might help us debug this:

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

[12617.761980]  Possible unsafe locking scenario:

[12617.762346]        CPU0                    CPU1
[12617.762666]        ----                    ----
[12617.763000]   rlock(sb_internal#2);
[12617.763221]                                lock(fs_reclaim);
[12617.763602]                                lock(sb_internal#2);
[12617.763989]   rlock(btrfs_trans_num_writers);
[12617.764302] 
                *** DEADLOCK ***

[12617.764680] 4 locks held by kswapd0/51:
[12617.764964]  #0: ffffffff93e62ea0 (fs_reclaim){+.+.}-{0:0}, at: balance_pgdat+0x3eb/0x780
[12617.765479]  #1: ffffffff93e513b0 (shrinker_rwsem){++++}-{3:3}, at: shrink_slab+0x113/0x2a0
[12617.765993]  #2: ffff9cbadf2830e0 (&type->s_umount_key#45){++++}-{3:3}, at: super_cache_scan+0x38/0x1f0
[12617.766734]  #3: ffff9cbadf283600 (sb_internal#2){++++}-{0:0}, at: btrfs_commit_inode_delayed_inode+0x5f/0x120
[12617.767349] 
               stack backtrace:
[12617.767626] CPU: 0 PID: 51 Comm: kswapd0 Not tainted 6.6.0-rc7+ #1349
[12617.768021] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[12617.768558] Call Trace:
[12617.768748]  
[12617.768919]  dump_stack_lvl+0x58/0x90
[12617.769732]  check_noncircular+0x101/0x110
[12617.770049]  __lock_acquire+0x1415/0x2190
[12617.770365]  lock_acquire+0xc7/0x2b0
[12617.770686]  ? join_transaction+0x1d0/0x580
[12617.771004]  ? lock_release+0x134/0x270
[12617.771242]  ? join_transaction+0x1d0/0x580
[12617.771504]  ? join_transaction+0x3d/0x580
[12617.771759]  join_transaction+0x1e4/0x580
[12617.772051]  ? join_transaction+0x1d0/0x580
[12617.772347]  start_transaction+0x1a0/0xad0
[12617.772641]  btrfs_commit_inode_delayed_inode+0x5f/0x120
[12617.773029]  btrfs_evict_inode+0x273/0x3c0
[12617.773331]  ? lock_release+0x134/0x270
[12617.773616]  ? __pfx_wake_bit_function+0x10/0x10
[12617.773960]  evict+0xcc/0x1d0
[12617.774182]  inode_lru_isolate+0x14d/0x1e0
[12617.774484]  __list_lru_walk_one+0xbe/0x1c0
[12617.774857]  ? __pfx_inode_lru_isolate+0x10/0x10
[12617.775287]  ? __pfx_inode_lru_isolate+0x10/0x10
[12617.775709]  list_lru_walk_one+0x58/0x80
[12617.776074]  prune_icache_sb+0x39/0x60
[12617.776409]  super_cache_scan+0x167/0x1f0
[12617.776838]  do_shrink_slab+0x163/0x340
[12617.777199]  ? lock_is_held_type+0xe2/0x140
[12617.777586]  shrink_slab+0x1d7/0x2a0
[12617.777925]  shrink_node+0x2eb/0x7b0
[12617.778260]  balance_pgdat+0x344/0x780
[12617.778592]  kswapd+0x205/0x410
[12617.778890]  ? __pfx_autoremove_wake_function+0x10/0x10
[12617.779368]  ? __pfx_kswapd+0x10/0x10
[12617.779706]  kthread+0xff/0x130
[12617.780006]  ? __pfx_kthread+0x10/0x10
[12617.780352]  ret_from_fork+0x2d/0x50
[12617.780686]  ? __pfx_kthread+0x10/0x10
[12617.781035]  ret_from_fork_asm+0x1b/0x30
[12617.781403]  
[13178.733032] BTRFS: device fsid fff1a937-0729-4178-a099-bc214de315b2 devid 1 transid 88 /dev/mapper/vg0-lv9 scanned by mount (1647563)
[13178.734725] BTRFS info (device dm-9): using crc32c (crc32c-intel) checksum algorithm
[13178.735289] BTRFS info (device dm-9): turning on async discard
[13178.735708] BTRFS info (device dm-9): disk space caching is enabled