------------[ cut here ]------------ btree trans held srcu lock (delaying memory reclaim) for 37 seconds WARNING: CPU: 0 PID: 6524 at fs/bcachefs/btree_iter.c:3276 check_srcu_held_too_long fs/bcachefs/btree_iter.c:3274 [inline] WARNING: CPU: 0 PID: 6524 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: 6524 Comm: syz-executor Not tainted 6.16.0-rc7-syzkaller-g82af5ea7c611 #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/18/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 : ffff8000a32172a0 x29: ffff8000a32172d0 x28: 1fffe00019723008 x27: dfff800000000000 x26: 0000000000000000 x25: ffff00010db00000 x24: ffff80008f600000 x23: 1ffff00011ec0040 x22: 00000000ffffad42 x21: fffffffffffff51f x20: ffff0000cb918000 x19: ffff0000cb918046 x18: 1fffe000337d1c76 x17: ffff80008f67e000 x16: ffff80008af01c68 x15: 0000000000000001 x14: 1fffe0001b2dd330 x13: 0000000000000000 x12: 0000000000000000 x11: ffff60001b2dd331 x10: 0000000000000003 x9 : 83a96309d4a41900 x8 : 83a96309d4a41900 x7 : ffff80008048771c x6 : 0000000000000000 x5 : 0000000000000001 x4 : 0000000000000001 x3 : ffff800080479d14 x2 : 0000000000000001 x1 : ffff80008b548ee0 x0 : 0000000000000001 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:1417 __cleanup_mnt+0x20/0x30 fs/namespace.c:1424 task_work_run+0x1dc/0x260 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] do_notify_resume+0x174/0x1f4 arch/arm64/kernel/entry-common.c:155 exit_to_user_mode_prepare arch/arm64/kernel/entry-common.c:173 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:182 [inline] el0_svc+0xb8/0x180 arch/arm64/kernel/entry-common.c:880 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:898 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596 irq event stamp: 2440804 hardirqs last enabled at (2440803): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1544 [inline] hardirqs last enabled at (2440803): [] finish_lock_switch+0xb0/0x1c0 kernel/sched/core.c:5145 hardirqs last disabled at (2440804): [] el1_brk64+0x1c/0x48 arch/arm64/kernel/entry-common.c:574 softirqs last enabled at (2440796): [] softirq_handle_end kernel/softirq.c:425 [inline] softirqs last enabled at (2440796): [] handle_softirqs+0xaf8/0xc88 kernel/softirq.c:607 softirqs last disabled at (2438441): [] __do_softirq+0x14/0x20 kernel/softirq.c:613 ---[ end trace 0000000000000000 ]---