[35735.987173] run fstests generic/251 at 2023-10-13 06:49:29
[35736.462746] BTRFS: device fsid ec3e1159-917e-46d6-82d2-6d36aac552b0 devid 1 transid 2923001 /dev/mapper/vg0-lv0 scanned by mount (825285)
[35736.463398] BTRFS info (device dm-0): using crc32c (crc32c-intel) checksum algorithm
[35736.463404] BTRFS info (device dm-0): using free space tree
[35736.467376] BTRFS info (device dm-0): auto enabling async discard
[35736.697411] BTRFS: device fsid 851a1583-c805-4553-b872-1b2313898f34 devid 1 transid 6 /dev/mapper/vg0-lv9 scanned by mount (825343)
[35736.697933] BTRFS info (device dm-9): using crc32c (crc32c-intel) checksum algorithm
[35736.697942] BTRFS info (device dm-9): setting incompat feature flag for COMPRESS_ZSTD (0x10)
[35736.697945] BTRFS info (device dm-9): use zstd compression, level 3
[35736.697948] BTRFS info (device dm-9): turning on async discard
[35736.697950] BTRFS info (device dm-9): disk space caching is enabled
[35736.709824] BTRFS info (device dm-9): checking UUID tree

[36238.897137] ======================================================
[36238.897355] WARNING: possible circular locking dependency detected
[36238.897572] 6.6.0-rc5+ #1326 Not tainted
[36238.897715] ------------------------------------------------------
[36238.897932] kswapd0/50 is trying to acquire lock:
[36238.898104] ffff987fc21e6390 (btrfs_trans_num_writers){++++}-{0:0}, at: join_transaction+0x1d0/0x580
[36238.901728] 
               but task is already holding lock:
[36238.901935] ffff987fc35ff600 (sb_internal#2){++++}-{0:0}, at: btrfs_commit_inode_delayed_inode+0x5f/0x120
[36238.903004] 
               which lock already depends on the new lock.

[36238.903288] 
               the existing dependency chain (in reverse order) is:
[36238.903548] 
               -> #3 (sb_internal#2){++++}-{0:0}:
[36238.903760]        start_transaction+0x493/0xad0
[36238.903927]        btrfs_commit_inode_delayed_inode+0x5f/0x120
[36238.904139]        btrfs_evict_inode+0x273/0x3c0
[36238.904305]        evict+0xcc/0x1d0
[36238.904935]        inode_lru_isolate+0x14d/0x1e0
[36238.905108]        __list_lru_walk_one+0xbe/0x1c0
[36238.905615]        list_lru_walk_one+0x58/0x80
[36238.905775]        prune_icache_sb+0x39/0x60
[36238.905929]        super_cache_scan+0x167/0x1f0
[36238.906233]        do_shrink_slab+0x163/0x340
[36238.906697]        shrink_slab+0x1d7/0x2a0
[36238.906844]        shrink_node+0x2eb/0x7b0
[36238.906992]        balance_pgdat+0x344/0x780
[36238.907153]        kswapd+0x205/0x410
[36238.907287]        kthread+0xff/0x130
[36238.907913]        ret_from_fork+0x2d/0x50
[36238.908666]        ret_from_fork_asm+0x1b/0x30
[36238.909488] 
               -> #2 (fs_reclaim){+.+.}-{0:0}:
[36238.909691]        fs_reclaim_acquire+0xa2/0xe0
[36238.910003]        kmem_cache_alloc_lru+0x4e/0x600
[36238.910609]        btrfs_alloc_inode+0x2d/0x250
[36238.910773]        alloc_inode+0x1a/0xc0
[36238.910916]        iget5_locked+0xba/0x110
[36238.911067]        btrfs_iget+0x43/0xe0
[36238.911207]        create_reloc_inode+0x1a0/0x360
[36238.911634]        btrfs_relocate_block_group+0x1d2/0x3d0
[36238.911825]        btrfs_relocate_chunk+0x4c/0x1b0
[36238.912207]        btrfs_balance+0x8e7/0x11d0
[36238.912364]        btrfs_ioctl+0x1c25/0x2860
[36238.912520]        __x64_sys_ioctl+0x8b/0xc0
[36238.913073]        do_syscall_64+0x38/0x90
[36238.913373]        entry_SYSCALL_64_after_hwframe+0x6e/0xd8
[36238.913807] 
               -> #1 (btrfs_trans_num_extwriters){++++}-{0:0}:
[36238.914056]        join_transaction+0xaf/0x580
[36238.914222]        start_transaction+0x1a0/0xad0
[36238.914388]        btrfs_uuid_scan_kthread+0x2bc/0x3d0
[36238.914577]        kthread+0xff/0x130
[36238.914712]        ret_from_fork+0x2d/0x50
[36238.914859]        ret_from_fork_asm+0x1b/0x30
[36238.915020] 
               -> #0 (btrfs_trans_num_writers){++++}-{0:0}:
[36238.915262]        __lock_acquire+0x1415/0x2190
[36238.915829]        lock_acquire+0xc7/0x2b0
[36238.915976]        join_transaction+0x1e4/0x580
[36238.916144]        start_transaction+0x1a0/0xad0
[36238.916310]        btrfs_commit_inode_delayed_inode+0x5f/0x120
[36238.916517]        btrfs_evict_inode+0x273/0x3c0
[36238.916682]        evict+0xcc/0x1d0
[36238.916810]        inode_lru_isolate+0x14d/0x1e0
[36238.916977]        __list_lru_walk_one+0xbe/0x1c0
[36238.917148]        list_lru_walk_one+0x58/0x80
[36238.917309]        prune_icache_sb+0x39/0x60
[36238.917463]        super_cache_scan+0x167/0x1f0
[36238.917626]        do_shrink_slab+0x163/0x340
[36238.917784]        shrink_slab+0x1d7/0x2a0
[36238.917931]        shrink_node+0x2eb/0x7b0
[36238.918087]        balance_pgdat+0x344/0x780
[36238.918243]        kswapd+0x205/0x410
[36238.918377]        kthread+0xff/0x130
[36238.918510]        ret_from_fork+0x2d/0x50
[36238.918657]        ret_from_fork_asm+0x1b/0x30
[36238.918817] 
               other info that might help us debug this:

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

[36238.919718]  Possible unsafe locking scenario:

[36238.919926]        CPU0                    CPU1
[36238.920092]        ----                    ----
[36238.920254]   rlock(sb_internal#2);
[36238.920382]                                lock(fs_reclaim);
[36238.920583]                                lock(sb_internal#2);
[36238.920793]   rlock(btrfs_trans_num_writers);
[36238.920950] 
                *** DEADLOCK ***

[36238.921161] 4 locks held by kswapd0/50:
[36238.921301]  #0: ffffffffaae62ea0 (fs_reclaim){+.+.}-{0:0}, at: balance_pgdat+0x3eb/0x780
[36238.921587]  #1: ffffffffaae513b0 (shrinker_rwsem){++++}-{3:3}, at: shrink_slab+0x113/0x2a0
[36238.921879]  #2: ffff987fc35ff0e0 (&type->s_umount_key#45){++++}-{3:3}, at: super_cache_scan+0x38/0x1f0
[36238.922207]  #3: ffff987fc35ff600 (sb_internal#2){++++}-{0:0}, at: btrfs_commit_inode_delayed_inode+0x5f/0x120
[36238.922555] 
               stack backtrace:
[36238.922712] CPU: 0 PID: 50 Comm: kswapd0 Not tainted 6.6.0-rc5+ #1326
[36238.922939] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[36238.923236] Call Trace:
[36238.923336]  
[36238.923422]  dump_stack_lvl+0x58/0x90
[36238.923905]  check_noncircular+0x101/0x110
[36238.924055]  __lock_acquire+0x1415/0x2190
[36238.924208]  lock_acquire+0xc7/0x2b0
[36238.924340]  ? join_transaction+0x1d0/0x580
[36238.924492]  ? lock_release+0x134/0x270
[36238.924631]  ? join_transaction+0x1d0/0x580
[36238.924783]  ? join_transaction+0x3d/0x580
[36238.924930]  join_transaction+0x1e4/0x580
[36238.925080]  ? join_transaction+0x1d0/0x580
[36238.925232]  start_transaction+0x1a0/0xad0
[36238.925380]  btrfs_commit_inode_delayed_inode+0x5f/0x120
[36238.925570]  btrfs_evict_inode+0x273/0x3c0
[36238.925719]  ? lock_release+0x134/0x270
[36238.925858]  ? __pfx_wake_bit_function+0x10/0x10
[36238.926233]  evict+0xcc/0x1d0
[36238.926347]  inode_lru_isolate+0x14d/0x1e0
[36238.926495]  __list_lru_walk_one+0xbe/0x1c0
[36238.926644]  ? __pfx_inode_lru_isolate+0x10/0x10
[36238.926813]  ? __pfx_inode_lru_isolate+0x10/0x10
[36238.926979]  list_lru_walk_one+0x58/0x80
[36238.927125]  prune_icache_sb+0x39/0x60
[36238.927262]  super_cache_scan+0x167/0x1f0
[36238.927410]  do_shrink_slab+0x163/0x340
[36238.927550]  ? lock_is_held_type+0xe2/0x140
[36238.928091]  shrink_slab+0x1d7/0x2a0
[36238.928224]  shrink_node+0x2eb/0x7b0
[36238.928357]  balance_pgdat+0x344/0x780
[36238.928498]  kswapd+0x205/0x410
[36238.928615]  ? __pfx_autoremove_wake_function+0x10/0x10
[36238.928801]  ? __pfx_kswapd+0x10/0x10
[36238.928935]  kthread+0xff/0x130
[36238.929052]  ? __pfx_kthread+0x10/0x10
[36238.929192]  ret_from_fork+0x2d/0x50
[36238.929323]  ? __pfx_kthread+0x10/0x10
[36238.929461]  ret_from_fork_asm+0x1b/0x30
[36238.929607]  
[36609.068966] BTRFS: device fsid 851a1583-c805-4553-b872-1b2313898f34 devid 1 transid 75 /dev/mapper/vg0-lv9 scanned by mount (837948)
[36609.071602] BTRFS info (device dm-9): using crc32c (crc32c-intel) checksum algorithm
[36609.071935] BTRFS info (device dm-9): use zstd compression, level 3
[36609.072191] BTRFS info (device dm-9): turning on async discard
[36609.072439] BTRFS info (device dm-9): disk space caching is enabled