[10381.404710] run fstests generic/251 at 2023-08-30 23:46:47
[10381.922784] BTRFS: device fsid ec3e1159-917e-46d6-82d2-6d36aac552b0 devid 1 transid 2609678 /dev/mapper/vg0-lv0 scanned by mount (1566423)
[10381.924148] BTRFS info (device dm-0): using crc32c (crc32c-intel) checksum algorithm
[10381.924156] BTRFS info (device dm-0): using free space tree
[10381.927874] BTRFS info (device dm-0): auto enabling async discard
[10382.149626] BTRFS: device fsid 20959705-7c1c-44bf-81a6-6a4014da8516 devid 1 transid 6 /dev/mapper/vg0-lv9 scanned by mkfs.btrfs (1566471)
[10382.171663] BTRFS info (device dm-9): using crc32c (crc32c-intel) checksum algorithm
[10382.171676] BTRFS info (device dm-9): turning on async discard
[10382.171679] BTRFS info (device dm-9): disk space caching is enabled
[10382.180161] BTRFS info: devid 1 device path /dev/mapper/vg0-lv9 changed to /dev/dm-9 scanned by systemd-udevd (1565336)
[10382.181008] BTRFS info: devid 1 device path /dev/dm-9 changed to /dev/mapper/vg0-lv9 scanned by systemd-udevd (1565336)
[10382.190021] BTRFS info (device dm-9): checking UUID tree

[10576.586739] ======================================================
[10576.587005] WARNING: possible circular locking dependency detected
[10576.587271] 6.5.0-rc7+ #1287 Not tainted
[10576.587442] ------------------------------------------------------
[10576.587712] kswapd0/47 is trying to acquire lock:
[10576.588072] ffffa0a105956388 (btrfs_trans_num_writers){++++}-{0:0}, at: join_transaction+0x1af/0x590
[10576.588458] 
               but task is already holding lock:
[10576.588712] ffffa0a105dd1600 (sb_internal#2){++++}-{0:0}, at: btrfs_commit_inode_delayed_inode+0x5f/0x120
[10576.589115] 
               which lock already depends on the new lock.

[10576.589455] 
               the existing dependency chain (in reverse order) is:
[10576.589775] 
               -> #3 (sb_internal#2){++++}-{0:0}:
[10576.590029]        start_transaction+0x3f9/0x740
[10576.590233]        btrfs_commit_inode_delayed_inode+0x5f/0x120
[10576.590645]        btrfs_evict_inode+0x273/0x3c0
[10576.590848]        evict+0xcc/0x1d0
[10576.591005]        inode_lru_isolate+0x14d/0x1e0
[10576.591206]        __list_lru_walk_one+0xbe/0x1c0
[10576.591412]        list_lru_walk_one+0x58/0x80
[10576.591616]        prune_icache_sb+0x39/0x60
[10576.591804]        super_cache_scan+0x161/0x1f0
[10576.592004]        do_shrink_slab+0x163/0x340
[10576.592196]        shrink_slab+0x1d7/0x2a0
[10576.592375]        shrink_node+0x2eb/0x7b0
[10576.592552]        balance_pgdat+0x344/0x780
[10576.592749]        kswapd+0x205/0x410
[10576.593050]        kthread+0xfc/0x130
[10576.593216]        ret_from_fork+0x2d/0x50
[10576.593395]        ret_from_fork_asm+0x1b/0x30
[10576.593598] 
               -> #2 (fs_reclaim){+.+.}-{0:0}:
[10576.593844]        fs_reclaim_acquire+0xa5/0xe0
[10576.594042]        kmem_cache_alloc_lru+0x4e/0x570
[10576.594250]        btrfs_alloc_inode+0x2d/0x250
[10576.594450]        alloc_inode+0x1a/0xc0
[10576.594627]        iget5_locked+0xba/0x110
[10576.594808]        btrfs_iget+0x43/0xe0
[10576.594976]        create_reloc_inode+0x19d/0x370
[10576.595182]        btrfs_relocate_block_group+0x1b7/0x410
[10576.595412]        btrfs_relocate_chunk+0x4c/0x1b0
[10576.595758]        btrfs_balance+0x8e7/0x11d0
[10576.595951]        btrfs_ioctl+0x1d3d/0x2900
[10576.596138]        __x64_sys_ioctl+0x8b/0xc0
[10576.596326]        do_syscall_64+0x38/0x90
[10576.596506]        entry_SYSCALL_64_after_hwframe+0x6e/0xd8
[10576.596750] 
               -> #1 (btrfs_trans_num_extwriters){++++}-{0:0}:
[10576.597050]        join_transaction+0xb4/0x590
[10576.597245]        start_transaction+0x187/0x740
[10576.597447]        btrfs_uuid_scan_kthread+0x2bc/0x3d0
[10576.597673]        kthread+0xfc/0x130
[10576.597836]        ret_from_fork+0x2d/0x50
[10576.598142]        ret_from_fork_asm+0x1b/0x30
[10576.598336] 
               -> #0 (btrfs_trans_num_writers){++++}-{0:0}:
[10576.598630]        __lock_acquire+0x1415/0x2190
[10576.598829]        lock_acquire+0xc7/0x2b0
[10576.599008]        join_transaction+0x1de/0x590
[10576.599206]        start_transaction+0x187/0x740
[10576.599405]        btrfs_commit_inode_delayed_inode+0x5f/0x120
[10576.599666]        btrfs_evict_inode+0x273/0x3c0
[10576.599868]        evict+0xcc/0x1d0
[10576.600024]        inode_lru_isolate+0x14d/0x1e0
[10576.600224]        __list_lru_walk_one+0xbe/0x1c0
[10576.600428]        list_lru_walk_one+0x58/0x80
[10576.600761]        prune_icache_sb+0x39/0x60
[10576.600952]        super_cache_scan+0x161/0x1f0
[10576.601150]        do_shrink_slab+0x163/0x340
[10576.601341]        shrink_slab+0x1d7/0x2a0
[10576.601521]        shrink_node+0x2eb/0x7b0
[10576.601707]        balance_pgdat+0x344/0x780
[10576.601895]        kswapd+0x205/0x410
[10576.602057]        kthread+0xfc/0x130
[10576.602219]        ret_from_fork+0x2d/0x50
[10576.602396]        ret_from_fork_asm+0x1b/0x30
[10576.602600] 
               other info that might help us debug this:

[10576.602934] Chain exists of:
                 btrfs_trans_num_writers --> fs_reclaim --> sb_internal#2

[10576.603510]  Possible unsafe locking scenario:

[10576.603770]        CPU0                    CPU1
[10576.603966]        ----                    ----
[10576.604162]   rlock(sb_internal#2);
[10576.604317]                                lock(fs_reclaim);
[10576.604560]                                lock(sb_internal#2);
[10576.604818]   rlock(btrfs_trans_num_writers);
[10576.605010] 
                *** DEADLOCK ***

[10576.605261] 4 locks held by kswapd0/47:
[10576.605427]  #0: ffffffff93e62280 (fs_reclaim){+.+.}-{0:0}, at: balance_pgdat+0x492/0x780
[10576.605911]  #1: ffffffff93e507d0 (shrinker_rwsem){++++}-{3:3}, at: shrink_slab+0x113/0x2a0
[10576.606264]  #2: ffffa0a105dd10e0 (&type->s_umount_key#45){++++}-{3:3}, at: super_cache_scan+0x38/0x1f0
[10576.606663]  #3: ffffa0a105dd1600 (sb_internal#2){++++}-{0:0}, at: btrfs_commit_inode_delayed_inode+0x5f/0x120
[10576.607086] 
               stack backtrace:
[10576.607276] CPU: 0 PID: 47 Comm: kswapd0 Not tainted 6.5.0-rc7+ #1287
[10576.607548] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[10576.607916] Call Trace:
[10576.608029]  
[10576.608249]  dump_stack_lvl+0x58/0x90
[10576.608506]  check_noncircular+0x101/0x110
[10576.608700]  __lock_acquire+0x1415/0x2190
[10576.608879]  lock_acquire+0xc7/0x2b0
[10576.609038]  ? join_transaction+0x1af/0x590
[10576.609225]  ? lock_release+0x134/0x270
[10576.609418]  join_transaction+0x1de/0x590
[10576.609602]  ? join_transaction+0x1af/0x590
[10576.609785]  start_transaction+0x187/0x740
[10576.609968]  btrfs_commit_inode_delayed_inode+0x5f/0x120
[10576.610198]  btrfs_evict_inode+0x273/0x3c0
[10576.610377]  ? lock_release+0x134/0x270
[10576.610548]  ? __pfx_wake_bit_function+0x10/0x10
[10576.610881]  evict+0xcc/0x1d0
[10576.611021]  inode_lru_isolate+0x14d/0x1e0
[10576.611200]  __list_lru_walk_one+0xbe/0x1c0
[10576.611384]  ? __pfx_inode_lru_isolate+0x10/0x10
[10576.611593]  ? __pfx_inode_lru_isolate+0x10/0x10
[10576.611793]  list_lru_walk_one+0x58/0x80
[10576.611969]  prune_icache_sb+0x39/0x60
[10576.612136]  super_cache_scan+0x161/0x1f0
[10576.612312]  do_shrink_slab+0x163/0x340
[10576.612482]  ? lock_is_held_type+0xe2/0x140
[10576.612671]  shrink_slab+0x1d7/0x2a0
[10576.612833]  shrink_node+0x2eb/0x7b0
[10576.612993]  balance_pgdat+0x344/0x780
[10576.613290]  kswapd+0x205/0x410
[10576.613433]  ? __pfx_autoremove_wake_function+0x10/0x10
[10576.613663]  ? __pfx_kswapd+0x10/0x10
[10576.613825]  kthread+0xfc/0x130
[10576.613968]  ? __pfx_kthread+0x10/0x10
[10576.614133]  ret_from_fork+0x2d/0x50
[10576.614291]  ? __pfx_kthread+0x10/0x10
[10576.614457]  ret_from_fork_asm+0x1b/0x30
[10576.614637]  
[11128.775567] BTRFS warning (device dm-9): failed to trim 3 block group(s), last error -512
[11133.553277] BTRFS: device fsid 20959705-7c1c-44bf-81a6-6a4014da8516 devid 1 transid 184 /dev/mapper/vg0-lv9 scanned by mount (1574561)
[11133.555007] BTRFS info (device dm-9): using crc32c (crc32c-intel) checksum algorithm
[11133.555538] BTRFS info (device dm-9): turning on async discard
[11133.555859] BTRFS info (device dm-9): disk space caching is enabled