[51630.296744] run fstests generic/251 at 2023-11-04 11:17:01
[51630.904878] BTRFS: device fsid 13921637-4436-40f4-9cb4-e48f1103a380 devid 1 transid 2751757 /dev/mapper/vg0-lv0 scanned by mount (3827691)
[51630.906214] BTRFS info (device dm-0): using crc32c (crc32c-intel) checksum algorithm
[51630.906221] BTRFS info (device dm-0): using free space tree
[51630.911049] BTRFS info (device dm-0): auto enabling async discard
[51631.115345] BTRFS: device fsid bba7a904-5c85-4727-a6c2-41065c1c5175 devid 1 transid 6 /dev/mapper/vg0-lv9 scanned by mount (3827749)
[51631.116065] BTRFS info (device dm-9): using crc32c (crc32c-intel) checksum algorithm
[51631.116072] BTRFS info (device dm-9): using free space tree
[51631.122580] BTRFS info (device dm-9): auto enabling async discard
[51631.122707] BTRFS info (device dm-9): checking UUID tree

[52434.386850] ======================================================
[52434.387088] WARNING: possible circular locking dependency detected
[52434.387306] 6.6.0-rc7+ #1348 Not tainted
[52434.387447] ------------------------------------------------------
[52434.387672] kswapd0/50 is trying to acquire lock:
[52434.387842] ffff9db440866390 (btrfs_trans_num_writers){++++}-{0:0}, at: join_transaction+0x1d0/0x580
[52434.388657] 
               but task is already holding lock:
[52434.388863] ffff9db477a2b600 (sb_internal#2){++++}-{0:0}, at: btrfs_commit_inode_delayed_inode+0x5f/0x120
[52434.389429] 
               which lock already depends on the new lock.

[52434.389717] 
               the existing dependency chain (in reverse order) is:
[52434.389976] 
               -> #3 (sb_internal#2){++++}-{0:0}:
[52434.390187]        start_transaction+0x493/0xad0
[52434.390353]        btrfs_commit_inode_delayed_inode+0x5f/0x120
[52434.390560]        btrfs_evict_inode+0x273/0x3c0
[52434.390735]        evict+0xcc/0x1d0
[52434.391205]        inode_lru_isolate+0x14d/0x1e0
[52434.391490]        __list_lru_walk_one+0xbe/0x1c0
[52434.392076]        list_lru_walk_one+0x58/0x80
[52434.392239]        prune_icache_sb+0x39/0x60
[52434.392395]        super_cache_scan+0x167/0x1f0
[52434.392811]        do_shrink_slab+0x163/0x340
[52434.393462]        shrink_slab+0x1d7/0x2a0
[52434.393613]        shrink_node+0x2eb/0x7b0
[52434.393767]        balance_pgdat+0x344/0x780
[52434.393924]        kswapd+0x205/0x410
[52434.394058]        kthread+0xff/0x130
[52434.394637]        ret_from_fork+0x2d/0x50
[52434.395023]        ret_from_fork_asm+0x1b/0x30
[52434.395345] 
               -> #2 (fs_reclaim){+.+.}-{0:0}:
[52434.395550]        fs_reclaim_acquire+0xa2/0xe0
[52434.395956]        kmem_cache_alloc_lru+0x4e/0x600
[52434.396375]        btrfs_alloc_inode+0x2d/0x250
[52434.396549]        alloc_inode+0x1a/0xc0
[52434.396704]        iget5_locked+0xba/0x110
[52434.396851]        btrfs_iget+0x43/0xe0
[52434.397023]        create_reloc_inode+0x1a0/0x360
[52434.397193]        btrfs_relocate_block_group+0x1d2/0x3d0
[52434.397381]        btrfs_relocate_chunk+0x4c/0x1b0
[52434.397773]        btrfs_balance+0x8e7/0x11d0
[52434.397933]        btrfs_ioctl+0x1c25/0x2860
[52434.398094]        __x64_sys_ioctl+0x8b/0xc0
[52434.398253]        do_syscall_64+0x38/0x90
[52434.398698]        entry_SYSCALL_64_after_hwframe+0x6e/0xd8
[52434.399177] 
               -> #1 (btrfs_trans_num_extwriters){++++}-{0:0}:
[52434.399441]        join_transaction+0xaf/0x580
[52434.399624]        start_transaction+0x1a0/0xad0
[52434.399805]        btrfs_uuid_scan_kthread+0x2bc/0x3d0
[52434.400143]        kthread+0xff/0x130
[52434.400279]        ret_from_fork+0x2d/0x50
[52434.400427]        ret_from_fork_asm+0x1b/0x30
[52434.400591] 
               -> #0 (btrfs_trans_num_writers){++++}-{0:0}:
[52434.400834]        __lock_acquire+0x1415/0x2190
[52434.401423]        lock_acquire+0xc7/0x2b0
[52434.401599]        join_transaction+0x1e4/0x580
[52434.401776]        start_transaction+0x1a0/0xad0
[52434.402011]        btrfs_commit_inode_delayed_inode+0x5f/0x120
[52434.402254]        btrfs_evict_inode+0x273/0x3c0
[52434.402422]        evict+0xcc/0x1d0
[52434.402551]        inode_lru_isolate+0x14d/0x1e0
[52434.402769]        __list_lru_walk_one+0xbe/0x1c0
[52434.402936]        list_lru_walk_one+0x58/0x80
[52434.403128]        prune_icache_sb+0x39/0x60
[52434.403301]        super_cache_scan+0x167/0x1f0
[52434.403494]        do_shrink_slab+0x163/0x340
[52434.403662]        shrink_slab+0x1d7/0x2a0
[52434.403817]        shrink_node+0x2eb/0x7b0
[52434.403999]        balance_pgdat+0x344/0x780
[52434.404153]        kswapd+0x205/0x410
[52434.404287]        kthread+0xff/0x130
[52434.404492]        ret_from_fork+0x2d/0x50
[52434.404691]        ret_from_fork_asm+0x1b/0x30
[52434.404869] 
               other info that might help us debug this:

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

[52434.405531]  Possible unsafe locking scenario:

[52434.405743]        CPU0                    CPU1
[52434.405905]        ----                    ----
[52434.406067]   rlock(sb_internal#2);
[52434.406194]                                lock(fs_reclaim);
[52434.406393]                                lock(sb_internal#2);
[52434.406601]   rlock(btrfs_trans_num_writers);
[52434.406761] 
                *** DEADLOCK ***

[52434.406967] 4 locks held by kswapd0/50:
[52434.407106]  #0: ffffffffa5e62ea0 (fs_reclaim){+.+.}-{0:0}, at: balance_pgdat+0x3eb/0x780
[52434.407389]  #1: ffffffffa5e513b0 (shrinker_rwsem){++++}-{3:3}, at: shrink_slab+0x113/0x2a0
[52434.407704]  #2: ffff9db477a2b0e0 (&type->s_umount_key#45){++++}-{3:3}, at: super_cache_scan+0x38/0x1f0
[52434.408066]  #3: ffff9db477a2b600 (sb_internal#2){++++}-{0:0}, at: btrfs_commit_inode_delayed_inode+0x5f/0x120
[52434.408414] 
               stack backtrace:
[52434.408576] CPU: 0 PID: 50 Comm: kswapd0 Not tainted 6.6.0-rc7+ #1348
[52434.408807] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[52434.409100] Call Trace:
[52434.409195]  
[52434.409282]  dump_stack_lvl+0x58/0x90
[52434.409934]  check_noncircular+0x101/0x110
[52434.410087]  __lock_acquire+0x1415/0x2190
[52434.410235]  lock_acquire+0xc7/0x2b0
[52434.410443]  ? join_transaction+0x1d0/0x580
[52434.410597]  ? lock_release+0x134/0x270
[52434.410743]  ? join_transaction+0x1d0/0x580
[52434.410893]  ? join_transaction+0x3d/0x580
[52434.411040]  join_transaction+0x1e4/0x580
[52434.411200]  ? join_transaction+0x1d0/0x580
[52434.411351]  start_transaction+0x1a0/0xad0
[52434.411499]  btrfs_commit_inode_delayed_inode+0x5f/0x120
[52434.411692]  btrfs_evict_inode+0x273/0x3c0
[52434.411840]  ? lock_release+0x134/0x270
[52434.411978]  ? __pfx_wake_bit_function+0x10/0x10
[52434.412405]  evict+0xcc/0x1d0
[52434.412521]  inode_lru_isolate+0x14d/0x1e0
[52434.412672]  __list_lru_walk_one+0xbe/0x1c0
[52434.412824]  ? __pfx_inode_lru_isolate+0x10/0x10
[52434.412990]  ? __pfx_inode_lru_isolate+0x10/0x10
[52434.413155]  list_lru_walk_one+0x58/0x80
[52434.413298]  prune_icache_sb+0x39/0x60
[52434.413435]  super_cache_scan+0x167/0x1f0
[52434.413580]  do_shrink_slab+0x163/0x340
[52434.413769]  ? lock_is_held_type+0xe2/0x140
[52434.413968]  shrink_slab+0x1d7/0x2a0
[52434.414111]  shrink_node+0x2eb/0x7b0
[52434.414244]  balance_pgdat+0x344/0x780
[52434.414392]  kswapd+0x205/0x410
[52434.414512]  ? __pfx_autoremove_wake_function+0x10/0x10
[52434.414713]  ? __pfx_kswapd+0x10/0x10
[52434.414876]  kthread+0xff/0x130
[52434.414993]  ? __pfx_kthread+0x10/0x10
[52434.415130]  ret_from_fork+0x2d/0x50
[52434.415260]  ? __pfx_kthread+0x10/0x10
[52434.415396]  ret_from_fork_asm+0x1b/0x30
[52434.415539]  
[52577.006966] BTRFS: device fsid bba7a904-5c85-4727-a6c2-41065c1c5175 devid 1 transid 119 /dev/mapper/vg0-lv9 scanned by mount (3843079)
[52577.007756] BTRFS info (device dm-9): using crc32c (crc32c-intel) checksum algorithm
[52577.008067] BTRFS info (device dm-9): using free space tree
[52577.010480] BTRFS info (device dm-9): auto enabling async discard