------------[ cut here ]------------ btree trans held srcu lock (delaying memory reclaim) for 14 seconds WARNING: CPU: 1 PID: 5878 at fs/bcachefs/btree_iter.c:3274 check_srcu_held_too_long fs/bcachefs/btree_iter.c:3274 [inline] WARNING: CPU: 1 PID: 5878 at fs/bcachefs/btree_iter.c:3274 check_srcu_held_too_long fs/bcachefs/btree_iter.c:3272 [inline] WARNING: CPU: 1 PID: 5878 at fs/bcachefs/btree_iter.c:3274 bch2_trans_srcu_unlock fs/bcachefs/btree_iter.c:3290 [inline] WARNING: CPU: 1 PID: 5878 at fs/bcachefs/btree_iter.c:3274 bch2_trans_srcu_unlock+0x4c6/0x5b0 fs/bcachefs/btree_iter.c:3279 Modules linked in: CPU: 1 UID: 0 PID: 5878 Comm: kworker/u9:6 Not tainted 6.17.0-rc1-syzkaller-00214-g99bade344cfa #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Workqueue: bcachefs bch2_write_point_do_index_updates RIP: 0010:check_srcu_held_too_long fs/bcachefs/btree_iter.c:3274 [inline] RIP: 0010:check_srcu_held_too_long fs/bcachefs/btree_iter.c:3272 [inline] RIP: 0010:bch2_trans_srcu_unlock fs/bcachefs/btree_iter.c:3290 [inline] RIP: 0010:bch2_trans_srcu_unlock+0x4c6/0x5b0 fs/bcachefs/btree_iter.c:3279 Code: e0 09 48 c7 c7 a0 e0 02 8c 48 b8 c3 f5 28 5c 8f c2 f5 28 48 29 da 48 c1 ea 02 48 f7 e2 48 c1 ea 02 48 89 d6 e8 6b e4 39 fd 90 <0f> 0b 90 90 e9 2a fe ff ff e8 2c 45 7b fd 90 0f 0b 90 e9 71 fe ff RSP: 0018:ffffc9000417f750 EFLAGS: 00010286 RAX: 0000000000000000 RBX: 000000010000bf48 RCX: ffffffff817a3358 RDX: ffff888057e01e00 RSI: ffffffff817a3365 RDI: 0000000000000001 RBP: ffff888097280046 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 000000002d2d2d2d R12: 1ffff9200082fef2 R13: 1ffffffff1c42240 R14: ffff888097280000 R15: fffffffffffffe0e FS: 0000000000000000(0000) GS:ffff8881247bd000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fed7aa72000 CR3: 000000000e380000 CR4: 0000000000350ef0 Call Trace: bch2_trans_begin+0x1373/0x19e0 fs/bcachefs/btree_iter.c:3387 bch2_write_index_default+0x265/0xaf0 fs/bcachefs/io_write.c:390 __bch2_write_index+0x5fb/0x9b0 fs/bcachefs/io_write.c:606 bch2_write_point_do_index_updates+0x370/0x7a0 fs/bcachefs/io_write.c:718 process_one_work+0x9cf/0x1b70 kernel/workqueue.c:3236 process_scheduled_works kernel/workqueue.c:3319 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3400 kthread+0x3c5/0x780 kernel/kthread.c:463 ret_from_fork+0x5d7/0x6f0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245