------------[ cut here ]------------ btree trans held srcu lock (delaying memory reclaim) for 57 seconds WARNING: CPU: 1 PID: 11424 at fs/bcachefs/btree_iter.c:3185 check_srcu_held_too_long fs/bcachefs/btree_iter.c:3183 [inline] WARNING: CPU: 1 PID: 11424 at fs/bcachefs/btree_iter.c:3185 bch2_trans_srcu_unlock+0x438/0x514 fs/bcachefs/btree_iter.c:3199 Modules linked in: CPU: 1 UID: 0 PID: 11424 Comm: syz.3.1603 Not tainted 6.15.0-rc7-syzkaller-g187899f4124a #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : check_srcu_held_too_long fs/bcachefs/btree_iter.c:3183 [inline] pc : bch2_trans_srcu_unlock+0x438/0x514 fs/bcachefs/btree_iter.c:3199 lr : check_srcu_held_too_long fs/bcachefs/btree_iter.c:3183 [inline] lr : bch2_trans_srcu_unlock+0x438/0x514 fs/bcachefs/btree_iter.c:3199 sp : ffff8000a19f6980 x29: ffff8000a19f69b0 x28: 1fffe0001aafa008 x27: dfff800000000000 x26: 0000000000000000 x25: ffff0000fc880000 x24: ffff80008f2a0000 x23: 1ffff00011e54040 x22: 00000000ffffca4f x21: ffffffffffffed5a x20: ffff0000d57d0000 x19: ffff0000d57d0042 x18: 1fffe0003386f276 x17: 0000000000000000 x16: ffff80008ad27e48 x15: ffff700011e740c0 x14: 1ffff00011e740c0 x13: 0000000000000004 x12: ffffffffffffffff x11: 0000000000080000 x10: 000000000007ffff x9 : 8e6be5827a5cc800 x8 : 8e6be5827a5cc800 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff8000a19f62d8 x4 : ffff80008f415ba0 x3 : ffff800080548ef0 x2 : 0000000000000000 x1 : 0000000100000000 x0 : 0000000000000000 Call trace: check_srcu_held_too_long fs/bcachefs/btree_iter.c:3183 [inline] (P) bch2_trans_srcu_unlock+0x438/0x514 fs/bcachefs/btree_iter.c:3199 (P) bch2_trans_begin+0x828/0xa40 fs/bcachefs/btree_iter.c:3276 bch2_accounting_read+0x8dc/0x40b0 fs/bcachefs/disk_accounting.c:737 bch2_run_recovery_pass+0xf0/0x1d0 fs/bcachefs/recovery_passes.c:227 bch2_run_recovery_passes+0x314/0xc30 fs/bcachefs/recovery_passes.c:280 bch2_fs_recovery+0x1aac/0x2d30 fs/bcachefs/recovery.c:937 bch2_fs_start+0x5b0/0x908 fs/bcachefs/super.c:1096 bch2_fs_get_tree+0x834/0xf30 fs/bcachefs/fs.c:2507 vfs_get_tree+0x90/0x28c fs/super.c:1759 do_new_mount+0x228/0x814 fs/namespace.c:3881 path_mount+0x5b4/0xde0 fs/namespace.c:4208 do_mount fs/namespace.c:4221 [inline] __do_sys_mount fs/namespace.c:4432 [inline] __se_sys_mount fs/namespace.c:4409 [inline] __arm64_sys_mount+0x3e8/0x468 fs/namespace.c:4409 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x58/0x17c arch/arm64/kernel/entry-common.c:767 el0t_64_sync_handler+0x78/0x108 arch/arm64/kernel/entry-common.c:786 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 irq event stamp: 172052 hardirqs last enabled at (172051): [] __up_console_sem kernel/printk/printk.c:344 [inline] hardirqs last enabled at (172051): [] __console_unlock+0x70/0xc4 kernel/printk/printk.c:2885 hardirqs last disabled at (172052): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:511 softirqs last enabled at (172046): [] softirq_handle_end kernel/softirq.c:425 [inline] softirqs last enabled at (172046): [] handle_softirqs+0xaf8/0xc88 kernel/softirq.c:607 softirqs last disabled at (165915): [] __do_softirq+0x14/0x20 kernel/softirq.c:613 ---[ end trace 0000000000000000 ]--- done bcachefs (loop3): alloc_read... done bcachefs (loop3): snapshots_read... done