[39716.129664] run fstests generic/251 at 2023-09-22 07:58:58
[39716.697705] BTRFS: device fsid 442e5b9d-ccad-458f-8dc7-acd1904d321e devid 1 transid 1578294 /dev/mapper/vg0-lv0 scanned by mount (643128)
[39716.698397] BTRFS info (device dm-0): using crc32c (crc32c-intel) checksum algorithm
[39716.698404] BTRFS info (device dm-0): using free space tree
[39716.705191] BTRFS info (device dm-0): auto enabling async discard
[39716.974798] BTRFS: device fsid fe65b0af-7b1c-4f4b-9de0-d3e79efc81a5 devid 1 transid 6 /dev/mapper/vg0-lv7 scanned by mount (643195)
[39716.976217] BTRFS info (device dm-7): using crc32c (crc32c-intel) checksum algorithm
[39716.976226] BTRFS info (device dm-7): use zlib compression, level 3
[39716.976230] BTRFS info (device dm-7): using free space tree
[39716.979827] BTRFS info (device dm-7): auto enabling async discard
[39716.979988] BTRFS info (device dm-7): checking UUID tree

[40510.730588] ======================================================
[40510.730784] WARNING: possible circular locking dependency detected
[40510.730998] 6.6.0-rc2+ #1309 Not tainted
[40510.731149] ------------------------------------------------------
[40510.731333] kswapd0/50 is trying to acquire lock:
[40510.731494] ffff933b4507e398 (btrfs_trans_num_writers){++++}-{0:0}, at: join_transaction+0x1d0/0x580
[40510.732391] 
               but task is already holding lock:
[40510.732617] ffff933b443c0600 (sb_internal){++++}-{0:0}, at: btrfs_commit_inode_delayed_inode+0x5f/0x120
[40510.733128] 
               which lock already depends on the new lock.

[40510.733432] 
               the existing dependency chain (in reverse order) is:
[40510.733686] 
               -> #3 (sb_internal){++++}-{0:0}:
[40510.733916]        start_transaction+0x493/0xad0
[40510.734086]        btrfs_commit_inode_delayed_inode+0x5f/0x120
[40510.734277]        btrfs_evict_inode+0x273/0x3c0
[40510.734451]        evict+0xcc/0x1d0
[40510.734913]        inode_lru_isolate+0x14d/0x1e0
[40510.735084]        __list_lru_walk_one+0xbe/0x1c0
[40510.735466]        list_lru_walk_one+0x58/0x80
[40510.735627]        prune_icache_sb+0x39/0x60
[40510.735788]        super_cache_scan+0x167/0x1f0
[40510.736079]        do_shrink_slab+0x163/0x340
[40510.736437]        shrink_slab+0x1d7/0x2a0
[40510.736599]        shrink_node+0x2eb/0x7b0
[40510.736935]        balance_pgdat+0x344/0x780
[40510.737105]        kswapd+0x205/0x410
[40510.737261]        kthread+0xff/0x130
[40510.737414]        ret_from_fork+0x2d/0x50
[40510.737573]        ret_from_fork_asm+0x1b/0x30
[40510.737746] 
               -> #2 (fs_reclaim){+.+.}-{0:0}:
[40510.737983]        fs_reclaim_acquire+0xa2/0xe0
[40510.738629]        kmem_cache_alloc_lru+0x4e/0x600
[40510.738949]        btrfs_alloc_inode+0x2d/0x250
[40510.739117]        alloc_inode+0x1a/0xc0
[40510.739278]        iget5_locked+0xba/0x110
[40510.739442]        btrfs_iget+0x43/0xe0
[40510.739603]        create_reloc_inode+0x1a0/0x370
[40510.739777]        btrfs_relocate_block_group+0x1b7/0x410
[40510.739965]        btrfs_relocate_chunk+0x4c/0x1b0
[40510.740342]        btrfs_balance+0x8e7/0x11d0
[40510.740504]        btrfs_ioctl+0x1bb4/0x28b0
[40510.740824]        __x64_sys_ioctl+0x8b/0xc0
[40510.741131]        do_syscall_64+0x38/0x90
[40510.741461]        entry_SYSCALL_64_after_hwframe+0x6e/0xd8
[40510.741814] 
               -> #1 (btrfs_trans_num_extwriters){++++}-{0:0}:
[40510.742064]        join_transaction+0xaf/0x580
[40510.742232]        start_transaction+0x1a0/0xad0
[40510.742401]        btrfs_dirty_inode+0x40/0xd0
[40510.742562]        touch_atime+0x133/0x220
[40510.742721]        filemap_read+0x2f0/0x300
[40510.743134]        __kernel_read+0xef/0x2a0
[40510.744604]        bprm_execve+0x2b0/0x870
[40510.744767]        do_execveat_common+0x1b5/0x260
[40510.744938]        __x64_sys_execve+0x39/0x50
[40510.745126]        do_syscall_64+0x38/0x90
[40510.745290]        entry_SYSCALL_64_after_hwframe+0x6e/0xd8
[40510.745479] 
               -> #0 (btrfs_trans_num_writers){++++}-{0:0}:
[40510.745731]        __lock_acquire+0x1415/0x2190
[40510.745910]        lock_acquire+0xc7/0x2b0
[40510.746072]        join_transaction+0x1e4/0x580
[40510.746243]        start_transaction+0x1a0/0xad0
[40510.746418]        btrfs_commit_inode_delayed_inode+0x5f/0x120
[40510.746617]        btrfs_evict_inode+0x273/0x3c0
[40510.746788]        evict+0xcc/0x1d0
[40510.746947]        inode_lru_isolate+0x14d/0x1e0
[40510.747123]        __list_lru_walk_one+0xbe/0x1c0
[40510.747299]        list_lru_walk_one+0x58/0x80
[40510.747467]        prune_icache_sb+0x39/0x60
[40510.747632]        super_cache_scan+0x167/0x1f0
[40510.747811]        do_shrink_slab+0x163/0x340
[40510.747983]        shrink_slab+0x1d7/0x2a0
[40510.748146]        shrink_node+0x2eb/0x7b0
[40510.748307]        balance_pgdat+0x344/0x780
[40510.748475]        kswapd+0x205/0x410
[40510.748633]        kthread+0xff/0x130
[40510.748792]        ret_from_fork+0x2d/0x50
[40510.748958]        ret_from_fork_asm+0x1b/0x30
[40510.749132] 
               other info that might help us debug this:

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

[40510.749816]  Possible unsafe locking scenario:

[40510.750049]        CPU0                    CPU1
[40510.750223]        ----                    ----
[40510.750397]   rlock(sb_internal);
[40510.750544]                                lock(fs_reclaim);
[40510.750735]                                lock(sb_internal);
[40510.750934]   rlock(btrfs_trans_num_writers);
[40510.751105] 
                *** DEADLOCK ***

[40510.751379] 4 locks held by kswapd0/50:
[40510.751536]  #0: ffffffff94e62e40 (fs_reclaim){+.+.}-{0:0}, at: balance_pgdat+0x3eb/0x780
[40510.751985]  #1: ffffffff94e51350 (shrinker_rwsem){++++}-{3:3}, at: shrink_slab+0x113/0x2a0
[40510.752278]  #2: ffff933b443c00e0 (&type->s_umount_key#35){++++}-{3:3}, at: super_cache_scan+0x38/0x1f0
[40510.752584]  #3: ffff933b443c0600 (sb_internal){++++}-{0:0}, at: btrfs_commit_inode_delayed_inode+0x5f/0x120
[40510.752904] 
               stack backtrace:
[40510.753333] CPU: 0 PID: 50 Comm: kswapd0 Not tainted 6.6.0-rc2+ #1309
[40510.753544] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[40510.753832] Call Trace:
[40510.753966]  
[40510.754091]  dump_stack_lvl+0x58/0x90
[40510.754573]  check_noncircular+0x101/0x110
[40510.754739]  ? mark_held_locks+0x49/0x80
[40510.754904]  __lock_acquire+0x1415/0x2190
[40510.755069]  lock_acquire+0xc7/0x2b0
[40510.755225]  ? join_transaction+0x1d0/0x580
[40510.755394]  ? lock_release+0x134/0x270
[40510.755549]  ? join_transaction+0x1d0/0x580
[40510.755716]  ? join_transaction+0x3d/0x580
[40510.755887]  join_transaction+0x1e4/0x580
[40510.756048]  ? join_transaction+0x1d0/0x580
[40510.756210]  start_transaction+0x1a0/0xad0
[40510.756375]  btrfs_commit_inode_delayed_inode+0x5f/0x120
[40510.756565]  btrfs_evict_inode+0x273/0x3c0
[40510.756728]  ? lock_release+0x134/0x270
[40510.756886]  ? __pfx_wake_bit_function+0x10/0x10
[40510.757104]  evict+0xcc/0x1d0
[40510.757244]  inode_lru_isolate+0x14d/0x1e0
[40510.757401]  __list_lru_walk_one+0xbe/0x1c0
[40510.757563]  ? __pfx_inode_lru_isolate+0x10/0x10
[40510.757733]  ? __pfx_inode_lru_isolate+0x10/0x10
[40510.757908]  list_lru_walk_one+0x58/0x80
[40510.758061]  prune_icache_sb+0x39/0x60
[40510.758213]  super_cache_scan+0x167/0x1f0
[40510.758372]  do_shrink_slab+0x163/0x340
[40510.758526]  shrink_slab+0x1d7/0x2a0
[40510.758676]  shrink_node+0x2eb/0x7b0
[40510.758834]  balance_pgdat+0x344/0x780
[40510.758991]  kswapd+0x205/0x410
[40510.759132]  ? __pfx_autoremove_wake_function+0x10/0x10
[40510.759326]  ? __pfx_kswapd+0x10/0x10
[40510.759474]  kthread+0xff/0x130
[40510.759612]  ? __pfx_kthread+0x10/0x10
[40510.759760]  ret_from_fork+0x2d/0x50
[40510.759911]  ? __pfx_kthread+0x10/0x10
[40510.760063]  ret_from_fork_asm+0x1b/0x30
[40510.760216]  
[40841.470973] BTRFS: device fsid fe65b0af-7b1c-4f4b-9de0-d3e79efc81a5 devid 1 transid 76 /dev/mapper/vg0-lv7 scanned by mount (664613)
[40841.472047] BTRFS info (device dm-7): using crc32c (crc32c-intel) checksum algorithm
[40841.472470] BTRFS info (device dm-7): use zlib compression, level 3
[40841.472793] BTRFS info (device dm-7): using free space tree
[40841.475494] BTRFS info (device dm-7): auto enabling async discard