[57515.705463] run fstests generic/251 at 2023-03-31 12:53:49
[57516.256755] BTRFS: device fsid ec3e1159-917e-46d6-82d2-6d36aac552b0 devid 1 transid 1694348 /dev/mapper/vg0-lv0 scanned by mount (3811584)
[57516.258340] BTRFS info (device dm-0): using crc32c (crc32c-intel) checksum algorithm
[57516.258348] BTRFS info (device dm-0): using free space tree
[57516.262679] BTRFS info (device dm-0): auto enabling async discard
[57516.511681] BTRFS: device fsid 5d11cb08-8dee-42e5-beb6-d305b5097da0 devid 1 transid 6 /dev/mapper/vg0-lv9 scanned by mkfs.btrfs (3811633)
[57516.565436] BTRFS info (device dm-9): using crc32c (crc32c-intel) checksum algorithm
[57516.565447] BTRFS info (device dm-9): turning on sync discard
[57516.565451] BTRFS info (device dm-9): enabling free space tree
[57516.565453] BTRFS info (device dm-9): using free space tree
[57516.596744] BTRFS info (device dm-9): creating free space tree
[57516.597803] BTRFS info (device dm-9): setting compat-ro feature flag for FREE_SPACE_TREE (0x1)
[57516.597808] BTRFS info (device dm-9): setting compat-ro feature flag for FREE_SPACE_TREE_VALID (0x2)
[57516.608067] BTRFS info (device dm-9): cleaning free space cache v1
[57516.616271] BTRFS info (device dm-9): checking UUID tree

[57890.718583] ======================================================
[57890.719095] WARNING: possible circular locking dependency detected
[57890.719542] 6.2.0-rc8+ #1131 Not tainted
[57890.719838] ------------------------------------------------------
[57890.720296] kswapd0/46 is trying to acquire lock:
[57890.720769] ffff93dbcbc9b650 (sb_internal#2){++++}-{0:0}, at: btrfs_commit_inode_delayed_inode+0x5f/0x120
[57890.721534] 
               but task is already holding lock:
[57890.721949] ffffffffa3e61c60 (fs_reclaim){+.+.}-{0:0}, at: balance_pgdat+0x4aa/0x7a0
[57890.722458] 
               which lock already depends on the new lock.

[57890.722952] 
               the existing dependency chain (in reverse order) is:
[57890.723382] 
               -> #1 (fs_reclaim){+.+.}-{0:0}:
[57890.723778]        fs_reclaim_acquire+0xa5/0xe0
[57890.724077]        kmem_cache_alloc+0x30/0x360
[57890.724351]        alloc_extent_state+0x1d/0x120
[57890.724643]        __clear_extent_bit+0x2e0/0x530
[57890.725027]        try_release_extent_mapping+0x216/0x280
[57890.725477]        btrfs_release_folio+0x2e/0x90
[57890.725871]        invalidate_inode_pages2_range+0x397/0x470
[57890.726337]        btrfs_cleanup_dirty_bgs+0x9e/0x210
[57890.726753]        btrfs_cleanup_one_transaction+0x22/0x7f0
[57890.727213]        btrfs_commit_transaction.cold+0x1d9/0x37a
[57890.727679]        btrfs_mksubvol+0x365/0x550
[57890.728048]        btrfs_mksnapshot+0x81/0xb0
[57890.728410]        __btrfs_ioctl_snap_create+0x183/0x190
[57890.728843]        btrfs_ioctl_snap_create_v2+0xc6/0x150
[57890.729305]        btrfs_ioctl+0x1614/0x2880
[57890.729669]        __x64_sys_ioctl+0x88/0xc0
[57890.730039]        do_syscall_64+0x38/0x90
[57890.730389]        entry_SYSCALL_64_after_hwframe+0x72/0xdc
[57890.730857] 
               -> #0 (sb_internal#2){++++}-{0:0}:
[57890.731361]        __lock_acquire+0x111c/0x1e20
[57890.731745]        lock_acquire+0xc2/0x2d0
[57890.732101]        start_transaction+0x3f9/0x690
[57890.732493]        btrfs_commit_inode_delayed_inode+0x5f/0x120
[57890.732986]        btrfs_evict_inode+0x2d3/0x410
[57890.733383]        evict+0xcc/0x1d0
[57890.733685]        inode_lru_isolate+0x14d/0x1e0
[57890.734086]        __list_lru_walk_one+0xbe/0x1c0
[57890.734485]        list_lru_walk_one+0x58/0x80
[57890.734861]        prune_icache_sb+0x39/0x60
[57890.735234]        super_cache_scan+0x161/0x1f0
[57890.735650]        do_shrink_slab+0x163/0x400
[57890.735984]        shrink_slab+0x1d3/0x290
[57890.736287]        shrink_node+0x300/0x720
[57890.736579]        balance_pgdat+0x35c/0x7a0
[57890.736902]        kswapd+0x205/0x4b0
[57890.737176]        kthread+0xf0/0x120
[57890.737451]        ret_from_fork+0x29/0x50
[57890.737764] 
               other info that might help us debug this:

[57890.738361]  Possible unsafe locking scenario:

[57890.738801]        CPU0                    CPU1
[57890.739123]        ----                    ----
[57890.739389]   lock(fs_reclaim);
[57890.739587]                                lock(sb_internal#2);
[57890.739953]                                lock(fs_reclaim);
[57890.740286]   lock(sb_internal#2);
[57890.740499] 
                *** DEADLOCK ***

[57890.740852] 3 locks held by kswapd0/46:
[57890.741111]  #0: ffffffffa3e61c60 (fs_reclaim){+.+.}-{0:0}, at: balance_pgdat+0x4aa/0x7a0
[57890.741597]  #1: ffffffffa3e50150 (shrinker_rwsem){++++}-{3:3}, at: shrink_slab+0x113/0x290
[57890.742103]  #2: ffff93dbcbc9b0e0 (&type->s_umount_key#44){++++}-{3:3}, at: super_cache_scan+0x38/0x1f0
[57890.742680] 
               stack backtrace:
[57890.742971] CPU: 0 PID: 46 Comm: kswapd0 Not tainted 6.2.0-rc8+ #1131
[57890.743367] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[57890.743938] Call Trace:
[57890.744100]  
[57890.744241]  dump_stack_lvl+0x56/0x73
[57890.744477]  check_noncircular+0xd6/0x100
[57890.744725]  ? save_trace+0x3f/0x2f0
[57890.744957]  ? add_lock_to_list+0x94/0x100
[57890.745207]  __lock_acquire+0x111c/0x1e20
[57890.745454]  lock_acquire+0xc2/0x2d0
[57890.745677]  ? btrfs_commit_inode_delayed_inode+0x5f/0x120
[57890.746011]  start_transaction+0x3f9/0x690
[57890.746262]  ? btrfs_commit_inode_delayed_inode+0x5f/0x120
[57890.746592]  btrfs_commit_inode_delayed_inode+0x5f/0x120
[57890.746911]  btrfs_evict_inode+0x2d3/0x410
[57890.747167]  ? lock_release+0x137/0x2d0
[57890.747393]  ? __pfx_wake_bit_function+0x10/0x10
[57890.747670]  evict+0xcc/0x1d0
[57890.747868]  inode_lru_isolate+0x14d/0x1e0
[57890.748119]  __list_lru_walk_one+0xbe/0x1c0
[57890.748369]  ? __pfx_inode_lru_isolate+0x10/0x10
[57890.748651]  ? __pfx_inode_lru_isolate+0x10/0x10
[57890.748964]  list_lru_walk_one+0x58/0x80
[57890.749228]  prune_icache_sb+0x39/0x60
[57890.749464]  super_cache_scan+0x161/0x1f0
[57890.749712]  do_shrink_slab+0x163/0x400
[57890.749950]  ? lock_is_held_type+0xe2/0x140
[57890.750203]  shrink_slab+0x1d3/0x290
[57890.750425]  shrink_node+0x300/0x720
[57890.750651]  balance_pgdat+0x35c/0x7a0
[57890.750885]  kswapd+0x205/0x4b0
[57890.751084]  ? __pfx_autoremove_wake_function+0x10/0x10
[57890.751401]  ? __pfx_kswapd+0x10/0x10
[57890.751626]  kthread+0xf0/0x120
[57890.751821]  ? __pfx_kthread+0x10/0x10
[57890.752052]  ret_from_fork+0x29/0x50
[57890.752277]  
[58232.184976] BTRFS warning (device dm-9): failed to trim 8 block group(s), last error -512
[58235.681977] BTRFS: device fsid 5d11cb08-8dee-42e5-beb6-d305b5097da0 devid 1 transid 201 /dev/mapper/vg0-lv9 scanned by mount (3820320)
[58235.683712] BTRFS info (device dm-9): using crc32c (crc32c-intel) checksum algorithm
[58235.684156] BTRFS info (device dm-9): turning on sync discard
[58235.684511] BTRFS info (device dm-9): using free space tree