------------[ cut here ]------------ btree trans held srcu lock (delaying memory reclaim) for 19 seconds WARNING: fs/bcachefs/btree_iter.c:3276 at check_srcu_held_too_long fs/bcachefs/btree_iter.c:3274 [inline], CPU#0: bch-reclaim/loo/8213 WARNING: fs/bcachefs/btree_iter.c:3276 at bch2_trans_srcu_unlock+0x50d/0x620 fs/bcachefs/btree_iter.c:3290, CPU#0: bch-reclaim/loo/8213 Modules linked in: CPU: 0 UID: 0 PID: 8213 Comm: bch-reclaim/loo Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 RIP: 0010:check_srcu_held_too_long fs/bcachefs/btree_iter.c:3274 [inline] RIP: 0010:bch2_trans_srcu_unlock+0x50d/0x620 fs/bcachefs/btree_iter.c:3290 Code: 7d 00 49 c1 ef 02 48 b9 c3 f5 28 5c 8f c2 f5 28 4c 89 f8 48 f7 e1 48 c1 ea 02 48 c7 c7 e0 ed f3 8b 48 89 d6 e8 04 61 58 fd 90 <0f> 0b 90 90 e9 a6 fe ff ff 44 89 e1 80 e1 07 38 c1 0f 8c 1c fb ff RSP: 0018:ffffc90003f7f1d8 EFLAGS: 00010246 RAX: da0ddda0b2c1e500 RBX: 1ffff1100b668009 RCX: ffff888024a51e40 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000002 RBP: 1ffff1100b668011 R08: ffff8880b8624253 R09: 1ffff110170c484a R10: dffffc0000000000 R11: ffffed10170c484b R12: ffff88805b340046 R13: ffff88805b340088 R14: 1ffff1100b668008 R15: 00000000000001f1 FS: 0000000000000000(0000) GS:ffff8881259f9000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f207509f000 CR3: 000000007779a000 CR4: 00000000003526f0 Call Trace: bch2_trans_begin+0x1b46/0x2320 fs/bcachefs/btree_iter.c:3387 bch2_btree_write_buffer_flush_locked+0x26ad/0x4dd0 fs/bcachefs/btree_write_buffer.c:403 btree_write_buffer_flush_seq+0x18c7/0x1a40 fs/bcachefs/btree_write_buffer.c:572 bch2_btree_write_buffer_journal_flush+0x69/0xb0 fs/bcachefs/btree_write_buffer.c:588 journal_flush_pins+0x8e3/0xe90 fs/bcachefs/journal_reclaim.c:604 __bch2_journal_reclaim+0x910/0xed0 fs/bcachefs/journal_reclaim.c:732 bch2_journal_reclaim_thread+0x177/0x4f0 fs/bcachefs/journal_reclaim.c:774 kthread+0x70e/0x8a0 kernel/kthread.c:463 ret_from_fork+0x47c/0x820 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245