[11212.202944] run fstests generic/251 at 2023-09-09 00:00:44
[11212.663915] BTRFS: device fsid ec3e1159-917e-46d6-82d2-6d36aac552b0 devid 1 transid 2681841 /dev/mapper/vg0-lv0 scanned by mount (1592844)
[11212.665157] BTRFS info (device dm-0): using crc32c (crc32c-intel) checksum algorithm
[11212.665163] BTRFS info (device dm-0): using free space tree
[11212.669158] BTRFS info (device dm-0): auto enabling async discard
[11213.598089] BTRFS: device fsid 1f4c9021-c39f-4d95-89e0-5d6105770ea5 devid 1 transid 6 /dev/mapper/vg0-lv9 scanned by mkfs.btrfs (1592892)
[11213.615933] BTRFS info (device dm-9): using crc32c (crc32c-intel) checksum algorithm
[11213.615943] BTRFS info (device dm-9): turning on async discard
[11213.615945] BTRFS info (device dm-9): disk space caching is enabled
[11213.622645] BTRFS info (device dm-9): checking UUID tree

[12396.523341] ======================================================
[12396.523556] WARNING: possible circular locking dependency detected
[12396.523770] 6.5.0+ #1296 Not tainted
[12396.523925] ------------------------------------------------------
[12396.524151] kswapd0/50 is trying to acquire lock:
[12396.524323] ffff9092cc17a388 (btrfs_trans_num_writers){++++}-{0:0}, at: join_transaction+0x1af/0x590
[12396.524643] 
               but task is already holding lock:
[12396.524845] ffff90928f83b600 (sb_internal#2){++++}-{0:0}, at: btrfs_commit_inode_delayed_inode+0x5f/0x120
[12396.525253] 
               which lock already depends on the new lock.

[12396.525553] 
               the existing dependency chain (in reverse order) is:
[12396.525819] 
               -> #3 (sb_internal#2){++++}-{0:0}:
[12396.526037]        start_transaction+0x3f9/0x740
[12396.526208]        btrfs_commit_inode_delayed_inode+0x5f/0x120
[12396.526430]        btrfs_evict_inode+0x273/0x3c0
[12396.526601]        evict+0xcc/0x1d0
[12396.526733]        inode_lru_isolate+0x14d/0x1e0
[12396.526904]        __list_lru_walk_one+0xbe/0x1c0
[12396.527077]        list_lru_walk_one+0x58/0x80
[12396.527255]        prune_icache_sb+0x39/0x60
[12396.527447]        super_cache_scan+0x167/0x1f0
[12396.527617]        do_shrink_slab+0x163/0x340
[12396.527778]        shrink_slab+0x1d7/0x2a0
[12396.527931]        shrink_node+0x2eb/0x7b0
[12396.528082]        balance_pgdat+0x344/0x780
[12396.528241]        kswapd+0x205/0x410
[12396.528386]        kthread+0xfc/0x130
[12396.528533]        ret_from_fork+0x2d/0x50
[12396.528685]        ret_from_fork_asm+0x1b/0x30
[12396.528852] 
               -> #2 (fs_reclaim){+.+.}-{0:0}:
[12396.529059]        fs_reclaim_acquire+0xa5/0xe0
[12396.529228]        kmem_cache_alloc_lru+0x4e/0x570
[12396.529410]        btrfs_alloc_inode+0x2d/0x250
[12396.529583]        alloc_inode+0x1a/0xc0
[12396.529729]        iget5_locked+0xba/0x110
[12396.529881]        btrfs_iget+0x43/0xe0
[12396.530059]        create_reloc_inode+0x19d/0x370
[12396.530239]        btrfs_relocate_block_group+0x1b7/0x410
[12396.530439]        btrfs_relocate_chunk+0x4c/0x1b0
[12396.530615]        btrfs_balance+0x8e7/0x11d0
[12396.530776]        btrfs_ioctl+0x1d3d/0x2900
[12396.530936]        __x64_sys_ioctl+0x8b/0xc0
[12396.531097]        do_syscall_64+0x38/0x90
[12396.531249]        entry_SYSCALL_64_after_hwframe+0x6e/0xd8
[12396.531456] 
               -> #1 (btrfs_trans_num_extwriters){++++}-{0:0}:
[12396.531709]        join_transaction+0xb4/0x590
[12396.531875]        start_transaction+0x187/0x740
[12396.532045]        btrfs_uuid_scan_kthread+0x2bc/0x3d0
[12396.532232]        kthread+0xfc/0x130
[12396.532375]        ret_from_fork+0x2d/0x50
[12396.532526]        ret_from_fork_asm+0x1b/0x30
[12396.532717] 
               -> #0 (btrfs_trans_num_writers){++++}-{0:0}:
[12396.532972]        __lock_acquire+0x1415/0x2190
[12396.533141]        lock_acquire+0xc7/0x2b0
[12396.533292]        join_transaction+0x1de/0x590
[12396.533465]        start_transaction+0x187/0x740
[12396.533634]        btrfs_commit_inode_delayed_inode+0x5f/0x120
[12396.533847]        btrfs_evict_inode+0x273/0x3c0
[12396.534018]        evict+0xcc/0x1d0
[12396.534150]        inode_lru_isolate+0x14d/0x1e0
[12396.534323]        __list_lru_walk_one+0xbe/0x1c0
[12396.534496]        list_lru_walk_one+0x58/0x80
[12396.534661]        prune_icache_sb+0x39/0x60
[12396.534820]        super_cache_scan+0x167/0x1f0
[12396.534986]        do_shrink_slab+0x163/0x340
[12396.535149]        shrink_slab+0x1d7/0x2a0
[12396.535303]        shrink_node+0x2eb/0x7b0
[12396.535492]        balance_pgdat+0x344/0x780
[12396.535650]        kswapd+0x205/0x410
[12396.535787]        kthread+0xfc/0x130
[12396.535924]        ret_from_fork+0x2d/0x50
[12396.536077]        ret_from_fork_asm+0x1b/0x30
[12396.536241] 
               other info that might help us debug this:

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

[12396.536908]  Possible unsafe locking scenario:

[12396.537122]        CPU0                    CPU1
[12396.537288]        ----                    ----
[12396.537457]   rlock(sb_internal#2);
[12396.537587]                                lock(fs_reclaim);
[12396.537797]                                lock(sb_internal#2);
[12396.538019]   rlock(btrfs_trans_num_writers);
[12396.538209] 
                *** DEADLOCK ***

[12396.538427] 4 locks held by kswapd0/50:
[12396.538586]  #0: ffffffff99e62e40 (fs_reclaim){+.+.}-{0:0}, at: balance_pgdat+0x492/0x780
[12396.538878]  #1: ffffffff99e51350 (shrinker_rwsem){++++}-{3:3}, at: shrink_slab+0x113/0x2a0
[12396.539176]  #2: ffff90928f83b0e0 (&type->s_umount_key#45){++++}-{3:3}, at: super_cache_scan+0x38/0x1f0
[12396.539514]  #3: ffff90928f83b600 (sb_internal#2){++++}-{0:0}, at: btrfs_commit_inode_delayed_inode+0x5f/0x120
[12396.539876] 
               stack backtrace:
[12396.540038] CPU: 0 PID: 50 Comm: kswapd0 Not tainted 6.5.0+ #1296
[12396.540259] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[12396.540564] Call Trace:
[12396.540659]  
[12396.540767]  dump_stack_lvl+0x58/0x90
[12396.540918]  check_noncircular+0x101/0x110
[12396.541071]  __lock_acquire+0x1415/0x2190
[12396.541222]  lock_acquire+0xc7/0x2b0
[12396.541360]  ? join_transaction+0x1af/0x590
[12396.541517]  ? lock_release+0x134/0x270
[12396.541659]  join_transaction+0x1de/0x590
[12396.541807]  ? join_transaction+0x1af/0x590
[12396.541963]  start_transaction+0x187/0x740
[12396.542113]  btrfs_commit_inode_delayed_inode+0x5f/0x120
[12396.542310]  btrfs_evict_inode+0x273/0x3c0
[12396.542462]  ? lock_release+0x134/0x270
[12396.542603]  ? __pfx_wake_bit_function+0x10/0x10
[12396.542776]  evict+0xcc/0x1d0
[12396.542892]  inode_lru_isolate+0x14d/0x1e0
[12396.543045]  __list_lru_walk_one+0xbe/0x1c0
[12396.543197]  ? __pfx_inode_lru_isolate+0x10/0x10
[12396.543372]  ? __pfx_inode_lru_isolate+0x10/0x10
[12396.543575]  list_lru_walk_one+0x58/0x80
[12396.543726]  prune_icache_sb+0x39/0x60
[12396.543867]  super_cache_scan+0x167/0x1f0
[12396.544017]  do_shrink_slab+0x163/0x340
[12396.544163]  shrink_slab+0x1d7/0x2a0
[12396.544302]  shrink_node+0x2eb/0x7b0
[12396.544439]  balance_pgdat+0x344/0x780
[12396.544581]  kswapd+0x205/0x410
[12396.544703]  ? __pfx_autoremove_wake_function+0x10/0x10
[12396.544893]  ? __pfx_kswapd+0x10/0x10
[12396.545030]  kthread+0xfc/0x130
[12396.545151]  ? __pfx_kthread+0x10/0x10
[12396.545291]  ret_from_fork+0x2d/0x50
[12396.545429]  ? __pfx_kthread+0x10/0x10
[12396.545569]  ret_from_fork_asm+0x1b/0x30
[12396.545718]  
[12509.089771] BTRFS: device fsid 1f4c9021-c39f-4d95-89e0-5d6105770ea5 devid 1 transid 139 /dev/mapper/vg0-lv9 scanned by mount (1660556)
[12509.090934] BTRFS info (device dm-9): using crc32c (crc32c-intel) checksum algorithm
[12509.091294] BTRFS info (device dm-9): turning on async discard
[12509.091540] BTRFS info (device dm-9): disk space caching is enabled