------------[ cut here ]------------ btree trans held srcu lock (delaying memory reclaim) for 30 seconds WARNING: CPU: 0 PID: 6882 at fs/bcachefs/btree_iter.c:3276 check_srcu_held_too_long fs/bcachefs/btree_iter.c:3274 [inline] WARNING: CPU: 0 PID: 6882 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: 6882 Comm: bch-reclaim/loo 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 : ffff8000a46b7460 x29: ffff8000a46b7490 x28: 1fffe0001e6a4808 x27: dfff800000000000 x26: 0000000000000000 x25: ffff0000f4980000 x24: ffff80008f7e0000 x23: 1ffff00011efc040 x22: 00000000ffff9b7f x21: fffffffffffff7e7 x20: ffff0000f3524000 x19: ffff0000f3524046 x18: 1fffe00033771c88 x17: ffff80008f85e000 x16: ffff80008b065bd0 x15: 0000000000000001 x14: 1fffe00033774708 x13: 0000000000000000 x12: 0000000000000000 x11: ffff800093404c28 x10: 0000000000000003 x9 : 84f6949b3ef06b00 x8 : 84f6949b3ef06b00 x7 : ffff800080493890 x6 : 0000000000000000 x5 : 0000000000000001 x4 : 0000000000000001 x3 : 0000000000000010 x2 : 0000000000000006 x1 : ffff80008b6b38c0 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+0x1dd0/0x2520 fs/bcachefs/btree_write_buffer.c:454 btree_write_buffer_flush_seq+0x1080/0x11c0 fs/bcachefs/btree_write_buffer.c:572 bch2_btree_write_buffer_journal_flush+0x70/0xc8 fs/bcachefs/btree_write_buffer.c:588 journal_flush_pins+0x6f4/0xc98 fs/bcachefs/journal_reclaim.c:604 __bch2_journal_reclaim+0x858/0xf84 fs/bcachefs/journal_reclaim.c:732 bch2_journal_reclaim_thread+0x13c/0x480 fs/bcachefs/journal_reclaim.c:774 kthread+0x5fc/0x75c kernel/kthread.c:463 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:844 irq event stamp: 3560 hardirqs last enabled at (3559): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1531 [inline] hardirqs last enabled at (3559): [] finish_lock_switch+0xb0/0x1c0 kernel/sched/core.c:5105 hardirqs last disabled at (3560): [] el1_brk64+0x20/0x54 arch/arm64/kernel/entry-common.c:434 softirqs last enabled at (2128): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (2126): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]---