------------[ cut here ]------------ btree trans held srcu lock (delaying memory reclaim) for 11 seconds WARNING: CPU: 1 PID: 6999 at fs/bcachefs/btree_iter.c:2998 check_srcu_held_too_long fs/bcachefs/btree_iter.c:2996 [inline] WARNING: CPU: 1 PID: 6999 at fs/bcachefs/btree_iter.c:2998 bch2_trans_put+0xde5/0x1040 fs/bcachefs/btree_iter.c:3243 Modules linked in: CPU: 1 PID: 6999 Comm: bch-reclaim/loo Not tainted 6.10.0-rc4-syzkaller-00301-g5f583a3162ff #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 RIP: 0010:check_srcu_held_too_long fs/bcachefs/btree_iter.c:2996 [inline] RIP: 0010:bch2_trans_put+0xde5/0x1040 fs/bcachefs/btree_iter.c:3243 Code: 2b 1e 48 c1 eb 02 48 b9 c3 f5 28 5c 8f c2 f5 28 48 89 d8 48 f7 e1 48 c1 ea 02 48 c7 c7 e0 81 11 8c 48 89 d6 e8 3c a8 44 fd 90 <0f> 0b 90 90 e9 a1 f7 ff ff e8 2d 78 82 fd 90 0f 0b 90 e9 e4 f7 ff RSP: 0018:ffffc90014def888 EFLAGS: 00010246 RAX: a5e3fc2654936500 RBX: 000000000000011b RCX: ffff888057de0000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: dffffc0000000000 R08: ffffffff81585822 R09: 1ffff1101728519a R10: dffffc0000000000 R11: ffffed101728519b R12: 1ffff11003c66808 R13: 1ffff11003c6680e R14: ffff88801e334070 R15: ffff88801e334041 FS: 0000000000000000(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f44763f2978 CR3: 000000005c73e000 CR4: 0000000000350ef0 Call Trace: bch2_btree_key_cache_journal_flush+0x3b0/0xee0 fs/bcachefs/btree_key_cache.c:742 journal_flush_pins+0x5f9/0xb20 fs/bcachefs/journal_reclaim.c:553 __bch2_journal_reclaim+0x77d/0xe40 fs/bcachefs/journal_reclaim.c:685 bch2_journal_reclaim_thread+0x174/0x560 fs/bcachefs/journal_reclaim.c:727 kthread+0x2f2/0x390 kernel/kthread.c:389 ret_from_fork+0x4d/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244