[11796.188956] run fstests generic/251 at 2023-09-24 00:11:48
[11796.701107] BTRFS: device fsid 13921637-4436-40f4-9cb4-e48f1103a380 devid 1 transid 2481912 /dev/mapper/vg0-lv0 scanned by mount (1601350)
[11796.702623] BTRFS info (device dm-0): using crc32c (crc32c-intel) checksum algorithm
[11796.702631] BTRFS info (device dm-0): using free space tree
[11796.707007] BTRFS info (device dm-0): auto enabling async discard
[11796.946305] BTRFS: device fsid 2ef00e81-3cf7-4bd5-a967-e669e0eabdbf devid 1 transid 6 /dev/mapper/vg0-lv9 scanned by mount (1601408)
[11796.947012] BTRFS info (device dm-9): using crc32c (crc32c-intel) checksum algorithm
[11796.947021] BTRFS info (device dm-9): disk space caching is enabled
[11796.950823] BTRFS info (device dm-9): auto enabling async discard
[11796.950977] BTRFS info (device dm-9): checking UUID tree

[12672.989036] ======================================================
[12672.989562] WARNING: possible circular locking dependency detected
[12672.990028] 6.6.0-rc2+ #1311 Not tainted
[12672.990338] ------------------------------------------------------
[12672.990745] kswapd0/50 is trying to acquire lock:
[12672.991093] ffff90fb5394a398 (btrfs_trans_num_writers){++++}-{0:0}, at: join_transaction+0x1d0/0x580
[12672.991973] 
               but task is already holding lock:
[12672.992524] ffff90fb41fbb600 (sb_internal#2){++++}-{0:0}, at: btrfs_commit_inode_delayed_inode+0x5f/0x120
[12672.993424] 
               which lock already depends on the new lock.

[12672.994090] 
               the existing dependency chain (in reverse order) is:
[12672.994781] 
               -> #3 (sb_internal#2){++++}-{0:0}:
[12672.995437]        start_transaction+0x493/0xad0
[12672.995866]        btrfs_commit_inode_delayed_inode+0x5f/0x120
[12672.996388]        btrfs_evict_inode+0x273/0x3c0
[12672.996771]        evict+0xcc/0x1d0
[12672.997101]        inode_lru_isolate+0x14d/0x1e0
[12672.997555]        __list_lru_walk_one+0xbe/0x1c0
[12672.997997]        list_lru_walk_one+0x58/0x80
[12672.998367]        prune_icache_sb+0x39/0x60
[12672.998699]        super_cache_scan+0x167/0x1f0
[12672.999023]        do_shrink_slab+0x163/0x340
[12672.999827]        shrink_slab+0x1d7/0x2a0
[12673.000155]        shrink_node+0x2eb/0x7b0
[12673.000695]        balance_pgdat+0x344/0x780
[12673.001019]        kswapd+0x205/0x410
[12673.001297]        kthread+0xff/0x130
[12673.001584]        ret_from_fork+0x2d/0x50
[12673.001890]        ret_from_fork_asm+0x1b/0x30
[12673.002193] 
               -> #2 (fs_reclaim){+.+.}-{0:0}:
[12673.002606]        fs_reclaim_acquire+0xa2/0xe0
[12673.002907]        kmem_cache_alloc_lru+0x4e/0x600
[12673.003259]        btrfs_alloc_inode+0x2d/0x250
[12673.003585]        alloc_inode+0x1a/0xc0
[12673.003870]        iget5_locked+0xba/0x110
[12673.004177]        btrfs_iget+0x43/0xe0
[12673.004483]        create_reloc_inode+0x1a0/0x370
[12673.004818]        btrfs_relocate_block_group+0x1b7/0x410
[12673.005257]        btrfs_relocate_chunk+0x4c/0x1b0
[12673.005616]        btrfs_balance+0x8e7/0x11d0
[12673.005925]        btrfs_ioctl+0x1bb4/0x28b0
[12673.006262]        __x64_sys_ioctl+0x8b/0xc0
[12673.006598]        do_syscall_64+0x38/0x90
[12673.007197]        entry_SYSCALL_64_after_hwframe+0x6e/0xd8
[12673.007622] 
               -> #1 (btrfs_trans_num_extwriters){++++}-{0:0}:
[12673.008108]        join_transaction+0xaf/0x580
[12673.008435]        start_transaction+0x1a0/0xad0
[12673.008761]        btrfs_uuid_scan_kthread+0x2bc/0x3d0
[12673.009118]        kthread+0xff/0x130
[12673.009389]        ret_from_fork+0x2d/0x50
[12673.009693]        ret_from_fork_asm+0x1b/0x30
[12673.010006] 
               -> #0 (btrfs_trans_num_writers){++++}-{0:0}:
[12673.010534]        __lock_acquire+0x1415/0x2190
[12673.010853]        lock_acquire+0xc7/0x2b0
[12673.011149]        join_transaction+0x1e4/0x580
[12673.011496]        start_transaction+0x1a0/0xad0
[12673.011813]        btrfs_commit_inode_delayed_inode+0x5f/0x120
[12673.012203]        btrfs_evict_inode+0x273/0x3c0
[12673.012528]        evict+0xcc/0x1d0
[12673.012770]        inode_lru_isolate+0x14d/0x1e0
[12673.013095]        __list_lru_walk_one+0xbe/0x1c0
[12673.013424]        list_lru_walk_one+0x58/0x80
[12673.013728]        prune_icache_sb+0x39/0x60
[12673.014044]        super_cache_scan+0x167/0x1f0
[12673.014393]        do_shrink_slab+0x163/0x340
[12673.014705]        shrink_slab+0x1d7/0x2a0
[12673.015003]        shrink_node+0x2eb/0x7b0
[12673.015330]        balance_pgdat+0x344/0x780
[12673.015642]        kswapd+0x205/0x410
[12673.015922]        kthread+0xff/0x130
[12673.016188]        ret_from_fork+0x2d/0x50
[12673.016485]        ret_from_fork_asm+0x1b/0x30
[12673.016773] 
               other info that might help us debug this:

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

[12673.018076]  Possible unsafe locking scenario:

[12673.018510]        CPU0                    CPU1
[12673.018842]        ----                    ----
[12673.019176]   rlock(sb_internal#2);
[12673.019431]                                lock(fs_reclaim);
[12673.019854]                                lock(sb_internal#2);
[12673.020277]   rlock(btrfs_trans_num_writers);
[12673.020606] 
                *** DEADLOCK ***

[12673.021054] 4 locks held by kswapd0/50:
[12673.021343]  #0: ffffffffabe62e40 (fs_reclaim){+.+.}-{0:0}, at: balance_pgdat+0x3eb/0x780
[12673.021899]  #1: ffffffffabe51350 (shrinker_rwsem){++++}-{3:3}, at: shrink_slab+0x113/0x2a0
[12673.022511]  #2: ffff90fb41fbb0e0 (&type->s_umount_key#45){++++}-{3:3}, at: super_cache_scan+0x38/0x1f0
[12673.023163]  #3: ffff90fb41fbb600 (sb_internal#2){++++}-{0:0}, at: btrfs_commit_inode_delayed_inode+0x5f/0x120
[12673.023882] 
               stack backtrace:
[12673.024206] CPU: 0 PID: 50 Comm: kswapd0 Not tainted 6.6.0-rc2+ #1311
[12673.024686] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[12673.025271] Call Trace:
[12673.025443]  
[12673.025588]  dump_stack_lvl+0x58/0x90
[12673.026120]  check_noncircular+0x101/0x110
[12673.026425]  __lock_acquire+0x1415/0x2190
[12673.026722]  lock_acquire+0xc7/0x2b0
[12673.026982]  ? join_transaction+0x1d0/0x580
[12673.027289]  ? lock_release+0x134/0x270
[12673.027585]  ? join_transaction+0x1d0/0x580
[12673.027880]  ? join_transaction+0x3d/0x580
[12673.028160]  join_transaction+0x1e4/0x580
[12673.028456]  ? join_transaction+0x1d0/0x580
[12673.029003]  start_transaction+0x1a0/0xad0
[12673.029573]  btrfs_commit_inode_delayed_inode+0x5f/0x120
[12673.030183]  btrfs_evict_inode+0x273/0x3c0
[12673.031232]  ? lock_release+0x134/0x270
[12673.031700]  ? __pfx_wake_bit_function+0x10/0x10
[12673.032450]  evict+0xcc/0x1d0
[12673.032849]  inode_lru_isolate+0x14d/0x1e0
[12673.033376]  __list_lru_walk_one+0xbe/0x1c0
[12673.033827]  ? __pfx_inode_lru_isolate+0x10/0x10
[12673.034399]  ? __pfx_inode_lru_isolate+0x10/0x10
[12673.035154]  list_lru_walk_one+0x58/0x80
[12673.035670]  prune_icache_sb+0x39/0x60
[12673.036010]  super_cache_scan+0x167/0x1f0
[12673.036377]  do_shrink_slab+0x163/0x340
[12673.036721]  ? lock_is_held_type+0xe2/0x140
[12673.037103]  shrink_slab+0x1d7/0x2a0
[12673.037438]  shrink_node+0x2eb/0x7b0
[12673.037761]  balance_pgdat+0x344/0x780
[12673.038105]  kswapd+0x205/0x410
[12673.038398]  ? __pfx_autoremove_wake_function+0x10/0x10
[12673.038867]  ? __pfx_kswapd+0x10/0x10
[12673.039194]  kthread+0xff/0x130
[12673.039484]  ? __pfx_kthread+0x10/0x10
[12673.039821]  ret_from_fork+0x2d/0x50
[12673.040142]  ? __pfx_kthread+0x10/0x10
[12673.040483]  ret_from_fork_asm+0x1b/0x30
[12673.040835]  
[12927.588066] BTRFS: device fsid 2ef00e81-3cf7-4bd5-a967-e669e0eabdbf devid 1 transid 66 /dev/mapper/vg0-lv9 scanned by mount (1656067)
[12927.589200] BTRFS info (device dm-9): using crc32c (crc32c-intel) checksum algorithm
[12927.589856] BTRFS info (device dm-9): disk space caching is enabled
[12927.593061] BTRFS info (device dm-9): auto enabling async discard