[12503.089374] run fstests generic/251 at 2023-10-18 00:21:41
[12503.792309] BTRFS: device fsid ec3e1159-917e-46d6-82d2-6d36aac552b0 devid 1 transid 2959184 /dev/mapper/vg0-lv0 scanned by mount (1605992)
[12503.793193] BTRFS info (device dm-0): using crc32c (crc32c-intel) checksum algorithm
[12503.793202] BTRFS info (device dm-0): using free space tree
[12503.799695] BTRFS info (device dm-0): auto enabling async discard
[12504.347151] BTRFS: device fsid 6c605ab1-556b-440b-bb52-dc9f2d9b835a devid 1 transid 6 /dev/mapper/vg0-lv9 scanned by mount (1606050)
[12504.348096] BTRFS info (device dm-9): using crc32c (crc32c-intel) checksum algorithm
[12504.348105] BTRFS info (device dm-9): turning on async discard
[12504.348108] BTRFS info (device dm-9): disk space caching is enabled
[12504.353885] BTRFS info (device dm-9): checking UUID tree

[13403.384595] ======================================================
[13403.384827] WARNING: possible circular locking dependency detected
[13403.385092] 6.6.0-rc5+ #1331 Not tainted
[13403.385243] ------------------------------------------------------
[13403.385477] kswapd0/50 is trying to acquire lock:
[13403.385655] ffff895cd7bfe390 (btrfs_trans_num_writers){++++}-{0:0}, at: join_transaction+0x1d0/0x580
[13403.387909] 
               but task is already holding lock:
[13403.388174] ffff895ce1cc5600 (sb_internal#2){++++}-{0:0}, at: evict_refill_and_join+0x7d/0xe0
[13403.388614] 
               which lock already depends on the new lock.

[13403.388928] 
               the existing dependency chain (in reverse order) is:
[13403.389212] 
               -> #3 (sb_internal#2){++++}-{0:0}:
[13403.389436]        start_transaction+0x493/0xad0
[13403.389611]        evict_refill_and_join+0x7d/0xe0
[13403.389792]        btrfs_evict_inode+0x2ff/0x3c0
[13403.389965]        evict+0xcc/0x1d0
[13403.390119]        inode_lru_isolate+0x14d/0x1e0
[13403.390301]        __list_lru_walk_one+0xbe/0x1c0
[13403.390487]        list_lru_walk_one+0x58/0x80
[13403.390655]        prune_icache_sb+0x39/0x60
[13403.390818]        super_cache_scan+0x167/0x1f0
[13403.390994]        do_shrink_slab+0x163/0x340
[13403.391175]        shrink_slab+0x1d7/0x2a0
[13403.391330]        shrink_node+0x2eb/0x7b0
[13403.391487]        balance_pgdat+0x344/0x780
[13403.391649]        kswapd+0x205/0x410
[13403.391789]        kthread+0xff/0x130
[13403.392138]        ret_from_fork+0x2d/0x50
[13403.392298]        ret_from_fork_asm+0x1b/0x30
[13403.392472] 
               -> #2 (fs_reclaim){+.+.}-{0:0}:
[13403.392684]        fs_reclaim_acquire+0xa2/0xe0
[13403.392860]        kmem_cache_alloc_lru+0x4e/0x600
[13403.393049]        btrfs_alloc_inode+0x2d/0x250
[13403.393220]        alloc_inode+0x1a/0xc0
[13403.393369]        iget5_locked+0xba/0x110
[13403.393525]        btrfs_iget+0x43/0xe0
[13403.393671]        create_reloc_inode+0x1a0/0x360
[13403.393855]        btrfs_relocate_block_group+0x1d2/0x3d0
[13403.394057]        btrfs_relocate_chunk+0x4c/0x1b0
[13403.394242]        btrfs_balance+0x8e7/0x11d0
[13403.394408]        btrfs_ioctl+0x1c25/0x2860
[13403.394570]        __x64_sys_ioctl+0x8b/0xc0
[13403.394781]        do_syscall_64+0x38/0x90
[13403.394942]        entry_SYSCALL_64_after_hwframe+0x6e/0xd8
[13403.395160] 
               -> #1 (btrfs_trans_num_extwriters){++++}-{0:0}:
[13403.395422]        join_transaction+0xaf/0x580
[13403.395591]        start_transaction+0x1a0/0xad0
[13403.395764]        btrfs_uuid_scan_kthread+0x2bc/0x3d0
[13403.395962]        kthread+0xff/0x130
[13403.396109]        ret_from_fork+0x2d/0x50
[13403.396267]        ret_from_fork_asm+0x1b/0x30
[13403.396441] 
               -> #0 (btrfs_trans_num_writers){++++}-{0:0}:
[13403.396689]        __lock_acquire+0x1415/0x2190
[13403.396869]        lock_acquire+0xc7/0x2b0
[13403.397023]        join_transaction+0x1e4/0x580
[13403.397225]        start_transaction+0x1a0/0xad0
[13403.397401]        evict_refill_and_join+0x7d/0xe0
[13403.397580]        btrfs_evict_inode+0x2ff/0x3c0
[13403.397755]        evict+0xcc/0x1d0
[13403.397890]        inode_lru_isolate+0x14d/0x1e0
[13403.398073]        __list_lru_walk_one+0xbe/0x1c0
[13403.398252]        list_lru_walk_one+0x58/0x80
[13403.398420]        prune_icache_sb+0x39/0x60
[13403.398583]        super_cache_scan+0x167/0x1f0
[13403.398762]        do_shrink_slab+0x163/0x340
[13403.398932]        shrink_slab+0x1d7/0x2a0
[13403.399092]        shrink_node+0x2eb/0x7b0
[13403.399248]        balance_pgdat+0x344/0x780
[13403.399409]        kswapd+0x205/0x410
[13403.399549]        kthread+0xff/0x130
[13403.399690]        ret_from_fork+0x2d/0x50
[13403.399846]        ret_from_fork_asm+0x1b/0x30
[13403.400018] 
               other info that might help us debug this:

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

[13403.400706]  Possible unsafe locking scenario:

[13403.400971]        CPU0                    CPU1
[13403.401147]        ----                    ----
[13403.401317]   rlock(sb_internal#2);
[13403.401451]                                lock(fs_reclaim);
[13403.401660]                                lock(sb_internal#2);
[13403.401879]   rlock(btrfs_trans_num_writers);
[13403.402047] 
                *** DEADLOCK ***

[13403.402264] 4 locks held by kswapd0/50:
[13403.402409]  #0: ffffffff9fe62ea0 (fs_reclaim){+.+.}-{0:0}, at: balance_pgdat+0x3eb/0x780
[13403.402707]  #1: ffffffff9fe513b0 (shrinker_rwsem){++++}-{3:3}, at: shrink_slab+0x113/0x2a0
[13403.403016]  #2: ffff895ce1cc50e0 (&type->s_umount_key#45){++++}-{3:3}, at: super_cache_scan+0x38/0x1f0
[13403.403359]  #3: ffff895ce1cc5600 (sb_internal#2){++++}-{0:0}, at: evict_refill_and_join+0x7d/0xe0
[13403.403685] 
               stack backtrace:
[13403.403850] CPU: 0 PID: 50 Comm: kswapd0 Not tainted 6.6.0-rc5+ #1331
[13403.404090] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[13403.404400] Call Trace:
[13403.404501]  
[13403.404591]  dump_stack_lvl+0x58/0x90
[13403.404744]  check_noncircular+0x101/0x110
[13403.404902]  __lock_acquire+0x1415/0x2190
[13403.405062]  lock_acquire+0xc7/0x2b0
[13403.405201]  ? join_transaction+0x1d0/0x580
[13403.405359]  ? lock_release+0x134/0x270
[13403.405507]  ? join_transaction+0x1d0/0x580
[13403.405664]  ? join_transaction+0x3d/0x580
[13403.405824]  join_transaction+0x1e4/0x580
[13403.405979]  ? join_transaction+0x1d0/0x580
[13403.406224]  start_transaction+0x1a0/0xad0
[13403.406382]  evict_refill_and_join+0x7d/0xe0
[13403.406549]  btrfs_evict_inode+0x2ff/0x3c0
[13403.406736]  evict+0xcc/0x1d0
[13403.406855]  inode_lru_isolate+0x14d/0x1e0
[13403.407010]  __list_lru_walk_one+0xbe/0x1c0
[13403.407175]  ? __pfx_inode_lru_isolate+0x10/0x10
[13403.407350]  ? __pfx_inode_lru_isolate+0x10/0x10
[13403.407524]  list_lru_walk_one+0x58/0x80
[13403.407674]  prune_icache_sb+0x39/0x60
[13403.407818]  super_cache_scan+0x167/0x1f0
[13403.407972]  do_shrink_slab+0x163/0x340
[13403.408123]  ? lock_is_held_type+0xe2/0x140
[13403.408293]  shrink_slab+0x1d7/0x2a0
[13403.408432]  shrink_node+0x2eb/0x7b0
[13403.408572]  balance_pgdat+0x344/0x780
[13403.408719]  kswapd+0x205/0x410
[13403.408843]  ? __pfx_autoremove_wake_function+0x10/0x10
[13403.409038]  ? __pfx_kswapd+0x10/0x10
[13403.409184]  kthread+0xff/0x130
[13403.409309]  ? __pfx_kthread+0x10/0x10
[13403.409453]  ret_from_fork+0x2d/0x50
[13403.409591]  ? __pfx_kthread+0x10/0x10
[13403.409735]  ret_from_fork_asm+0x1b/0x30
[13403.409887]  
[13604.486555] BTRFS: device fsid 6c605ab1-556b-440b-bb52-dc9f2d9b835a devid 1 transid 123 /dev/mapper/vg0-lv9 scanned by mount (1616760)
[13604.487460] BTRFS info (device dm-9): using crc32c (crc32c-intel) checksum algorithm
[13604.487813] BTRFS info (device dm-9): turning on async discard
[13604.488062] BTRFS info (device dm-9): disk space caching is enabled