[35052.174855] run fstests generic/251 at 2023-10-20 06:39:32
[35052.778436] BTRFS: device fsid 13921637-4436-40f4-9cb4-e48f1103a380 devid 1 transid 2653970 /dev/mapper/vg0-lv0 scanned by mount (804549)
[35052.779510] BTRFS info (device dm-0): using crc32c (crc32c-intel) checksum algorithm
[35052.779516] BTRFS info (device dm-0): using free space tree
[35052.783691] BTRFS info (device dm-0): auto enabling async discard
[35052.996320] BTRFS: device fsid 0d3ab505-2852-4fa7-bbe8-54be7c3e7889 devid 1 transid 6 /dev/mapper/vg0-lv9 scanned by mount (804607)
[35052.997134] BTRFS info (device dm-9): using crc32c (crc32c-intel) checksum algorithm
[35052.997141] BTRFS info (device dm-9): setting incompat feature flag for COMPRESS_LZO (0x8)
[35052.997144] BTRFS info (device dm-9): use lzo compression, level 0
[35052.997146] BTRFS info (device dm-9): disk space caching is enabled
[35053.002510] BTRFS info (device dm-9): auto enabling async discard
[35053.002800] BTRFS info (device dm-9): checking UUID tree

[35394.339747] ======================================================
[35394.340260] WARNING: possible circular locking dependency detected
[35394.340778] 6.6.0-rc5+ #1333 Not tainted
[35394.341109] ------------------------------------------------------
[35394.341627] kswapd0/51 is trying to acquire lock:
[35394.342022] ffff8f63919c6390 (btrfs_trans_num_writers){++++}-{0:0}, at: join_transaction+0x1d0/0x580
[35394.342883] 
               but task is already holding lock:
[35394.343371] ffff8f63829f9600 (sb_internal#2){++++}-{0:0}, at: btrfs_commit_inode_delayed_inode+0x5f/0x120
[35394.344171] 
               which lock already depends on the new lock.

[35394.344844] 
               the existing dependency chain (in reverse order) is:
[35394.345459] 
               -> #3 (sb_internal#2){++++}-{0:0}:
[35394.345929]        start_transaction+0x493/0xad0
[35394.346242]        btrfs_commit_inode_delayed_inode+0x5f/0x120
[35394.346603]        btrfs_evict_inode+0x273/0x3c0
[35394.346901]        evict+0xcc/0x1d0
[35394.347135]        inode_lru_isolate+0x14d/0x1e0
[35394.347415]        __list_lru_walk_one+0xbe/0x1c0
[35394.347709]        list_lru_walk_one+0x58/0x80
[35394.347979]        prune_icache_sb+0x39/0x60
[35394.348255]        super_cache_scan+0x167/0x1f0
[35394.348663]        do_shrink_slab+0x163/0x340
[35394.349063]        shrink_slab+0x1d7/0x2a0
[35394.349422]        shrink_node+0x2eb/0x7b0
[35394.349792]        balance_pgdat+0x344/0x780
[35394.350177]        kswapd+0x205/0x410
[35394.350518]        kthread+0xff/0x130
[35394.350845]        ret_from_fork+0x2d/0x50
[35394.351206]        ret_from_fork_asm+0x1b/0x30
[35394.351626] 
               -> #2 (fs_reclaim){+.+.}-{0:0}:
[35394.352113]        fs_reclaim_acquire+0xa2/0xe0
[35394.352508]        kmem_cache_alloc_lru+0x4e/0x600
[35394.352928]        btrfs_alloc_inode+0x2d/0x250
[35394.353325]        alloc_inode+0x1a/0xc0
[35394.353665]        iget5_locked+0xba/0x110
[35394.354018]        btrfs_iget+0x43/0xe0
[35394.354352]        create_reloc_inode+0x1a0/0x360
[35394.354758]        btrfs_relocate_block_group+0x1d2/0x3d0
[35394.355222]        btrfs_relocate_chunk+0x4c/0x1b0
[35394.355637]        btrfs_balance+0x8e7/0x11d0
[35394.356013]        btrfs_ioctl+0x1c25/0x2860
[35394.356388]        __x64_sys_ioctl+0x8b/0xc0
[35394.356771]        do_syscall_64+0x38/0x90
[35394.357124]        entry_SYSCALL_64_after_hwframe+0x6e/0xd8
[35394.357603] 
               -> #1 (btrfs_trans_num_extwriters){++++}-{0:0}:
[35394.358195]        join_transaction+0xaf/0x580
[35394.358577]        start_transaction+0x1a0/0xad0
[35394.358965]        btrfs_uuid_scan_kthread+0x2bc/0x3d0
[35394.359394]        kthread+0xff/0x130
[35394.359711]        ret_from_fork+0x2d/0x50
[35394.360054]        ret_from_fork_asm+0x1b/0x30
[35394.360428] 
               -> #0 (btrfs_trans_num_writers){++++}-{0:0}:
[35394.360990]        __lock_acquire+0x1415/0x2190
[35394.361371]        lock_acquire+0xc7/0x2b0
[35394.361720]        join_transaction+0x1e4/0x580
[35394.362103]        start_transaction+0x1a0/0xad0
[35394.362495]        btrfs_commit_inode_delayed_inode+0x5f/0x120
[35394.362985]        btrfs_evict_inode+0x273/0x3c0
[35394.363376]        evict+0xcc/0x1d0
[35394.363678]        inode_lru_isolate+0x14d/0x1e0
[35394.364060]        __list_lru_walk_one+0xbe/0x1c0
[35394.364455]        list_lru_walk_one+0x58/0x80
[35394.364823]        prune_icache_sb+0x39/0x60
[35394.365184]        super_cache_scan+0x167/0x1f0
[35394.365582]        do_shrink_slab+0x163/0x340
[35394.365939]        shrink_slab+0x1d7/0x2a0
[35394.366271]        shrink_node+0x2eb/0x7b0
[35394.366611]        balance_pgdat+0x344/0x780
[35394.366959]        kswapd+0x205/0x410
[35394.367257]        kthread+0xff/0x130
[35394.367586]        ret_from_fork+0x2d/0x50
[35394.367928]        ret_from_fork_asm+0x1b/0x30
[35394.368299] 
               other info that might help us debug this:

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

[35394.369837]  Possible unsafe locking scenario:

[35394.370328]        CPU0                    CPU1
[35394.370708]        ----                    ----
[35394.371084]   rlock(sb_internal#2);
[35394.371381]                                lock(fs_reclaim);
[35394.371853]                                lock(sb_internal#2);
[35394.372440]   rlock(btrfs_trans_num_writers);
[35394.372816] 
                *** DEADLOCK ***

[35394.373305] 4 locks held by kswapd0/51:
[35394.373635]  #0: ffffffff83e62ea0 (fs_reclaim){+.+.}-{0:0}, at: balance_pgdat+0x3eb/0x780
[35394.374308]  #1: ffffffff83e513b0 (shrinker_rwsem){++++}-{3:3}, at: shrink_slab+0x113/0x2a0
[35394.375006]  #2: ffff8f63829f90e0 (&type->s_umount_key#45){++++}-{3:3}, at: super_cache_scan+0x38/0x1f0
[35394.375776]  #3: ffff8f63829f9600 (sb_internal#2){++++}-{0:0}, at: btrfs_commit_inode_delayed_inode+0x5f/0x120
[35394.376593] 
               stack backtrace:
[35394.376962] CPU: 0 PID: 51 Comm: kswapd0 Not tainted 6.6.0-rc5+ #1333
[35394.377490] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.13.0-2.fc32 04/01/2014
[35394.378184] Call Trace:
[35394.378396]  
[35394.378590]  dump_stack_lvl+0x58/0x90
[35394.378906]  check_noncircular+0x101/0x110
[35394.379253]  __lock_acquire+0x1415/0x2190
[35394.379600]  lock_acquire+0xc7/0x2b0
[35394.379904]  ? join_transaction+0x1d0/0x580
[35394.380256]  ? lock_release+0x134/0x270
[35394.380582]  ? join_transaction+0x1d0/0x580
[35394.380935]  ? join_transaction+0x3d/0x580
[35394.381278]  join_transaction+0x1e4/0x580
[35394.381619]  ? join_transaction+0x1d0/0x580
[35394.381982]  start_transaction+0x1a0/0xad0
[35394.382323]  btrfs_commit_inode_delayed_inode+0x5f/0x120
[35394.382760]  btrfs_evict_inode+0x273/0x3c0
[35394.383093]  ? lock_release+0x134/0x270
[35394.383408]  ? __pfx_wake_bit_function+0x10/0x10
[35394.383788]  evict+0xcc/0x1d0
[35394.384040]  inode_lru_isolate+0x14d/0x1e0
[35394.384375]  __list_lru_walk_one+0xbe/0x1c0
[35394.384721]  ? __pfx_inode_lru_isolate+0x10/0x10
[35394.385098]  ? __pfx_inode_lru_isolate+0x10/0x10
[35394.385476]  list_lru_walk_one+0x58/0x80
[35394.385796]  prune_icache_sb+0x39/0x60
[35394.386104]  super_cache_scan+0x167/0x1f0
[35394.386437]  do_shrink_slab+0x163/0x340
[35394.386779]  shrink_slab+0x1d7/0x2a0
[35394.387087]  shrink_node+0x2eb/0x7b0
[35394.387395]  balance_pgdat+0x344/0x780
[35394.387737]  kswapd+0x205/0x410
[35394.388004]  ? __pfx_autoremove_wake_function+0x10/0x10
[35394.388418]  ? __pfx_kswapd+0x10/0x10
[35394.388721]  kthread+0xff/0x130
[35394.388987]  ? __pfx_kthread+0x10/0x10
[35394.389295]  ret_from_fork+0x2d/0x50
[35394.389609]  ? __pfx_kthread+0x10/0x10
[35394.389910]  ret_from_fork_asm+0x1b/0x30
[35394.390228]  
[35845.404572] BTRFS: device fsid 0d3ab505-2852-4fa7-bbe8-54be7c3e7889 devid 1 transid 82 /dev/mapper/vg0-lv9 scanned by mount (883957)
[35845.405884] BTRFS info (device dm-9): using crc32c (crc32c-intel) checksum algorithm
[35845.406420] BTRFS info (device dm-9): use lzo compression, level 0
[35845.406865] BTRFS info (device dm-9): disk space caching is enabled
[35845.410055] BTRFS info (device dm-9): auto enabling async discard