[95344.998795] run fstests generic/251 at 2023-12-01 23:22:23
[95345.426819] BTRFS: device fsid 442e5b9d-ccad-458f-8dc7-acd1904d321e devid 1 transid 1873258 /dev/mapper/vg0-lv0 scanned by mount (3648675)
[95345.428204] BTRFS info (device dm-0): first mount of filesystem 442e5b9d-ccad-458f-8dc7-acd1904d321e
[95345.428219] BTRFS info (device dm-0): using crc32c (crc32c-intel) checksum algorithm
[95345.428224] BTRFS info (device dm-0): using free-space-tree
[95345.643369] BTRFS: device fsid acdb704e-8e52-45e2-a02d-0b37b1dcc566 devid 1 transid 6 /dev/mapper/vg0-lv7 scanned by mount (3648734)
[95345.644548] BTRFS info (device dm-7): first mount of filesystem acdb704e-8e52-45e2-a02d-0b37b1dcc566
[95345.644563] BTRFS info (device dm-7): using crc32c (crc32c-intel) checksum algorithm
[95345.644568] BTRFS info (device dm-7): using free-space-tree
[95345.661569] BTRFS info (device dm-7): checking UUID tree

[95523.979120] ======================================================
[95523.979303] WARNING: possible circular locking dependency detected
[95523.979479] 6.7.0-rc3+ #1375 Not tainted
[95523.979621] ------------------------------------------------------
[95523.979798] kswapd0/50 is trying to acquire lock:
[95523.979954] ffff9e808e1ea378 (btrfs_trans_num_writers){++++}-{0:0}, at: join_transaction+0x1d0/0x580
[95523.980237] 
               but task is already holding lock:
[95523.980441] ffff9e80a7ec3608 (sb_internal){++++}-{0:0}, at: btrfs_commit_inode_delayed_inode+0x5f/0x120
[95523.980708] 
               which lock already depends on the new lock.

[95523.981126] 
               the existing dependency chain (in reverse order) is:
[95523.981371] 
               -> #3 (sb_internal){++++}-{0:0}:
[95523.981579]        start_transaction+0x493/0xad0
[95523.981735]        btrfs_commit_inode_delayed_inode+0x5f/0x120
[95523.982542]        btrfs_evict_inode+0x273/0x3c0
[95523.982697]        evict+0xcc/0x1d0
[95523.982836]        inode_lru_isolate+0x14d/0x1e0
[95523.982991]        __list_lru_walk_one+0xbe/0x1c0
[95523.983144]        list_lru_walk_one+0x58/0x80
[95523.983306]        prune_icache_sb+0x39/0x60
[95523.983455]        super_cache_scan+0x151/0x1d0
[95523.983608]        do_shrink_slab+0x164/0x670
[95523.983754]        shrink_slab+0x54a/0x8b0
[95523.983898]        shrink_node+0x2eb/0x7b0
[95523.984044]        balance_pgdat+0x359/0x790
[95523.984196]        kswapd+0x205/0x410
[95523.984333]        kthread+0xff/0x130
[95523.984476]        ret_from_fork+0x2d/0x50
[95523.984628]        ret_from_fork_asm+0x1b/0x30
[95523.984844] 
               -> #2 (fs_reclaim){+.+.}-{0:0}:
[95523.985061]        fs_reclaim_acquire+0xa2/0xe0
[95523.985220]        kmem_cache_alloc_lru+0x4e/0x720
[95523.985375]        btrfs_alloc_inode+0x2d/0x280
[95523.985526]        alloc_inode+0x1a/0xc0
[95523.985668]        iget5_locked+0xba/0x110
[95523.985813]        btrfs_iget+0x43/0xe0
[95523.985951]        create_reloc_inode+0x1a0/0x360
[95523.986104]        btrfs_relocate_block_group+0x1d2/0x3d0
[95523.986274]        btrfs_relocate_chunk+0x4c/0x1b0
[95523.986432]        btrfs_balance+0x8e7/0x11d0
[95523.986579]        btrfs_ioctl+0x1c06/0x2840
[95523.986726]        __x64_sys_ioctl+0x8b/0xc0
[95523.986874]        do_syscall_64+0x3e/0xf0
[95523.987029]        entry_SYSCALL_64_after_hwframe+0x6e/0x76
[95523.987214] 
               -> #1 (btrfs_trans_num_extwriters){++++}-{0:0}:
[95523.987502]        join_transaction+0xaf/0x580
[95523.987655]        start_transaction+0x1a0/0xad0
[95523.987808]        btrfs_dirty_inode+0x40/0xd0
[95523.987957]        touch_atime+0x133/0x220
[95523.988103]        step_into+0x2bf/0x6e0
[95523.988252]        path_openat+0x139/0xad0
[95523.988395]        do_filp_open+0x96/0x120
[95523.988536]        do_open_execat+0x55/0xf0
[95523.988684]        bprm_execve+0x18a/0x880
[95523.988829]        do_execveat_common+0x1b5/0x260
[95523.988981]        __x64_sys_execve+0x39/0x50
[95523.989128]        do_syscall_64+0x3e/0xf0
[95523.989277]        entry_SYSCALL_64_after_hwframe+0x6e/0x76
[95523.989449] 
               -> #0 (btrfs_trans_num_writers){++++}-{0:0}:
[95523.989671]        __lock_acquire+0x13ef/0x21a0
[95523.989888]        lock_acquire+0xc7/0x2b0
[95523.990044]        join_transaction+0x1e4/0x580
[95523.990198]        start_transaction+0x1a0/0xad0
[95523.990350]        btrfs_commit_inode_delayed_inode+0x5f/0x120
[95523.990524]        btrfs_evict_inode+0x273/0x3c0
[95523.990677]        evict+0xcc/0x1d0
[95523.990809]        inode_lru_isolate+0x14d/0x1e0
[95523.991007]        __list_lru_walk_one+0xbe/0x1c0
[95523.991193]        list_lru_walk_one+0x58/0x80
[95523.991346]        prune_icache_sb+0x39/0x60
[95523.991493]        super_cache_scan+0x151/0x1d0
[95523.991642]        do_shrink_slab+0x164/0x670
[95523.991794]        shrink_slab+0x54a/0x8b0
[95523.991939]        shrink_node+0x2eb/0x7b0
[95523.992081]        balance_pgdat+0x359/0x790
[95523.992231]        kswapd+0x205/0x410
[95523.992372]        kthread+0xff/0x130
[95523.992512]        ret_from_fork+0x2d/0x50
[95523.992685]        ret_from_fork_asm+0x1b/0x30
[95523.992835] 
               other info that might help us debug this:

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

[95523.993428]  Possible unsafe locking scenario:

[95523.993713]        CPU0                    CPU1
[95523.993862]        ----                    ----
[95523.994014]   rlock(sb_internal);
[95523.994146]                                lock(fs_reclaim);
[95523.994318]                                lock(sb_internal);
[95523.994487]   rlock(btrfs_trans_num_writers);
[95523.994675] 
                *** DEADLOCK ***

[95523.994976] 3 locks held by kswapd0/50:
[95523.995146]  #0: ffffffff8fe64920 (fs_reclaim){+.+.}-{0:0}, at: balance_pgdat+0x400/0x790
[95523.995424]  #1: ffff9e80a7ec30e0 (&type->s_umount_key#35){++++}-{3:3}, at: super_cache_scan+0x33/0x1d0
[95523.995739]  #2: ffff9e80a7ec3608 (sb_internal){++++}-{0:0}, at: btrfs_commit_inode_delayed_inode+0x5f/0x120
[95523.996063] 
               stack backtrace:
[95523.996343] CPU: 1 PID: 50 Comm: kswapd0 Not tainted 6.7.0-rc3+ #1375
[95523.996546] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[95523.996844] Call Trace:
[95523.996996]  
[95523.997139]  dump_stack_lvl+0x58/0x90
[95523.997316]  check_noncircular+0x101/0x110
[95523.997498]  __lock_acquire+0x13ef/0x21a0
[95523.997663]  lock_acquire+0xc7/0x2b0
[95523.997826]  ? join_transaction+0x1d0/0x580
[95523.998010]  ? lock_release+0x134/0x270
[95523.998185]  ? join_transaction+0x1d0/0x580
[95523.998353]  ? join_transaction+0x3d/0x580
[95523.998540]  join_transaction+0x1e4/0x580
[95523.998793]  ? join_transaction+0x1d0/0x580
[95523.998975]  start_transaction+0x1a0/0xad0
[95523.999144]  btrfs_commit_inode_delayed_inode+0x5f/0x120
[95523.999363]  btrfs_evict_inode+0x273/0x3c0
[95523.999524]  ? lock_release+0x134/0x270
[95523.999697]  ? __pfx_wake_bit_function+0x10/0x10
[95523.999889]  evict+0xcc/0x1d0
[95524.003544]  inode_lru_isolate+0x14d/0x1e0
[95524.003769]  __list_lru_walk_one+0xbe/0x1c0
[95524.003975]  ? __pfx_inode_lru_isolate+0x10/0x10
[95524.004154]  ? __pfx_inode_lru_isolate+0x10/0x10
[95524.004338]  list_lru_walk_one+0x58/0x80
[95524.004510]  prune_icache_sb+0x39/0x60
[95524.004673]  super_cache_scan+0x151/0x1d0
[95524.004852]  do_shrink_slab+0x164/0x670
[95524.005027]  shrink_slab+0x54a/0x8b0
[95524.005192]  ? shrink_slab+0x420/0x8b0
[95524.005378]  ? shrink_slab+0x371/0x8b0
[95524.005549]  shrink_node+0x2eb/0x7b0
[95524.005718]  balance_pgdat+0x359/0x790
[95524.005885]  kswapd+0x205/0x410
[95524.006049]  ? __pfx_autoremove_wake_function+0x10/0x10
[95524.006299]  ? __pfx_kswapd+0x10/0x10
[95524.006484]  kthread+0xff/0x130
[95524.006638]  ? __pfx_kthread+0x10/0x10
[95524.006809]  ret_from_fork+0x2d/0x50
[95524.006978]  ? __pfx_kthread+0x10/0x10
[95524.007140]  ret_from_fork_asm+0x1b/0x30
[95524.007327]  
[95890.573185] BTRFS warning (device dm-7): failed to trim 10 block group(s), last error -512
[95890.605590] BTRFS info (device dm-0): last unmount of filesystem 442e5b9d-ccad-458f-8dc7-acd1904d321e
[95892.074453] BTRFS info (device dm-7): last unmount of filesystem acdb704e-8e52-45e2-a02d-0b37b1dcc566
[95893.823229] BTRFS: device fsid acdb704e-8e52-45e2-a02d-0b37b1dcc566 devid 1 transid 166 /dev/mapper/vg0-lv7 scanned by mount (3659214)
[95893.824308] BTRFS info (device dm-7): first mount of filesystem acdb704e-8e52-45e2-a02d-0b37b1dcc566
[95893.824695] BTRFS info (device dm-7): using crc32c (crc32c-intel) checksum algorithm
[95893.824985] BTRFS info (device dm-7): using free-space-tree
[95893.835204] BTRFS info (device dm-7): last unmount of filesystem acdb704e-8e52-45e2-a02d-0b37b1dcc566