------------[ cut here ]------------ btree trans held srcu lock (delaying memory reclaim) for 21 seconds WARNING: CPU: 0 PID: 25203 at fs/bcachefs/btree_iter.c:3276 check_srcu_held_too_long fs/bcachefs/btree_iter.c:3274 [inline] WARNING: CPU: 0 PID: 25203 at fs/bcachefs/btree_iter.c:3276 bch2_trans_put+0xf90/0x1220 fs/bcachefs/btree_iter.c:3570 Modules linked in: CPU: 0 UID: 0 PID: 25203 Comm: kworker/0:0H Not tainted 6.16.0-rc5-syzkaller-00193-g40f92e79b0aa #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Workqueue: bcachefs_btree_write_complete btree_node_write_work RIP: 0010:check_srcu_held_too_long fs/bcachefs/btree_iter.c:3274 [inline] RIP: 0010:bch2_trans_put+0xf90/0x1220 fs/bcachefs/btree_iter.c:3570 Code: 2b 33 49 c1 ee 02 48 b9 c3 f5 28 5c 8f c2 f5 28 4c 89 f0 48 f7 e1 48 c1 ea 02 48 c7 c7 c0 66 d3 8b 48 89 d6 e8 a1 89 5f fd 90 <0f> 0b 90 90 e9 98 f7 ff ff e8 c2 a9 9b fd 90 0f 0b 90 e9 de f7 ff RSP: 0018:ffffc900042cf740 EFLAGS: 00010246 RAX: 5456ff99912f5000 RBX: ffff88805b950088 RCX: ffff888027840000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000002 RBP: ffffc900042cf8b0 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffffbfff1bfaa64 R12: 00000001000404ef R13: 1ffff1100b72a011 R14: 000000000000021c R15: 1ffff1100b72a009 FS: 0000000000000000(0000) GS:ffff888125c1b000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe079984338 CR3: 00000000684f3000 CR4: 0000000000350ef0 Call Trace: class_btree_trans_destructor fs/bcachefs/btree_iter.h:991 [inline] btree_node_write_work+0xafb/0xc40 fs/bcachefs/btree_io.c:2205 process_one_work kernel/workqueue.c:3238 [inline] process_scheduled_works+0xae1/0x17b0 kernel/workqueue.c:3321 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3402 kthread+0x711/0x8a0 kernel/kthread.c:464 ret_from_fork+0x3fc/0x770 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245