[29845.112046] run fstests generic/251 at 2023-11-09 05:11:28
[29845.584243] BTRFS: device fsid ec3e1159-917e-46d6-82d2-6d36aac552b0 devid 1 transid 3134102 /dev/mapper/vg0-lv0 scanned by mount (3835314)
[29845.585427] BTRFS info (device dm-0): using crc32c (crc32c-intel) checksum algorithm
[29845.585433] BTRFS info (device dm-0): using free space tree
[29845.589738] BTRFS info (device dm-0): auto enabling async discard
[29845.871868] BTRFS: device fsid fb42cd14-e0f6-4a55-a38b-21938001d065 devid 1 transid 6 /dev/mapper/vg0-lv9 scanned by mount (3835372)
[29845.872945] BTRFS info (device dm-9): using crc32c (crc32c-intel) checksum algorithm
[29845.872953] BTRFS info (device dm-9): setting incompat feature flag for COMPRESS_ZSTD (0x10)
[29845.872956] BTRFS info (device dm-9): use zstd compression, level 3
[29845.872960] BTRFS info (device dm-9): turning on async discard
[29845.872962] BTRFS info (device dm-9): disk space caching is enabled
[29845.878604] BTRFS info (device dm-9): checking UUID tree

[30156.932684] ======================================================
[30156.933023] WARNING: possible circular locking dependency detected
[30156.933338] 6.6.0-rc7+ #1353 Not tainted
[30156.933543] ------------------------------------------------------
[30156.933865] kswapd0/50 is trying to acquire lock:
[30156.934110] ffff95a601ede390 (btrfs_trans_num_writers){++++}-{0:0}, at: join_transaction+0x1d0/0x580
[30156.936461] 
               but task is already holding lock:
[30156.936764] ffff95a634a41600 (sb_internal#2){++++}-{0:0}, at: btrfs_commit_inode_delayed_inode+0x5f/0x120
[30156.937266] 
               which lock already depends on the new lock.

[30156.937678] 
               the existing dependency chain (in reverse order) is:
[30156.938066] 
               -> #3 (sb_internal#2){++++}-{0:0}:
[30156.938381]        start_transaction+0x493/0xad0
[30156.938676]        btrfs_commit_inode_delayed_inode+0x5f/0x120
[30156.939041]        btrfs_evict_inode+0x273/0x3c0
[30156.939320]        evict+0xcc/0x1d0
[30156.939529]        inode_lru_isolate+0x14d/0x1e0
[30156.939802]        __list_lru_walk_one+0xbe/0x1c0
[30156.940104]        list_lru_walk_one+0x58/0x80
[30156.940396]        prune_icache_sb+0x39/0x60
[30156.940663]        super_cache_scan+0x167/0x1f0
[30156.940952]        do_shrink_slab+0x163/0x340
[30156.941232]        shrink_slab+0x1d7/0x2a0
[30156.941485]        shrink_node+0x2eb/0x7b0
[30156.941737]        balance_pgdat+0x344/0x780
[30156.942005]        kswapd+0x205/0x410
[30156.942233]        kthread+0xff/0x130
[30156.942472]        ret_from_fork+0x2d/0x50
[30156.942728]        ret_from_fork_asm+0x1b/0x30
[30156.943016] 
               -> #2 (fs_reclaim){+.+.}-{0:0}:
[30156.943328]        fs_reclaim_acquire+0xa2/0xe0
[30156.943587]        kmem_cache_alloc_lru+0x4e/0x600
[30156.943859]        btrfs_alloc_inode+0x2d/0x250
[30156.944110]        alloc_inode+0x1a/0xc0
[30156.944328]        iget5_locked+0xba/0x110
[30156.944555]        btrfs_iget+0x43/0xe0
[30156.944768]        create_reloc_inode+0x1a0/0x360
[30156.945033]        btrfs_relocate_block_group+0x1d2/0x3d0
[30156.945323]        btrfs_relocate_chunk+0x4c/0x1b0
[30156.945584]        btrfs_balance+0x8e7/0x11d0
[30156.945827]        btrfs_ioctl+0x1c25/0x2860
[30156.946063]        __x64_sys_ioctl+0x8b/0xc0
[30156.946300]        do_syscall_64+0x38/0x90
[30156.946534]        entry_SYSCALL_64_after_hwframe+0x6e/0xd8
[30156.946846] 
               -> #1 (btrfs_trans_num_extwriters){++++}-{0:0}:
[30156.947224]        join_transaction+0xaf/0x580
[30156.947464]        start_transaction+0x1a0/0xad0
[30156.947713]        btrfs_uuid_scan_kthread+0x2bc/0x3d0
[30156.948002]        kthread+0xff/0x130
[30156.948205]        ret_from_fork+0x2d/0x50
[30156.948432]        ret_from_fork_asm+0x1b/0x30
[30156.948677] 
               -> #0 (btrfs_trans_num_writers){++++}-{0:0}:
[30156.949049]        __lock_acquire+0x1415/0x2190
[30156.949306]        lock_acquire+0xc7/0x2b0
[30156.949532]        join_transaction+0x1e4/0x580
[30156.949783]        start_transaction+0x1a0/0xad0
[30156.950085]        btrfs_commit_inode_delayed_inode+0x5f/0x120
[30156.950402]        btrfs_evict_inode+0x273/0x3c0
[30156.950659]        evict+0xcc/0x1d0
[30156.950876]        inode_lru_isolate+0x14d/0x1e0
[30156.951153]        __list_lru_walk_one+0xbe/0x1c0
[30156.951416]        list_lru_walk_one+0x58/0x80
[30156.951660]        prune_icache_sb+0x39/0x60
[30156.951907]        super_cache_scan+0x167/0x1f0
[30156.952159]        do_shrink_slab+0x163/0x340
[30156.952404]        shrink_slab+0x1d7/0x2a0
[30156.952631]        shrink_node+0x2eb/0x7b0
[30156.952862]        balance_pgdat+0x344/0x780
[30156.953100]        kswapd+0x205/0x410
[30156.953305]        kthread+0xff/0x130
[30156.953548]        ret_from_fork+0x2d/0x50
[30156.953801]        ret_from_fork_asm+0x1b/0x30
[30156.954061] 
               other info that might help us debug this:

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

[30156.955042]  Possible unsafe locking scenario:

[30156.955344]        CPU0                    CPU1
[30156.955577]        ----                    ----
[30156.955810]   rlock(sb_internal#2);
[30156.956000]                                lock(fs_reclaim);
[30156.956292]                                lock(sb_internal#2);
[30156.956595]   rlock(btrfs_trans_num_writers);
[30156.956827] 
                *** DEADLOCK ***

[30156.957130] 4 locks held by kswapd0/50:
[30156.957330]  #0: ffffffff97e62ea0 (fs_reclaim){+.+.}-{0:0}, at: balance_pgdat+0x3eb/0x780
[30156.957746]  #1: ffffffff97e513b0 (shrinker_rwsem){++++}-{3:3}, at: shrink_slab+0x113/0x2a0
[30156.958174]  #2: ffff95a634a410e0 (&type->s_umount_key#45){++++}-{3:3}, at: super_cache_scan+0x38/0x1f0
[30156.958650]  #3: ffff95a634a41600 (sb_internal#2){++++}-{0:0}, at: btrfs_commit_inode_delayed_inode+0x5f/0x120
[30156.959163] 
               stack backtrace:
[30156.959395] CPU: 0 PID: 50 Comm: kswapd0 Not tainted 6.6.0-rc7+ #1353
[30156.959830] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[30156.960263] Call Trace:
[30156.960398]  
[30156.960516]  dump_stack_lvl+0x58/0x90
[30156.960714]  check_noncircular+0x101/0x110
[30156.960934]  __lock_acquire+0x1415/0x2190
[30156.961144]  lock_acquire+0xc7/0x2b0
[30156.961334]  ? join_transaction+0x1d0/0x580
[30156.961555]  ? lock_release+0x134/0x270
[30156.961756]  ? join_transaction+0x1d0/0x580
[30156.961982]  ? join_transaction+0x3d/0x580
[30156.962200]  join_transaction+0x1e4/0x580
[30156.962408]  ? join_transaction+0x1d0/0x580
[30156.962625]  start_transaction+0x1a0/0xad0
[30156.962849]  btrfs_commit_inode_delayed_inode+0x5f/0x120
[30156.963125]  btrfs_evict_inode+0x273/0x3c0
[30156.963338]  ? lock_release+0x134/0x270
[30156.963541]  ? __pfx_wake_bit_function+0x10/0x10
[30156.963780]  evict+0xcc/0x1d0
[30156.963947]  inode_lru_isolate+0x14d/0x1e0
[30156.964160]  __list_lru_walk_one+0xbe/0x1c0
[30156.964380]  ? __pfx_inode_lru_isolate+0x10/0x10
[30156.964621]  ? __pfx_inode_lru_isolate+0x10/0x10
[30156.964870]  list_lru_walk_one+0x58/0x80
[30156.965078]  prune_icache_sb+0x39/0x60
[30156.965276]  super_cache_scan+0x167/0x1f0
[30156.965486]  do_shrink_slab+0x163/0x340
[30156.965688]  ? lock_is_held_type+0xe2/0x140
[30156.966150]  shrink_slab+0x1d7/0x2a0
[30156.966343]  shrink_node+0x2eb/0x7b0
[30156.966534]  balance_pgdat+0x344/0x780
[30156.966736]  kswapd+0x205/0x410
[30156.966917]  ? __pfx_autoremove_wake_function+0x10/0x10
[30156.967191]  ? __pfx_kswapd+0x10/0x10
[30156.967384]  kthread+0xff/0x130
[30156.967555]  ? __pfx_kthread+0x10/0x10
[30156.967755]  ret_from_fork+0x2d/0x50
[30156.967949]  ? __pfx_kthread+0x10/0x10
[30156.968147]  ret_from_fork_asm+0x1b/0x30
[30156.968357]  
[30623.772185] BTRFS: device fsid fb42cd14-e0f6-4a55-a38b-21938001d065 devid 1 transid 78 /dev/mapper/vg0-lv9 scanned by mount (3889294)
[30623.773790] BTRFS info (device dm-9): using crc32c (crc32c-intel) checksum algorithm
[30623.774402] BTRFS info (device dm-9): use zstd compression, level 3
[30623.774997] BTRFS info (device dm-9): turning on async discard
[30623.775553] BTRFS info (device dm-9): disk space caching is enabled