[12735.771020] run fstests generic/251 at 2023-11-28 00:24:44
[12736.206760] BTRFS: device fsid 442e5b9d-ccad-458f-8dc7-acd1904d321e devid 1 transid 1855171 /dev/mapper/vg0-lv0 scanned by mount (1587415)
[12736.207499] BTRFS info (device dm-0): first mount of filesystem 442e5b9d-ccad-458f-8dc7-acd1904d321e
[12736.207514] BTRFS info (device dm-0): using crc32c (crc32c-intel) checksum algorithm
[12736.207518] BTRFS info (device dm-0): using free space tree
[12736.433336] BTRFS: device fsid c939ce78-9080-4e3a-b04f-e3a8cc72b9b5 devid 1 transid 6 /dev/mapper/vg0-lv7 scanned by mount (1587473)
[12736.433780] BTRFS info (device dm-7): first mount of filesystem c939ce78-9080-4e3a-b04f-e3a8cc72b9b5
[12736.433793] BTRFS info (device dm-7): using crc32c (crc32c-intel) checksum algorithm
[12736.433798] BTRFS info (device dm-7): using free space tree
[12736.442662] BTRFS info (device dm-7): checking UUID tree

[13421.040566] ======================================================
[13421.040893] WARNING: possible circular locking dependency detected
[13421.041149] 6.7.0-rc2+ #1372 Not tainted
[13421.041367] ------------------------------------------------------
[13421.041642] kswapd0/50 is trying to acquire lock:
[13421.041877] ffff90b00f152378 (btrfs_trans_num_writers){++++}-{0:0}, at: join_transaction+0x1d0/0x580
[13421.042246] 
               but task is already holding lock:
[13421.042570] ffff90afc4dd3608 (sb_internal){++++}-{0:0}, at: btrfs_commit_inode_delayed_inode+0x5f/0x120
[13421.042969] 
               which lock already depends on the new lock.

[13421.043397] 
               the existing dependency chain (in reverse order) is:
[13421.043734] 
               -> #3 (sb_internal){++++}-{0:0}:
[13421.044026]        start_transaction+0x493/0xad0
[13421.044257]        btrfs_commit_inode_delayed_inode+0x5f/0x120
[13421.044500]        btrfs_evict_inode+0x273/0x3c0
[13421.044719]        evict+0xcc/0x1d0
[13421.044942]        inode_lru_isolate+0x14d/0x1e0
[13421.045172]        __list_lru_walk_one+0xbe/0x1c0
[13421.045425]        list_lru_walk_one+0x58/0x80
[13421.045666]        prune_icache_sb+0x39/0x60
[13421.045906]        super_cache_scan+0x151/0x1d0
[13421.046133]        do_shrink_slab+0x164/0x670
[13421.046376]        shrink_slab+0x54a/0x8b0
[13421.046611]        shrink_node+0x2eb/0x7b0
[13421.046847]        balance_pgdat+0x359/0x790
[13421.047072]        kswapd+0x205/0x410
[13421.047300]        kthread+0xff/0x130
[13421.047534]        ret_from_fork+0x2d/0x50
[13421.047785]        ret_from_fork_asm+0x1b/0x30
[13421.049092] 
               -> #2 (fs_reclaim){+.+.}-{0:0}:
[13421.049428]        fs_reclaim_acquire+0xa2/0xe0
[13421.049665]        kmem_cache_alloc_lru+0x4e/0x720
[13421.049898]        btrfs_alloc_inode+0x2d/0x280
[13421.050141]        alloc_inode+0x1a/0xc0
[13421.050372]        iget5_locked+0xba/0x110
[13421.050606]        btrfs_iget+0x43/0xe0
[13421.050828]        create_reloc_inode+0x1a0/0x360
[13421.051082]        btrfs_relocate_block_group+0x1d2/0x3d0
[13421.051308]        btrfs_relocate_chunk+0x4c/0x1b0
[13421.051562]        btrfs_balance+0x8e7/0x11d0
[13421.051797]        btrfs_ioctl+0x1c06/0x2840
[13421.052021]        __x64_sys_ioctl+0x8b/0xc0
[13421.052237]        do_syscall_64+0x3e/0xf0
[13421.052486]        entry_SYSCALL_64_after_hwframe+0x6e/0x76
[13421.052756] 
               -> #1 (btrfs_trans_num_extwriters){++++}-{0:0}:
[13421.053132]        join_transaction+0xaf/0x580
[13421.053419]        start_transaction+0x1a0/0xad0
[13421.053674]        btrfs_dirty_inode+0x40/0xd0
[13421.053935]        touch_atime+0x133/0x220
[13421.054177]        filemap_read+0x2f0/0x300
[13421.054447]        __kernel_read+0xef/0x280
[13421.054701]        bprm_execve+0x2c7/0x880
[13421.054941]        do_execveat_common+0x1b5/0x260
[13421.055208]        __x64_sys_execve+0x39/0x50
[13421.055458]        do_syscall_64+0x3e/0xf0
[13421.055709]        entry_SYSCALL_64_after_hwframe+0x6e/0x76
[13421.056018] 
               -> #0 (btrfs_trans_num_writers){++++}-{0:0}:
[13421.056387]        __lock_acquire+0x1415/0x2190
[13421.056660]        lock_acquire+0xc7/0x2b0
[13421.056912]        join_transaction+0x1e4/0x580
[13421.057178]        start_transaction+0x1a0/0xad0
[13421.057462]        btrfs_commit_inode_delayed_inode+0x5f/0x120
[13421.057765]        btrfs_evict_inode+0x273/0x3c0
[13421.058029]        evict+0xcc/0x1d0
[13421.058263]        inode_lru_isolate+0x14d/0x1e0
[13421.058577]        __list_lru_walk_one+0xbe/0x1c0
[13421.058839]        list_lru_walk_one+0x58/0x80
[13421.059092]        prune_icache_sb+0x39/0x60
[13421.059331]        super_cache_scan+0x151/0x1d0
[13421.059598]        do_shrink_slab+0x164/0x670
[13421.059860]        shrink_slab+0x54a/0x8b0
[13421.060109]        shrink_node+0x2eb/0x7b0
[13421.060358]        balance_pgdat+0x359/0x790
[13421.060637]        kswapd+0x205/0x410
[13421.060888]        kthread+0xff/0x130
[13421.061125]        ret_from_fork+0x2d/0x50
[13421.061407]        ret_from_fork_asm+0x1b/0x30
[13421.061656] 
               other info that might help us debug this:

[13421.062113] Chain exists of:
                 btrfs_trans_num_writers --> fs_reclaim --> sb_internal

[13421.062684]  Possible unsafe locking scenario:

[13421.063024]        CPU0                    CPU1
[13421.063285]        ----                    ----
[13421.063553]   rlock(sb_internal);
[13421.063781]                                lock(fs_reclaim);
[13421.064077]                                lock(sb_internal);
[13421.064380]   rlock(btrfs_trans_num_writers);
[13421.064644] 
                *** DEADLOCK ***

[13421.065071] 3 locks held by kswapd0/50:
[13421.065294]  #0: ffffffffa9e64920 (fs_reclaim){+.+.}-{0:0}, at: balance_pgdat+0x400/0x790
[13421.065724]  #1: ffff90afc4dd30e0 (&type->s_umount_key#35){++++}-{3:3}, at: super_cache_scan+0x33/0x1d0
[13421.066169]  #2: ffff90afc4dd3608 (sb_internal){++++}-{0:0}, at: btrfs_commit_inode_delayed_inode+0x5f/0x120
[13421.066665] 
               stack backtrace:
[13421.067005] CPU: 1 PID: 50 Comm: kswapd0 Not tainted 6.7.0-rc2+ #1372
[13421.067300] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[13421.067694] Call Trace:
[13421.067857]  
[13421.068012]  dump_stack_lvl+0x58/0x90
[13421.068189]  check_noncircular+0x101/0x110
[13421.068403]  __lock_acquire+0x1415/0x2190
[13421.068605]  lock_acquire+0xc7/0x2b0
[13421.068794]  ? join_transaction+0x1d0/0x580
[13421.068994]  ? lock_release+0x134/0x270
[13421.069202]  ? join_transaction+0x1d0/0x580
[13421.069409]  ? join_transaction+0x3d/0x580
[13421.069620]  join_transaction+0x1e4/0x580
[13421.069827]  ? join_transaction+0x1d0/0x580
[13421.070036]  start_transaction+0x1a0/0xad0
[13421.070242]  btrfs_commit_inode_delayed_inode+0x5f/0x120
[13421.070469]  btrfs_evict_inode+0x273/0x3c0
[13421.070671]  ? lock_release+0x134/0x270
[13421.070872]  ? __pfx_wake_bit_function+0x10/0x10
[13421.071087]  evict+0xcc/0x1d0
[13421.071286]  inode_lru_isolate+0x14d/0x1e0
[13421.071506]  __list_lru_walk_one+0xbe/0x1c0
[13421.071757]  ? __pfx_inode_lru_isolate+0x10/0x10
[13421.071976]  ? __pfx_inode_lru_isolate+0x10/0x10
[13421.072217]  list_lru_walk_one+0x58/0x80
[13421.072442]  prune_icache_sb+0x39/0x60
[13421.072650]  super_cache_scan+0x151/0x1d0
[13421.072869]  do_shrink_slab+0x164/0x670
[13421.073088]  shrink_slab+0x54a/0x8b0
[13421.073303]  ? shrink_slab+0x420/0x8b0
[13421.073495]  ? shrink_slab+0x371/0x8b0
[13421.073689]  shrink_node+0x2eb/0x7b0
[13421.073905]  balance_pgdat+0x359/0x790
[13421.074165]  kswapd+0x205/0x410
[13421.074330]  ? __pfx_autoremove_wake_function+0x10/0x10
[13421.074532]  ? __pfx_kswapd+0x10/0x10
[13421.074700]  kthread+0xff/0x130
[13421.074856]  ? __pfx_kthread+0x10/0x10
[13421.075024]  ret_from_fork+0x2d/0x50
[13421.075193]  ? __pfx_kthread+0x10/0x10
[13421.075370]  ret_from_fork_asm+0x1b/0x30
[13421.075545]  
[13705.228463] BTRFS info (device dm-0): last unmount of filesystem 442e5b9d-ccad-458f-8dc7-acd1904d321e
[13707.710296] BTRFS info (device dm-7): last unmount of filesystem c939ce78-9080-4e3a-b04f-e3a8cc72b9b5
[13709.668956] BTRFS: device fsid c939ce78-9080-4e3a-b04f-e3a8cc72b9b5 devid 1 transid 138 /dev/mapper/vg0-lv7 scanned by mount (1599783)
[13709.670353] BTRFS info (device dm-7): first mount of filesystem c939ce78-9080-4e3a-b04f-e3a8cc72b9b5
[13709.670855] BTRFS info (device dm-7): using crc32c (crc32c-intel) checksum algorithm
[13709.675669] BTRFS info (device dm-7): using free space tree
[13709.688419] BTRFS info (device dm-7): last unmount of filesystem c939ce78-9080-4e3a-b04f-e3a8cc72b9b5