[12541.998582] run fstests generic/251 at 2023-10-26 00:22:12
[12542.564566] BTRFS: device fsid ec3e1159-917e-46d6-82d2-6d36aac552b0 devid 1 transid 3024119 /dev/mapper/vg0-lv0 scanned by mount (1603838)
[12542.565921] BTRFS info (device dm-0): using crc32c (crc32c-intel) checksum algorithm
[12542.565928] BTRFS info (device dm-0): using free space tree
[12542.570213] BTRFS info (device dm-0): auto enabling async discard
[12543.103830] BTRFS: device fsid 3e421dd5-32db-4871-bacc-f28d033ddb56 devid 1 transid 6 /dev/mapper/vg0-lv9 scanned by mount (1603893)
[12543.104904] BTRFS info (device dm-9): using crc32c (crc32c-intel) checksum algorithm
[12543.104914] BTRFS info (device dm-9): turning on async discard
[12543.104917] BTRFS info (device dm-9): disk space caching is enabled
[12543.108435] BTRFS info (device dm-9): checking UUID tree

[12772.476908] ======================================================
[12772.477315] WARNING: possible circular locking dependency detected
[12772.477722] 6.6.0-rc7+ #1339 Not tainted
[12772.477948] ------------------------------------------------------
[12772.478328] kswapd0/51 is trying to acquire lock:
[12772.478601] ffff9d305617e390 (btrfs_trans_num_writers){++++}-{0:0}, at: join_transaction+0x1d0/0x580
[12772.479186] 
               but task is already holding lock:
[12772.479525] ffff9d304252f600 (sb_internal#2){++++}-{0:0}, at: btrfs_commit_inode_delayed_inode+0x5f/0x120
[12772.480232] 
               which lock already depends on the new lock.

[12772.480861] 
               the existing dependency chain (in reverse order) is:
[12772.481417] 
               -> #3 (sb_internal#2){++++}-{0:0}:
[12772.481885]        start_transaction+0x493/0xad0
[12772.482234]        btrfs_commit_inode_delayed_inode+0x5f/0x120
[12772.482686]        btrfs_evict_inode+0x273/0x3c0
[12772.483054]        evict+0xcc/0x1d0
[12772.483337]        inode_lru_isolate+0x14d/0x1e0
[12772.483692]        __list_lru_walk_one+0xbe/0x1c0
[12772.484206]        list_lru_walk_one+0x58/0x80
[12772.484686]        prune_icache_sb+0x39/0x60
[12772.485161]        super_cache_scan+0x167/0x1f0
[12772.485652]        do_shrink_slab+0x163/0x340
[12772.486082]        shrink_slab+0x1d7/0x2a0
[12772.486513]        shrink_node+0x2eb/0x7b0
[12772.486956]        balance_pgdat+0x344/0x780
[12772.487420]        kswapd+0x205/0x410
[12772.487817]        kthread+0xff/0x130
[12772.488209]        ret_from_fork+0x2d/0x50
[12772.488651]        ret_from_fork_asm+0x1b/0x30
[12772.489124] 
               -> #2 (fs_reclaim){+.+.}-{0:0}:
[12772.489741]        fs_reclaim_acquire+0xa2/0xe0
[12772.490254]        kmem_cache_alloc_lru+0x4e/0x600
[12772.490776]        btrfs_alloc_inode+0x2d/0x250
[12772.491264]        alloc_inode+0x1a/0xc0
[12772.491693]        iget5_locked+0xba/0x110
[12772.492106]        btrfs_iget+0x43/0xe0
[12772.492530]        create_reloc_inode+0x1a0/0x360
[12772.492974]        btrfs_relocate_block_group+0x1d2/0x3d0
[12772.493544]        btrfs_relocate_chunk+0x4c/0x1b0
[12772.494076]        btrfs_balance+0x8e7/0x11d0
[12772.494559]        btrfs_ioctl+0x1c25/0x2860
[12772.495021]        __x64_sys_ioctl+0x8b/0xc0
[12772.495504]        do_syscall_64+0x38/0x90
[12772.495971]        entry_SYSCALL_64_after_hwframe+0x6e/0xd8
[12772.496568] 
               -> #1 (btrfs_trans_num_extwriters){++++}-{0:0}:
[12772.497293]        join_transaction+0xaf/0x580
[12772.497748]        start_transaction+0x1a0/0xad0
[12772.498241]        btrfs_uuid_scan_kthread+0x2bc/0x3d0
[12772.498803]        kthread+0xff/0x130
[12772.499176]        ret_from_fork+0x2d/0x50
[12772.499623]        ret_from_fork_asm+0x1b/0x30
[12772.500097] 
               -> #0 (btrfs_trans_num_writers){++++}-{0:0}:
[12772.500788]        __lock_acquire+0x1415/0x2190
[12772.501263]        lock_acquire+0xc7/0x2b0
[12772.501696]        join_transaction+0x1e4/0x580
[12772.502186]        start_transaction+0x1a0/0xad0
[12772.502696]        btrfs_commit_inode_delayed_inode+0x5f/0x120
[12772.503306]        btrfs_evict_inode+0x273/0x3c0
[12772.503808]        evict+0xcc/0x1d0
[12772.504200]        inode_lru_isolate+0x14d/0x1e0
[12772.504706]        __list_lru_walk_one+0xbe/0x1c0
[12772.505211]        list_lru_walk_one+0x58/0x80
[12772.505702]        prune_icache_sb+0x39/0x60
[12772.506136]        super_cache_scan+0x167/0x1f0
[12772.506605]        do_shrink_slab+0x163/0x340
[12772.507101]        shrink_slab+0x1d7/0x2a0
[12772.507552]        shrink_node+0x2eb/0x7b0
[12772.507994]        balance_pgdat+0x344/0x780
[12772.508450]        kswapd+0x205/0x410
[12772.508848]        kthread+0xff/0x130
[12772.509255]        ret_from_fork+0x2d/0x50
[12772.509704]        ret_from_fork_asm+0x1b/0x30
[12772.510173] 
               other info that might help us debug this:

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

[12772.512147]  Possible unsafe locking scenario:

[12772.512747]        CPU0                    CPU1
[12772.513208]        ----                    ----
[12772.513716]   rlock(sb_internal#2);
[12772.514130]                                lock(fs_reclaim);
[12772.514729]                                lock(sb_internal#2);
[12772.515327]   rlock(btrfs_trans_num_writers);
[12772.515806] 
                *** DEADLOCK ***

[12772.516439] 4 locks held by kswapd0/51:
[12772.516823]  #0: ffffffffa2e62ea0 (fs_reclaim){+.+.}-{0:0}, at: balance_pgdat+0x3eb/0x780
[12772.517587]  #1: ffffffffa2e513b0 (shrinker_rwsem){++++}-{3:3}, at: shrink_slab+0x113/0x2a0
[12772.518464]  #2: ffff9d304252f0e0 (&type->s_umount_key#45){++++}-{3:3}, at: super_cache_scan+0x38/0x1f0
[12772.519429]  #3: ffff9d304252f600 (sb_internal#2){++++}-{0:0}, at: btrfs_commit_inode_delayed_inode+0x5f/0x120
[12772.520404] 
               stack backtrace:
[12772.520783] CPU: 1 PID: 51 Comm: kswapd0 Not tainted 6.6.0-rc7+ #1339
[12772.521237] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[12772.521968] Call Trace:
[12772.522288]  
[12772.522537]  dump_stack_lvl+0x58/0x90
[12772.522885]  check_noncircular+0x101/0x110
[12772.523267]  __lock_acquire+0x1415/0x2190
[12772.523589]  lock_acquire+0xc7/0x2b0
[12772.523916]  ? join_transaction+0x1d0/0x580
[12772.524342]  ? lock_release+0x134/0x270
[12772.524783]  ? join_transaction+0x1d0/0x580
[12772.525166]  ? join_transaction+0x3d/0x580
[12772.525555]  join_transaction+0x1e4/0x580
[12772.525923]  ? join_transaction+0x1d0/0x580
[12772.526316]  start_transaction+0x1a0/0xad0
[12772.526725]  btrfs_commit_inode_delayed_inode+0x5f/0x120
[12772.527202]  btrfs_evict_inode+0x273/0x3c0
[12772.527558]  ? lock_release+0x134/0x270
[12772.527942]  ? __pfx_wake_bit_function+0x10/0x10
[12772.528462]  evict+0xcc/0x1d0
[12772.528763]  inode_lru_isolate+0x14d/0x1e0
[12772.529124]  __list_lru_walk_one+0xbe/0x1c0
[12772.529535]  ? __pfx_inode_lru_isolate+0x10/0x10
[12772.529948]  ? __pfx_inode_lru_isolate+0x10/0x10
[12772.530399]  list_lru_walk_one+0x58/0x80
[12772.530754]  prune_icache_sb+0x39/0x60
[12772.531029]  super_cache_scan+0x167/0x1f0
[12772.531412]  do_shrink_slab+0x163/0x340
[12772.531779]  ? lock_is_held_type+0xe2/0x140
[12772.532187]  shrink_slab+0x1d7/0x2a0
[12772.532555]  shrink_node+0x2eb/0x7b0
[12772.532883]  balance_pgdat+0x344/0x780
[12772.533260]  kswapd+0x205/0x410
[12772.533493]  ? __pfx_autoremove_wake_function+0x10/0x10
[12772.533973]  ? __pfx_kswapd+0x10/0x10
[12772.534360]  kthread+0xff/0x130
[12772.534665]  ? __pfx_kthread+0x10/0x10
[12772.534948]  ret_from_fork+0x2d/0x50
[12772.535304]  ? __pfx_kthread+0x10/0x10
[12772.535672]  ret_from_fork_asm+0x1b/0x30
[12772.536048]  
[13386.220956] BTRFS: device fsid 3e421dd5-32db-4871-bacc-f28d033ddb56 devid 1 transid 94 /dev/mapper/vg0-lv9 scanned by mount (1614153)
[13386.222060] BTRFS info (device dm-9): using crc32c (crc32c-intel) checksum algorithm
[13386.222418] BTRFS info (device dm-9): turning on async discard
[13386.222675] BTRFS info (device dm-9): disk space caching is enabled