------------[ cut here ]------------ btree trans held srcu lock (delaying memory reclaim) for 44 seconds WARNING: CPU: 1 PID: 7356 at fs/bcachefs/btree_iter.c:3276 check_srcu_held_too_long fs/bcachefs/btree_iter.c:3274 [inline] WARNING: CPU: 1 PID: 7356 at fs/bcachefs/btree_iter.c:3276 bch2_trans_srcu_unlock+0x438/0x514 fs/bcachefs/btree_iter.c:3290 Modules linked in: CPU: 1 UID: 0 PID: 7356 Comm: syz-executor 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 : ffff8000a39572c0 x29: ffff8000a39572f0 x28: 1fffe000198fd008 x27: dfff800000000000 x26: 0000000000000000 x25: ffff000101700000 x24: ffff80008f760000 x23: 1ffff00011eec040 x22: 00000000ffffa477 x21: fffffffffffff2a6 x20: ffff0000cc7e8000 x19: ffff0000cc7e8046 x18: 1fffe0003379be88 x17: ffff0001fea8c8b0 x16: ffff80008b0156e8 x15: 0000000000000001 x14: 1ffff0001472adc8 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000000000 x10: 0000000000ff0100 x9 : cca2e952cee20200 x8 : cca2e952cee20200 x7 : ffff800080563530 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff8000807de538 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_btree_write_buffer_flush_locked+0x1048/0x2520 fs/bcachefs/btree_write_buffer.c:403 btree_write_buffer_flush_seq+0x1080/0x11c0 fs/bcachefs/btree_write_buffer.c:572 bch2_btree_write_buffer_flush_going_ro+0xe8/0x144 fs/bcachefs/btree_write_buffer.c:611 __bch2_fs_read_only+0x10c/0x4dc fs/bcachefs/super.c:290 bch2_fs_read_only+0x344/0x960 fs/bcachefs/super.c:366 __bch2_fs_stop+0x104/0x800 fs/bcachefs/super.c:677 bch2_put_super+0x40/0x50 fs/bcachefs/fs.c:2365 generic_shutdown_super+0x12c/0x2b8 fs/super.c:643 bch2_kill_sb+0x40/0x58 fs/bcachefs/fs.c:2618 deactivate_locked_super+0xc4/0x12c fs/super.c:474 deactivate_super+0xe0/0x100 fs/super.c:507 cleanup_mnt+0x31c/0x3ac fs/namespace.c:1375 __cleanup_mnt+0x20/0x30 fs/namespace.c:1382 task_work_run+0x1dc/0x260 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop+0xfc/0x168 kernel/entry/common.c:43 exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline] arm64_exit_to_user_mode arch/arm64/kernel/entry-common.c:103 [inline] el0_svc+0x170/0x254 arch/arm64/kernel/entry-common.c:745 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: 296358 hardirqs last enabled at (296357): [] irqentry_exit+0xd8/0x108 kernel/entry/common.c:214 hardirqs last disabled at (296358): [] el1_brk64+0x20/0x54 arch/arm64/kernel/entry-common.c:434 softirqs last enabled at (296356): [] softirq_handle_end kernel/softirq.c:425 [inline] softirqs last enabled at (296356): [] handle_softirqs+0xaf8/0xc88 kernel/softirq.c:607 softirqs last disabled at (287549): [] __do_softirq+0x14/0x20 kernel/softirq.c:613 ---[ end trace 0000000000000000 ]---