cur_idx 0 (seq 14) replicas want 1 need 1 ------------[ cut here ]------------ btree trans held srcu lock (delaying memory reclaim) for 31 seconds WARNING: CPU: 0 PID: 7100 at fs/bcachefs/btree_iter.c:3276 check_srcu_held_too_long fs/bcachefs/btree_iter.c:3274 [inline] WARNING: CPU: 0 PID: 7100 at fs/bcachefs/btree_iter.c:3276 bch2_trans_srcu_unlock+0x438/0x514 fs/bcachefs/btree_iter.c:3290 Modules linked in: CPU: 0 UID: 0 PID: 7100 Comm: syz.4.55 Not tainted syzkaller #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/30/2025 pstate: 63400005 (nZCv daif +PAN -UAO +TCO +DIT -SSBS BTYPE=--) pc : check_srcu_held_too_long fs/bcachefs/btree_iter.c:3274 [inline] pc : bch2_trans_srcu_unlock+0x438/0x514 fs/bcachefs/btree_iter.c:3290 lr : check_srcu_held_too_long fs/bcachefs/btree_iter.c:3274 [inline] lr : bch2_trans_srcu_unlock+0x438/0x514 fs/bcachefs/btree_iter.c:3290 sp : ffff8000a0e570a0 x29: ffff8000a0e570d0 x28: 1fffe0001aa76808 x27: dfff800000000000 x26: 0000000000000000 x25: ffff0000e7200000 x24: ffff80008f770000 x23: 1ffff00011eee040 x22: 00000000ffff9eca x21: fffffffffffff7a7 x20: ffff0000d53b4000 x19: ffff0000d53b4046 x18: 1fffe0003378f088 x17: ffff80009353a000 x16: ffff80008b021140 x15: 0000000000000001 x14: 1ffff000141cad84 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000000000 x10: 0000000000ff0100 x9 : f9730c3bfab24f00 x8 : f9730c3bfab24f00 x7 : ffff800080565b6c x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff8000807e08b4 x2 : 0000000000000002 x1 : 0000000100000000 x0 : 0000000000000000 Call trace: check_srcu_held_too_long fs/bcachefs/btree_iter.c:3274 [inline] (P) bch2_trans_srcu_unlock+0x438/0x514 fs/bcachefs/btree_iter.c:3290 (P) bch2_trans_begin+0x930/0xd30 fs/bcachefs/btree_iter.c:3387 bch2_remap_range+0x418/0x15a0 fs/bcachefs/reflink.c:642 bch2_remap_file_range+0x64c/0xb70 fs/bcachefs/fs-io.c:942 vfs_clone_file_range+0x62c/0xb68 fs/remap_range.c:403 ioctl_file_clone fs/ioctl.c:240 [inline] ioctl_file_clone_range fs/ioctl.c:258 [inline] do_vfs_ioctl+0xb84/0x1834 fs/ioctl.c:545 __do_sys_ioctl fs/ioctl.c:596 [inline] __se_sys_ioctl fs/ioctl.c:584 [inline] __arm64_sys_ioctl+0xe4/0x1c4 fs/ioctl.c:584 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x254 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+0x5c/0x254 arch/arm64/kernel/entry-common.c:744 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:763 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596 irq event stamp: 52894 hardirqs last enabled at (52893): [] irqentry_exit+0xd8/0x108 kernel/entry/common.c:214 hardirqs last disabled at (52894): [] el1_brk64+0x20/0x54 arch/arm64/kernel/entry-common.c:434 softirqs last enabled at (51754): [] softirq_handle_end kernel/softirq.c:425 [inline] softirqs last enabled at (51754): [] handle_softirqs+0xaf8/0xc88 kernel/softirq.c:607 softirqs last disabled at (51715): [] __do_softirq+0x14/0x20 kernel/softirq.c:613 ---[ end trace 0000000000000000 ]--- bcachefs (loop4): shutting down bcachefs (loop4): going read-only bcachefs (loop4): finished waiting for writes to stop bcachefs (loop4): flushing journal and stopping allocators, journal seq 15 bcachefs (loop4): flushing journal and stopping allocators complete, journal seq 15 bcachefs (loop4): clean shutdown complete, journal seq 16 bcachefs (loop4): marking filesystem clean bcachefs (loop4): shutdown complete