[35155.867378] run fstests generic/251 at 2023-09-27 06:40:22
[35156.438486] BTRFS: device fsid 13921637-4436-40f4-9cb4-e48f1103a380 devid 1 transid 2503383 /dev/mapper/vg0-lv0 scanned by mount (855833)
[35156.439704] BTRFS info (device dm-0): using crc32c (crc32c-intel) checksum algorithm
[35156.439711] BTRFS info (device dm-0): using free space tree
[35156.444009] BTRFS info (device dm-0): auto enabling async discard
[35156.718927] BTRFS: device fsid 262a7876-e2ac-4dd5-a049-d152a59522d9 devid 1 transid 6 /dev/mapper/vg0-lv9 scanned by mount (855892)
[35156.719750] BTRFS info (device dm-9): using crc32c (crc32c-intel) checksum algorithm
[35156.719759] BTRFS info (device dm-9): setting incompat feature flag for COMPRESS_LZO (0x8)
[35156.719762] BTRFS info (device dm-9): use lzo compression, level 0
[35156.719765] BTRFS info (device dm-9): disk space caching is enabled
[35156.724322] BTRFS info (device dm-9): auto enabling async discard
[35156.724484] BTRFS info (device dm-9): checking UUID tree

[35361.918923] ======================================================
[35361.919269] WARNING: possible circular locking dependency detected
[35361.919618] 6.6.0-rc3+ #1314 Not tainted
[35361.919833] ------------------------------------------------------
[35361.920169] kswapd0/50 is trying to acquire lock:
[35361.920433] ffff9086071ce390 (btrfs_trans_num_writers){++++}-{0:0}, at: join_transaction+0x1d0/0x580
[35361.920931] 
               but task is already holding lock:
[35361.921251] ffff908662570600 (sb_internal#2){++++}-{0:0}, at: btrfs_commit_inode_delayed_inode+0x5f/0x120
[35361.921770] 
               which lock already depends on the new lock.

[35361.922218] 
               the existing dependency chain (in reverse order) is:
[35361.922629] 
               -> #3 (sb_internal#2){++++}-{0:0}:
[35361.922955]        start_transaction+0x493/0xad0
[35361.923210]        btrfs_commit_inode_delayed_inode+0x5f/0x120
[35361.923607]        btrfs_evict_inode+0x273/0x3c0
[35361.923861]        evict+0xcc/0x1d0
[35361.924056]        inode_lru_isolate+0x14d/0x1e0
[35361.924321]        __list_lru_walk_one+0xbe/0x1c0
[35361.924586]        list_lru_walk_one+0x58/0x80
[35361.924831]        prune_icache_sb+0x39/0x60
[35361.925069]        super_cache_scan+0x167/0x1f0
[35361.925322]        do_shrink_slab+0x163/0x340
[35361.925566]        shrink_slab+0x1d7/0x2a0
[35361.925795]        shrink_node+0x2eb/0x7b0
[35361.926021]        balance_pgdat+0x344/0x780
[35361.926258]        kswapd+0x205/0x410
[35361.926516]        kthread+0xff/0x130
[35361.926733]        ret_from_fork+0x2d/0x50
[35361.926958]        ret_from_fork_asm+0x1b/0x30
[35361.927250] 
               -> #2 (fs_reclaim){+.+.}-{0:0}:
[35361.927566]        fs_reclaim_acquire+0xa2/0xe0
[35361.927817]        kmem_cache_alloc_lru+0x4e/0x600
[35361.928097]        btrfs_alloc_inode+0x2d/0x250
[35361.928360]        alloc_inode+0x1a/0xc0
[35361.928577]        iget5_locked+0xba/0x110
[35361.928803]        btrfs_iget+0x43/0xe0
[35361.929018]        create_reloc_inode+0x1a0/0x370
[35361.929305]        btrfs_relocate_block_group+0x1d2/0x3d0
[35361.929601]        btrfs_relocate_chunk+0x4c/0x1b0
[35361.929864]        btrfs_balance+0x8e7/0x11d0
[35361.930106]        btrfs_ioctl+0x1bb4/0x28b0
[35361.930342]        __x64_sys_ioctl+0x8b/0xc0
[35361.930588]        do_syscall_64+0x38/0x90
[35361.930814]        entry_SYSCALL_64_after_hwframe+0x6e/0xd8
[35361.931119] 
               -> #1 (btrfs_trans_num_extwriters){++++}-{0:0}:
[35361.931562]        join_transaction+0xaf/0x580
[35361.931928]        start_transaction+0x1a0/0xad0
[35361.932306]        btrfs_uuid_scan_kthread+0x2bc/0x3d0
[35361.932725]        kthread+0xff/0x130
[35361.933023]        ret_from_fork+0x2d/0x50
[35361.933363]        ret_from_fork_asm+0x1b/0x30
[35361.933727] 
               -> #0 (btrfs_trans_num_writers){++++}-{0:0}:
[35361.934277]        __lock_acquire+0x1415/0x2190
[35361.934659]        lock_acquire+0xc7/0x2b0
[35361.934999]        join_transaction+0x1e4/0x580
[35361.935381]        start_transaction+0x1a0/0xad0
[35361.935758]        btrfs_commit_inode_delayed_inode+0x5f/0x120
[35361.936234]        btrfs_evict_inode+0x273/0x3c0
[35361.936618]        evict+0xcc/0x1d0
[35361.936906]        inode_lru_isolate+0x14d/0x1e0
[35361.937287]        __list_lru_walk_one+0xbe/0x1c0
[35361.937677]        list_lru_walk_one+0x58/0x80
[35361.938042]        prune_icache_sb+0x39/0x60
[35361.938404]        super_cache_scan+0x167/0x1f0
[35361.938779]        do_shrink_slab+0x163/0x340
[35361.939139]        shrink_slab+0x1d7/0x2a0
[35361.939482]        shrink_node+0x2eb/0x7b0
[35361.939817]        balance_pgdat+0x344/0x780
[35361.940162]        kswapd+0x205/0x410
[35361.940465]        kthread+0xff/0x130
[35361.940764]        ret_from_fork+0x2d/0x50
[35361.941102]        ret_from_fork_asm+0x1b/0x30
[35361.941466] 
               other info that might help us debug this:

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

[35361.942966]  Possible unsafe locking scenario:

[35361.943434]        CPU0                    CPU1
[35361.943796]        ----                    ----
[35361.944167]   rlock(sb_internal#2);
[35361.944463]                                lock(fs_reclaim);
[35361.944917]                                lock(sb_internal#2);
[35361.945456]   rlock(btrfs_trans_num_writers);
[35361.945809] 
                *** DEADLOCK ***

[35361.946288] 4 locks held by kswapd0/50:
[35361.946608]  #0: ffffffff93e62e00 (fs_reclaim){+.+.}-{0:0}, at: balance_pgdat+0x3eb/0x780
[35361.947263]  #1: ffffffff93e51310 (shrinker_rwsem){++++}-{3:3}, at: shrink_slab+0x113/0x2a0
[35361.947936]  #2: ffff9086625700e0 (&type->s_umount_key#45){++++}-{3:3}, at: super_cache_scan+0x38/0x1f0
[35361.948690]  #3: ffff908662570600 (sb_internal#2){++++}-{0:0}, at: btrfs_commit_inode_delayed_inode+0x5f/0x120
[35361.949500] 
               stack backtrace:
[35361.949856] CPU: 0 PID: 50 Comm: kswapd0 Not tainted 6.6.0-rc3+ #1314
[35361.950376] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[35361.951056] Call Trace:
[35361.951267]  
[35361.951454]  dump_stack_lvl+0x58/0x90
[35361.951752]  check_noncircular+0x101/0x110
[35361.952097]  __lock_acquire+0x1415/0x2190
[35361.952429]  lock_acquire+0xc7/0x2b0
[35361.952727]  ? join_transaction+0x1d0/0x580
[35361.953070]  ? lock_release+0x134/0x270
[35361.953393]  ? join_transaction+0x1d0/0x580
[35361.953732]  ? join_transaction+0x3d/0x580
[35361.954070]  join_transaction+0x1e4/0x580
[35361.954427]  ? join_transaction+0x1d0/0x580
[35361.954772]  start_transaction+0x1a0/0xad0
[35361.955116]  btrfs_commit_inode_delayed_inode+0x5f/0x120
[35361.955563]  btrfs_evict_inode+0x273/0x3c0
[35361.955914]  ? lock_release+0x134/0x270
[35361.956234]  ? __pfx_wake_bit_function+0x10/0x10
[35361.956633]  evict+0xcc/0x1d0
[35361.956896]  inode_lru_isolate+0x14d/0x1e0
[35361.957245]  __list_lru_walk_one+0xbe/0x1c0
[35361.957601]  ? __pfx_inode_lru_isolate+0x10/0x10
[35361.957981]  ? __pfx_inode_lru_isolate+0x10/0x10
[35361.958303]  list_lru_walk_one+0x58/0x80
[35361.958580]  prune_icache_sb+0x39/0x60
[35361.958837]  super_cache_scan+0x167/0x1f0
[35361.959117]  do_shrink_slab+0x163/0x340
[35361.959374]  shrink_slab+0x1d7/0x2a0
[35361.959616]  shrink_node+0x2eb/0x7b0
[35361.959877]  balance_pgdat+0x344/0x780
[35361.960125]  kswapd+0x205/0x410
[35361.960331]  ? __pfx_autoremove_wake_function+0x10/0x10
[35361.960636]  ? __pfx_kswapd+0x10/0x10
[35361.960849]  kthread+0xff/0x130
[35361.961035]  ? __pfx_kthread+0x10/0x10
[35361.961262]  ret_from_fork+0x2d/0x50
[35361.961475]  ? __pfx_kthread+0x10/0x10
[35361.961688]  ret_from_fork_asm+0x1b/0x30
[35361.961976]  
[35808.194661] BTRFS: device fsid 262a7876-e2ac-4dd5-a049-d152a59522d9 devid 1 transid 91 /dev/mapper/vg0-lv9 scanned by mount (929682)
[35808.196720] BTRFS info (device dm-9): using crc32c (crc32c-intel) checksum algorithm
[35808.197161] BTRFS info (device dm-9): use lzo compression, level 0
[35808.197481] BTRFS info (device dm-9): disk space caching is enabled
[35808.201502] BTRFS info (device dm-9): auto enabling async discard