[32144.493633] run fstests generic/251 at 2023-04-22 05:49:40
[32144.876045] BTRFS: device fsid ec3e1159-917e-46d6-82d2-6d36aac552b0 devid 1 transid 1740906 /dev/mapper/vg0-lv0 scanned by mount (825382)
[32144.876797] BTRFS info (device dm-0): using crc32c (crc32c-intel) checksum algorithm
[32144.876803] BTRFS info (device dm-0): using free space tree
[32144.880901] BTRFS info (device dm-0): auto enabling async discard
[32145.070389] BTRFS: device fsid c6e4bd32-9b1a-49e9-a2d1-6ddcabd89ac7 devid 1 transid 6 /dev/mapper/vg0-lv9 scanned by mkfs.btrfs (825431)
[32145.094232] BTRFS info (device dm-9): using crc32c (crc32c-intel) checksum algorithm
[32145.094244] BTRFS info (device dm-9): setting incompat feature flag for COMPRESS_ZSTD (0x10)
[32145.094249] BTRFS info (device dm-9): use zstd compression, level 3
[32145.094253] BTRFS info (device dm-9): turning on async discard
[32145.094256] BTRFS info (device dm-9): disk space caching is enabled
[32145.119323] BTRFS info (device dm-9): checking UUID tree

[32578.845480] ======================================================
[32578.845703] WARNING: possible circular locking dependency detected
[32578.845923] 6.3.0-rc7+ #1154 Not tainted
[32578.846071] ------------------------------------------------------
[32578.846290] kswapd0/46 is trying to acquire lock:
[32578.846460] ffffa0c79fa8b650 (sb_internal#2){++++}-{0:0}, at: btrfs_commit_inode_delayed_inode+0x5f/0x120
[32578.846804] 
               but task is already holding lock:
[32578.847027] ffffffff94e61b40 (fs_reclaim){+.+.}-{0:0}, at: balance_pgdat+0x4aa/0x7a0
[32578.847314] 
               which lock already depends on the new lock.

[32578.847594] 
               the existing dependency chain (in reverse order) is:
[32578.847853] 
               -> #1 (fs_reclaim){+.+.}-{0:0}:
[32578.848060]        fs_reclaim_acquire+0xa5/0xe0
[32578.848226]        kmem_cache_alloc+0x31/0x2c0
[32578.848387]        alloc_extent_state+0x1d/0xd0
[32578.848551]        __clear_extent_bit+0x2e0/0x4f0
[32578.848721]        try_release_extent_mapping+0x216/0x280
[32578.848913]        btrfs_release_folio+0x2e/0x90
[32578.849082]        invalidate_inode_pages2_range+0x397/0x470
[32578.849372]        btrfs_cleanup_dirty_bgs+0x1c3/0x210
[32578.849663]        btrfs_cleanup_one_transaction+0x22/0x760
[32578.849986]        btrfs_commit_transaction+0x3b7/0x13a0
[32578.850348]        create_subvol+0x59b/0x970
[32578.850609]        btrfs_mksubvol+0x435/0x4f0
[32578.850864]        __btrfs_ioctl_snap_create+0x11e/0x1b0
[32578.851176]        btrfs_ioctl_snap_create_v2+0xbf/0x140
[32578.851481]        btrfs_ioctl+0xa2e/0x28d0
[32578.851728]        __x64_sys_ioctl+0x88/0xc0
[32578.851997]        do_syscall_64+0x38/0x90
[32578.852230]        entry_SYSCALL_64_after_hwframe+0x72/0xdc
[32578.852557] 
               -> #0 (sb_internal#2){++++}-{0:0}:
[32578.852885]        __lock_acquire+0x1435/0x21a0
[32578.853153]        lock_acquire+0xc2/0x2b0
[32578.853399]        start_transaction+0x401/0x720
[32578.853668]        btrfs_commit_inode_delayed_inode+0x5f/0x120
[32578.854005]        btrfs_evict_inode+0x282/0x3c0
[32578.854283]        evict+0xcc/0x1d0
[32578.854481]        inode_lru_isolate+0x14d/0x1e0
[32578.854746]        __list_lru_walk_one+0xbe/0x1c0
[32578.855039]        list_lru_walk_one+0x58/0x80
[32578.855315]        prune_icache_sb+0x39/0x60
[32578.855569]        super_cache_scan+0x161/0x1f0
[32578.855838]        do_shrink_slab+0x163/0x340
[32578.856134]        shrink_slab+0x1d3/0x290
[32578.856475]        shrink_node+0x300/0x720
[32578.856740]        balance_pgdat+0x35c/0x7a0
[32578.857006]        kswapd+0x205/0x410
[32578.857225]        kthread+0xf0/0x120
[32578.857443]        ret_from_fork+0x29/0x50
[32578.857731] 
               other info that might help us debug this:

[32578.858185]  Possible unsafe locking scenario:

[32578.858526]        CPU0                    CPU1
[32578.858821]        ----                    ----
[32578.859085]   lock(fs_reclaim);
[32578.859277]                                lock(sb_internal#2);
[32578.859636]                                lock(fs_reclaim);
[32578.859964]   lock(sb_internal#2);
[32578.860163] 
                *** DEADLOCK ***

[32578.860496] 3 locks held by kswapd0/46:
[32578.860716]  #0: ffffffff94e61b40 (fs_reclaim){+.+.}-{0:0}, at: balance_pgdat+0x4aa/0x7a0
[32578.861219]  #1: ffffffff94e50270 (shrinker_rwsem){++++}-{3:3}, at: shrink_slab+0x113/0x290
[32578.861703]  #2: ffffa0c79fa8b0e0 (&type->s_umount_key#44){++++}-{3:3}, at: super_cache_scan+0x38/0x1f0
[32578.862345] 
               stack backtrace:
[32578.862584] CPU: 1 PID: 46 Comm: kswapd0 Not tainted 6.3.0-rc7+ #1154
[32578.862979] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[32578.863450] Call Trace:
[32578.863598]  
[32578.863732]  dump_stack_lvl+0x58/0x90
[32578.863957]  check_noncircular+0xd6/0x100
[32578.864224]  ? save_trace+0x3f/0x310
[32578.864429]  ? add_lock_to_list+0x97/0x120
[32578.864644]  __lock_acquire+0x1435/0x21a0
[32578.864894]  lock_acquire+0xc2/0x2b0
[32578.865146]  ? btrfs_commit_inode_delayed_inode+0x5f/0x120
[32578.865461]  start_transaction+0x401/0x720
[32578.865704]  ? btrfs_commit_inode_delayed_inode+0x5f/0x120
[32578.866031]  btrfs_commit_inode_delayed_inode+0x5f/0x120
[32578.866347]  btrfs_evict_inode+0x282/0x3c0
[32578.866592]  ? lock_release+0x134/0x270
[32578.866800]  ? __pfx_wake_bit_function+0x10/0x10
[32578.867065]  evict+0xcc/0x1d0
[32578.867238]  inode_lru_isolate+0x14d/0x1e0
[32578.867479]  __list_lru_walk_one+0xbe/0x1c0
[32578.867718]  ? __pfx_inode_lru_isolate+0x10/0x10
[32578.867986]  ? __pfx_inode_lru_isolate+0x10/0x10
[32578.868257]  list_lru_walk_one+0x58/0x80
[32578.868466]  prune_icache_sb+0x39/0x60
[32578.868682]  super_cache_scan+0x161/0x1f0
[32578.868898]  do_shrink_slab+0x163/0x340
[32578.869127]  shrink_slab+0x1d3/0x290
[32578.869327]  shrink_node+0x300/0x720
[32578.869533]  balance_pgdat+0x35c/0x7a0
[32578.869734]  kswapd+0x205/0x410
[32578.869910]  ? __pfx_autoremove_wake_function+0x10/0x10
[32578.870219]  ? __pfx_kswapd+0x10/0x10
[32578.870429]  kthread+0xf0/0x120
[32578.870597]  ? __pfx_kthread+0x10/0x10
[32578.870801]  ret_from_fork+0x29/0x50
[32578.871013]  
[32919.127166] BTRFS: device fsid c6e4bd32-9b1a-49e9-a2d1-6ddcabd89ac7 devid 1 transid 64 /dev/mapper/vg0-lv9 scanned by mount (837086)
[32919.128264] BTRFS info (device dm-9): using crc32c (crc32c-intel) checksum algorithm
[32919.128629] BTRFS info (device dm-9): use zstd compression, level 3
[32919.128856] BTRFS info (device dm-9): turning on async discard
[32919.129082] BTRFS info (device dm-9): disk space caching is enabled