[57057.529636] run fstests generic/251 at 2023-10-17 12:54:10
[57058.275854] BTRFS: device fsid ec3e1159-917e-46d6-82d2-6d36aac552b0 devid 1 transid 2956498 /dev/mapper/vg0-lv0 scanned by mount (3926207)
[57058.276553] BTRFS info (device dm-0): using crc32c (crc32c-intel) checksum algorithm
[57058.276559] BTRFS info (device dm-0): using free space tree
[57058.280842] BTRFS info (device dm-0): auto enabling async discard
[57058.532732] BTRFS: device fsid 5d370b90-efd1-49f4-9511-aafc9b218345 devid 1 transid 6 /dev/mapper/vg0-lv9 scanned by mount (3926262)
[57058.534005] BTRFS info (device dm-9): using crc32c (crc32c-intel) checksum algorithm
[57058.534013] BTRFS info (device dm-9): turning on sync discard
[57058.534016] BTRFS info (device dm-9): enabling free space tree
[57058.534018] BTRFS info (device dm-9): using free space tree
[57058.538203] BTRFS info (device dm-9): creating free space tree
[57058.539488] BTRFS info (device dm-9): setting compat-ro feature flag for FREE_SPACE_TREE (0x1)
[57058.539494] BTRFS info (device dm-9): setting compat-ro feature flag for FREE_SPACE_TREE_VALID (0x2)
[57058.608058] BTRFS info (device dm-9): cleaning free space cache v1
[57058.621522] BTRFS info (device dm-9): checking UUID tree

[57467.499208] ======================================================
[57467.499430] WARNING: possible circular locking dependency detected
[57467.499651] 6.6.0-rc5+ #1330 Not tainted
[57467.499793] ------------------------------------------------------
[57467.500018] kswapd0/50 is trying to acquire lock:
[57467.500187] ffff9c0e4434e390 (btrfs_trans_num_writers){++++}-{0:0}, at: join_transaction+0x1d0/0x580
[57467.505029] 
               but task is already holding lock:
[57467.505234] ffff9c0e42fc6600 (sb_internal#2){++++}-{0:0}, at: btrfs_commit_inode_delayed_inode+0x5f/0x120
[57467.505785] 
               which lock already depends on the new lock.

[57467.506072] 
               the existing dependency chain (in reverse order) is:
[57467.506332] 
               -> #3 (sb_internal#2){++++}-{0:0}:
[57467.506543]        start_transaction+0x493/0xad0
[57467.506711]        btrfs_commit_inode_delayed_inode+0x5f/0x120
[57467.506920]        btrfs_evict_inode+0x273/0x3c0
[57467.507094]        evict+0xcc/0x1d0
[57467.508525]        inode_lru_isolate+0x14d/0x1e0
[57467.508692]        __list_lru_walk_one+0xbe/0x1c0
[57467.509525]        list_lru_walk_one+0x58/0x80
[57467.509771]        prune_icache_sb+0x39/0x60
[57467.509929]        super_cache_scan+0x167/0x1f0
[57467.510340]        do_shrink_slab+0x163/0x340
[57467.511123]        shrink_slab+0x1d7/0x2a0
[57467.511273]        shrink_node+0x2eb/0x7b0
[57467.511422]        balance_pgdat+0x344/0x780
[57467.511579]        kswapd+0x205/0x410
[57467.511714]        kthread+0xff/0x130
[57467.513365]        ret_from_fork+0x2d/0x50
[57467.514451]        ret_from_fork_asm+0x1b/0x30
[57467.515113] 
               -> #2 (fs_reclaim){+.+.}-{0:0}:
[57467.515319]        fs_reclaim_acquire+0xa2/0xe0
[57467.515707]        kmem_cache_alloc_lru+0x4e/0x600
[57467.516115]        btrfs_alloc_inode+0x2d/0x250
[57467.516308]        alloc_inode+0x1a/0xc0
[57467.516450]        iget5_locked+0xba/0x110
[57467.516598]        btrfs_iget+0x43/0xe0
[57467.516739]        create_reloc_inode+0x1a0/0x360
[57467.516913]        btrfs_relocate_block_group+0x1d2/0x3d0
[57467.517109]        btrfs_relocate_chunk+0x4c/0x1b0
[57467.517539]        btrfs_balance+0x8e7/0x11d0
[57467.517697]        btrfs_ioctl+0x1c25/0x2860
[57467.517854]        __x64_sys_ioctl+0x8b/0xc0
[57467.518230]        do_syscall_64+0x38/0x90
[57467.519171]        entry_SYSCALL_64_after_hwframe+0x6e/0xd8
[57467.519813] 
               -> #1 (btrfs_trans_num_extwriters){++++}-{0:0}:
[57467.520064]        join_transaction+0xaf/0x580
[57467.520227]        start_transaction+0x1a0/0xad0
[57467.520392]        btrfs_uuid_scan_kthread+0x2bc/0x3d0
[57467.520579]        kthread+0xff/0x130
[57467.520713]        ret_from_fork+0x2d/0x50
[57467.520860]        ret_from_fork_asm+0x1b/0x30
[57467.521026] 
               -> #0 (btrfs_trans_num_writers){++++}-{0:0}:
[57467.521266]        __lock_acquire+0x1415/0x2190
[57467.522003]        lock_acquire+0xc7/0x2b0
[57467.522152]        join_transaction+0x1e4/0x580
[57467.522316]        start_transaction+0x1a0/0xad0
[57467.522482]        btrfs_commit_inode_delayed_inode+0x5f/0x120
[57467.522689]        btrfs_evict_inode+0x273/0x3c0
[57467.522856]        evict+0xcc/0x1d0
[57467.522988]        inode_lru_isolate+0x14d/0x1e0
[57467.523155]        __list_lru_walk_one+0xbe/0x1c0
[57467.523324]        list_lru_walk_one+0x58/0x80
[57467.523483]        prune_icache_sb+0x39/0x60
[57467.523639]        super_cache_scan+0x167/0x1f0
[57467.523802]        do_shrink_slab+0x163/0x340
[57467.523963]        shrink_slab+0x1d7/0x2a0
[57467.524112]        shrink_node+0x2eb/0x7b0
[57467.524259]        balance_pgdat+0x344/0x780
[57467.524415]        kswapd+0x205/0x410
[57467.524599]        kthread+0xff/0x130
[57467.524733]        ret_from_fork+0x2d/0x50
[57467.524880]        ret_from_fork_asm+0x1b/0x30
[57467.525048] 
               other info that might help us debug this:

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

[57467.525938]  Possible unsafe locking scenario:

[57467.526151]        CPU0                    CPU1
[57467.526312]        ----                    ----
[57467.526475]   rlock(sb_internal#2);
[57467.526603]                                lock(fs_reclaim);
[57467.526804]                                lock(sb_internal#2);
[57467.527017]   rlock(btrfs_trans_num_writers);
[57467.527196] 
                *** DEADLOCK ***

[57467.527406] 4 locks held by kswapd0/50:
[57467.527544]  #0: ffffffffb6e62ea0 (fs_reclaim){+.+.}-{0:0}, at: balance_pgdat+0x3eb/0x780
[57467.527854]  #1: ffffffffb6e513b0 (shrinker_rwsem){++++}-{3:3}, at: shrink_slab+0x113/0x2a0
[57467.528338]  #2: ffff9c0e42fc60e0 (&type->s_umount_key#45){++++}-{3:3}, at: super_cache_scan+0x38/0x1f0
[57467.528806]  #3: ffff9c0e42fc6600 (sb_internal#2){++++}-{0:0}, at: btrfs_commit_inode_delayed_inode+0x5f/0x120
[57467.529279] 
               stack backtrace:
[57467.529448] CPU: 0 PID: 50 Comm: kswapd0 Not tainted 6.6.0-rc5+ #1330
[57467.529675] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[57467.529975] Call Trace:
[57467.530308]  
[57467.530546]  dump_stack_lvl+0x58/0x90
[57467.530874]  check_noncircular+0x101/0x110
[57467.531044]  ? mark_held_locks+0x49/0x80
[57467.531192]  __lock_acquire+0x1415/0x2190
[57467.531341]  lock_acquire+0xc7/0x2b0
[57467.531472]  ? join_transaction+0x1d0/0x580
[57467.531657]  ? lock_release+0x134/0x270
[57467.531811]  ? join_transaction+0x1d0/0x580
[57467.531967]  ? join_transaction+0x3d/0x580
[57467.532166]  join_transaction+0x1e4/0x580
[57467.532313]  ? join_transaction+0x1d0/0x580
[57467.532481]  start_transaction+0x1a0/0xad0
[57467.532653]  btrfs_commit_inode_delayed_inode+0x5f/0x120
[57467.532857]  btrfs_evict_inode+0x273/0x3c0
[57467.533029]  ? lock_release+0x134/0x270
[57467.533180]  ? __pfx_wake_bit_function+0x10/0x10
[57467.533582]  evict+0xcc/0x1d0
[57467.533714]  inode_lru_isolate+0x14d/0x1e0
[57467.533868]  __list_lru_walk_one+0xbe/0x1c0
[57467.534040]  ? __pfx_inode_lru_isolate+0x10/0x10
[57467.534215]  ? __pfx_inode_lru_isolate+0x10/0x10
[57467.534381]  list_lru_walk_one+0x58/0x80
[57467.534544]  prune_icache_sb+0x39/0x60
[57467.534690]  super_cache_scan+0x167/0x1f0
[57467.534852]  do_shrink_slab+0x163/0x340
[57467.535014]  ? lock_is_held_type+0xe2/0x140
[57467.535447]  shrink_slab+0x1d7/0x2a0
[57467.535613]  shrink_node+0x2eb/0x7b0
[57467.535758]  balance_pgdat+0x344/0x780
[57467.535899]  kswapd+0x205/0x410
[57467.536021]  ? __pfx_autoremove_wake_function+0x10/0x10
[57467.536209]  ? __pfx_kswapd+0x10/0x10
[57467.536365]  kthread+0xff/0x130
[57467.536529]  ? __pfx_kthread+0x10/0x10
[57467.536671]  ret_from_fork+0x2d/0x50
[57467.536816]  ? __pfx_kthread+0x10/0x10
[57467.536973]  ret_from_fork_asm+0x1b/0x30
[57467.537128]  
[57826.720972] BTRFS: device fsid 5d370b90-efd1-49f4-9511-aafc9b218345 devid 1 transid 117 /dev/mapper/vg0-lv9 scanned by mount (3963938)
[57826.722042] BTRFS info (device dm-9): using crc32c (crc32c-intel) checksum algorithm
[57826.722410] BTRFS info (device dm-9): turning on sync discard
[57826.722647] BTRFS info (device dm-9): using free space tree