[12313.727988] run fstests generic/251 at 2023-10-22 00:19:12
[12314.185703] BTRFS: device fsid ec3e1159-917e-46d6-82d2-6d36aac552b0 devid 1 transid 2991747 /dev/mapper/vg0-lv0 scanned by mount (1612074)
[12314.186669] BTRFS info (device dm-0): using crc32c (crc32c-intel) checksum algorithm
[12314.186676] BTRFS info (device dm-0): using free space tree
[12314.190638] BTRFS info (device dm-0): auto enabling async discard
[12314.477755] BTRFS: device fsid da1fc6ba-e5af-4a6f-b776-8633dabf8319 devid 1 transid 6 /dev/mapper/vg0-lv9 scanned by mount (1612133)
[12314.479049] BTRFS info (device dm-9): using crc32c (crc32c-intel) checksum algorithm
[12314.479057] BTRFS info (device dm-9): turning on async discard
[12314.479060] BTRFS info (device dm-9): disk space caching is enabled
[12314.484947] BTRFS info (device dm-9): checking UUID tree

[13200.726811] ======================================================
[13200.727078] WARNING: possible circular locking dependency detected
[13200.727336] 6.6.0-rc5+ #1335 Not tainted
[13200.727506] ------------------------------------------------------
[13200.727762] kswapd0/50 is trying to acquire lock:
[13200.727967] ffff9083ac09e390 (btrfs_trans_num_writers){++++}-{0:0}, at: join_transaction+0x1d0/0x580
[13200.728403] 
               but task is already holding lock:
[13200.728646] ffff9083af436600 (sb_internal#2){++++}-{0:0}, at: btrfs_commit_inode_delayed_inode+0x5f/0x120
[13200.729501] 
               which lock already depends on the new lock.

[13200.730259] 
               the existing dependency chain (in reverse order) is:
[13200.730960] 
               -> #3 (sb_internal#2){++++}-{0:0}:
[13200.731519]        start_transaction+0x493/0xad0
[13200.731961]        btrfs_commit_inode_delayed_inode+0x5f/0x120
[13200.732431]        btrfs_evict_inode+0x273/0x3c0
[13200.732885]        evict+0xcc/0x1d0
[13200.733263]        inode_lru_isolate+0x14d/0x1e0
[13200.733730]        __list_lru_walk_one+0xbe/0x1c0
[13200.734249]        list_lru_walk_one+0x58/0x80
[13200.734735]        prune_icache_sb+0x39/0x60
[13200.735142]        super_cache_scan+0x167/0x1f0
[13200.735582]        do_shrink_slab+0x163/0x340
[13200.736057]        shrink_slab+0x1d7/0x2a0
[13200.736316]        shrink_node+0x2eb/0x7b0
[13200.736572]        balance_pgdat+0x344/0x780
[13200.736867]        kswapd+0x205/0x410
[13200.737265]        kthread+0xff/0x130
[13200.737625]        ret_from_fork+0x2d/0x50
[13200.738000]        ret_from_fork_asm+0x1b/0x30
[13200.738423] 
               -> #2 (fs_reclaim){+.+.}-{0:0}:
[13200.738954]        fs_reclaim_acquire+0xa2/0xe0
[13200.739404]        kmem_cache_alloc_lru+0x4e/0x600
[13200.739865]        btrfs_alloc_inode+0x2d/0x250
[13200.740280]        alloc_inode+0x1a/0xc0
[13200.740659]        iget5_locked+0xba/0x110
[13200.741055]        btrfs_iget+0x43/0xe0
[13200.741432]        create_reloc_inode+0x1a0/0x360
[13200.741890]        btrfs_relocate_block_group+0x1d2/0x3d0
[13200.742410]        btrfs_relocate_chunk+0x4c/0x1b0
[13200.742876]        btrfs_balance+0x8e7/0x11d0
[13200.743358]        btrfs_ioctl+0x1c25/0x2860
[13200.743759]        __x64_sys_ioctl+0x8b/0xc0
[13200.743950]        do_syscall_64+0x38/0x90
[13200.744180]        entry_SYSCALL_64_after_hwframe+0x6e/0xd8
[13200.744414] 
               -> #1 (btrfs_trans_num_extwriters){++++}-{0:0}:
[13200.744736]        join_transaction+0xaf/0x580
[13200.745158]        start_transaction+0x1a0/0xad0
[13200.745595]        btrfs_uuid_scan_kthread+0x2bc/0x3d0
[13200.746079]        kthread+0xff/0x130
[13200.746472]        ret_from_fork+0x2d/0x50
[13200.746864]        ret_from_fork_asm+0x1b/0x30
[13200.747363] 
               -> #0 (btrfs_trans_num_writers){++++}-{0:0}:
[13200.747646]        __lock_acquire+0x1415/0x2190
[13200.747842]        lock_acquire+0xc7/0x2b0
[13200.748022]        join_transaction+0x1e4/0x580
[13200.748218]        start_transaction+0x1a0/0xad0
[13200.748461]        btrfs_commit_inode_delayed_inode+0x5f/0x120
[13200.748706]        btrfs_evict_inode+0x273/0x3c0
[13200.748990]        evict+0xcc/0x1d0
[13200.749333]        inode_lru_isolate+0x14d/0x1e0
[13200.749794]        __list_lru_walk_one+0xbe/0x1c0
[13200.750219]        list_lru_walk_one+0x58/0x80
[13200.750645]        prune_icache_sb+0x39/0x60
[13200.751064]        super_cache_scan+0x167/0x1f0
[13200.751421]        do_shrink_slab+0x163/0x340
[13200.751849]        shrink_slab+0x1d7/0x2a0
[13200.752265]        shrink_node+0x2eb/0x7b0
[13200.752596]        balance_pgdat+0x344/0x780
[13200.752962]        kswapd+0x205/0x410
[13200.753285]        kthread+0xff/0x130
[13200.753653]        ret_from_fork+0x2d/0x50
[13200.754072]        ret_from_fork_asm+0x1b/0x30
[13200.754389] 
               other info that might help us debug this:

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

[13200.755684]  Possible unsafe locking scenario:

[13200.756233]        CPU0                    CPU1
[13200.756694]        ----                    ----
[13200.757125]   rlock(sb_internal#2);
[13200.757473]                                lock(fs_reclaim);
[13200.757986]                                lock(sb_internal#2);
[13200.758512]   rlock(btrfs_trans_num_writers);
[13200.758701] 
                *** DEADLOCK ***

[13200.759167] 4 locks held by kswapd0/50:
[13200.759566]  #0: ffffffff9ee62ea0 (fs_reclaim){+.+.}-{0:0}, at: balance_pgdat+0x3eb/0x780
[13200.760278]  #1: ffffffff9ee513b0 (shrinker_rwsem){++++}-{3:3}, at: shrink_slab+0x113/0x2a0
[13200.761050]  #2: ffff9083af4360e0 (&type->s_umount_key#45){++++}-{3:3}, at: super_cache_scan+0x38/0x1f0
[13200.761886]  #3: ffff9083af436600 (sb_internal#2){++++}-{0:0}, at: btrfs_commit_inode_delayed_inode+0x5f/0x120
[13200.762810] 
               stack backtrace:
[13200.763244] CPU: 1 PID: 50 Comm: kswapd0 Not tainted 6.6.0-rc5+ #1335
[13200.763829] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[13200.764381] Call Trace:
[13200.764493]  
[13200.764592]  dump_stack_lvl+0x58/0x90
[13200.764754]  check_noncircular+0x101/0x110
[13200.765017]  __lock_acquire+0x1415/0x2190
[13200.765448]  lock_acquire+0xc7/0x2b0
[13200.765821]  ? join_transaction+0x1d0/0x580
[13200.766273]  ? lock_release+0x134/0x270
[13200.766633]  ? join_transaction+0x1d0/0x580
[13200.767031]  ? join_transaction+0x3d/0x580
[13200.767410]  join_transaction+0x1e4/0x580
[13200.767806]  ? join_transaction+0x1d0/0x580
[13200.768209]  start_transaction+0x1a0/0xad0
[13200.768603]  btrfs_commit_inode_delayed_inode+0x5f/0x120
[13200.769050]  btrfs_evict_inode+0x273/0x3c0
[13200.769331]  ? lock_release+0x134/0x270
[13200.769561]  ? __pfx_wake_bit_function+0x10/0x10
[13200.769794]  evict+0xcc/0x1d0
[13200.769958]  inode_lru_isolate+0x14d/0x1e0
[13200.770237]  __list_lru_walk_one+0xbe/0x1c0
[13200.770523]  ? __pfx_inode_lru_isolate+0x10/0x10
[13200.770933]  ? __pfx_inode_lru_isolate+0x10/0x10
[13200.771345]  list_lru_walk_one+0x58/0x80
[13200.771704]  prune_icache_sb+0x39/0x60
[13200.772106]  super_cache_scan+0x167/0x1f0
[13200.772390]  do_shrink_slab+0x163/0x340
[13200.772747]  ? lock_is_held_type+0xe2/0x140
[13200.773165]  shrink_slab+0x1d7/0x2a0
[13200.773481]  shrink_node+0x2eb/0x7b0
[13200.773688]  balance_pgdat+0x344/0x780
[13200.773855]  kswapd+0x205/0x410
[13200.774000]  ? __pfx_autoremove_wake_function+0x10/0x10
[13200.774222]  ? __pfx_kswapd+0x10/0x10
[13200.774382]  kthread+0xff/0x130
[13200.774521]  ? __pfx_kthread+0x10/0x10
[13200.774684]  ret_from_fork+0x2d/0x50
[13200.774937]  ? __pfx_kthread+0x10/0x10
[13200.775102]  ret_from_fork_asm+0x1b/0x30
[13200.775378]  
[13446.306141] BTRFS: device fsid da1fc6ba-e5af-4a6f-b776-8633dabf8319 devid 1 transid 131 /dev/mapper/vg0-lv9 scanned by mount (1621333)
[13446.307628] BTRFS info (device dm-9): using crc32c (crc32c-intel) checksum algorithm
[13446.307959] BTRFS info (device dm-9): turning on async discard
[13446.308180] BTRFS info (device dm-9): disk space caching is enabled
[13446.435555] BTRFS warning (device dm-9): block group 9157214208 has wrong amount of free space
[13446.435956] BTRFS warning (device dm-9): failed to load free space cache for block group 9157214208, rebuilding it now
[13446.437034] BTRFS warning (device dm-9): block group 11573133312 has wrong amount of free space
[13446.437475] BTRFS warning (device dm-9): failed to load free space cache for block group 11573133312, rebuilding it now