------------[ cut here ]------------ btree trans held srcu lock (delaying memory reclaim) for 18 seconds WARNING: CPU: 0 PID: 40 at fs/bcachefs/btree_iter.c:3030 check_srcu_held_too_long fs/bcachefs/btree_iter.c:3028 [inline] WARNING: CPU: 0 PID: 40 at fs/bcachefs/btree_iter.c:3030 bch2_trans_put+0xd42/0xf00 fs/bcachefs/btree_iter.c:3274 Modules linked in: CPU: 0 UID: 0 PID: 40 Comm: kworker/0:1H Not tainted 6.12.0-syzkaller-00171-g23acd177540d #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 Workqueue: bcachefs_btree_io btree_node_write_work RIP: 0010:check_srcu_held_too_long fs/bcachefs/btree_iter.c:3028 [inline] RIP: 0010:bch2_trans_put+0xd42/0xf00 fs/bcachefs/btree_iter.c:3274 Code: 1c 24 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 60 68 52 8c 48 89 d6 e8 df 9f 3c fd 90 <0f> 0b 90 90 e9 b2 f8 ff ff e8 50 b0 7b fd 90 0f 0b 90 e9 f5 f8 ff RSP: 0018:ffffc90000b079c0 EFLAGS: 00010246 RAX: 60d49816a5530800 RBX: 00000000000001cb RCX: ffff888020ee8000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: dffffc0000000000 R08: ffffffff8155e222 R09: 1ffffffff2854523 R10: dffffc0000000000 R11: fffffbfff2854524 R12: ffff8880356e8070 R13: 1ffff11006add00e R14: ffff8880356e8042 R15: 1ffff11006add008 FS: 0000000000000000(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fa880862afc CR3: 000000006f782000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btree_node_write_work+0xa77/0xba0 fs/bcachefs/btree_io.c:1870 process_one_work kernel/workqueue.c:3229 [inline] process_scheduled_works+0xa63/0x1850 kernel/workqueue.c:3310 worker_thread+0x870/0xd30 kernel/workqueue.c:3391 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244