------------[ cut here ]------------ btree trans held srcu lock (delaying memory reclaim) for 16 seconds WARNING: CPU: 1 PID: 14 at fs/bcachefs/btree_iter.c:3185 check_srcu_held_too_long fs/bcachefs/btree_iter.c:3183 [inline] WARNING: CPU: 1 PID: 14 at fs/bcachefs/btree_iter.c:3185 bch2_trans_put+0xbf0/0xdf8 fs/bcachefs/btree_iter.c:3440 Modules linked in: CPU: 1 UID: 0 PID: 14 Comm: kworker/u8:1 Not tainted 6.15.0-rc7-syzkaller-gd7fa1af5b33e #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Workqueue: writeback wb_workfn (flush-bcachefs-8) pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : check_srcu_held_too_long fs/bcachefs/btree_iter.c:3183 [inline] pc : bch2_trans_put+0xbf0/0xdf8 fs/bcachefs/btree_iter.c:3440 lr : check_srcu_held_too_long fs/bcachefs/btree_iter.c:3183 [inline] lr : bch2_trans_put+0xbf0/0xdf8 fs/bcachefs/btree_iter.c:3440 sp : ffff800097676e70 x29: ffff800097676ee0 x28: 1fffe00019211007 x27: ffff0000ed980000 x26: 0000000000000040 x25: 1fffe00019211008 x24: ffff0000c9088042 x23: dfff800000000000 x22: ffff80008f2a0000 x21: 1ffff00011e54040 x20: 00000000ffffc275 x19: fffffffffffffd48 x18: 00000000ffffffff x17: ffff800092f39000 x16: ffff80008ad27e48 x15: ffff700011e740c0 x14: 1ffff00011e740c0 x13: 0000000000000004 x12: ffffffffffffffff x11: ffff700011e740c0 x10: 0000000000ff0100 x9 : 2c4803a10d863400 x8 : 2c4803a10d863400 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff8000976767b8 x4 : ffff80008f415ba0 x3 : ffff800080548ef0 x2 : 0000000000000000 x1 : 0000000100000000 x0 : 0000000000000000 Call trace: check_srcu_held_too_long fs/bcachefs/btree_iter.c:3183 [inline] (P) bch2_trans_put+0xbf0/0xdf8 fs/bcachefs/btree_iter.c:3440 (P) bch2_write_inode+0x590/0x630 fs/bcachefs/fs.c:155 bch2_vfs_write_inode+0x84/0xcc fs/bcachefs/fs.c:2174 write_inode fs/fs-writeback.c:1525 [inline] __writeback_single_inode+0x5ac/0x13e8 fs/fs-writeback.c:1745 writeback_sb_inodes+0x558/0xe38 fs/fs-writeback.c:1976 __writeback_inodes_wb+0xec/0x228 fs/fs-writeback.c:2047 wb_writeback+0x3e0/0xd70 fs/fs-writeback.c:2158 wb_check_old_data_flush fs/fs-writeback.c:2262 [inline] wb_do_writeback fs/fs-writeback.c:2315 [inline] wb_workfn+0xa08/0xdc0 fs/fs-writeback.c:2343 process_one_work+0x7e8/0x156c kernel/workqueue.c:3238 process_scheduled_works kernel/workqueue.c:3319 [inline] worker_thread+0x958/0xed8 kernel/workqueue.c:3400 kthread+0x5fc/0x75c kernel/kthread.c:464 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:847 irq event stamp: 5894620 hardirqs last enabled at (5894619): [] __up_console_sem kernel/printk/printk.c:344 [inline] hardirqs last enabled at (5894619): [] __console_unlock+0x70/0xc4 kernel/printk/printk.c:2885 hardirqs last disabled at (5894620): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:511 softirqs last enabled at (5894614): [] softirq_handle_end kernel/softirq.c:425 [inline] softirqs last enabled at (5894614): [] handle_softirqs+0xaf8/0xc88 kernel/softirq.c:607 softirqs last disabled at (5889751): [] __do_softirq+0x14/0x20 kernel/softirq.c:613 ---[ end trace 0000000000000000 ]---