------------[ cut here ]------------ btree trans held srcu lock (delaying memory reclaim) for 38 seconds WARNING: CPU: 0 PID: 56 at fs/bcachefs/btree_iter.c:3232 check_srcu_held_too_long fs/bcachefs/btree_iter.c:3230 [inline] WARNING: CPU: 0 PID: 56 at fs/bcachefs/btree_iter.c:3232 bch2_trans_put+0xcd4/0xed8 fs/bcachefs/btree_iter.c:3505 Modules linked in: CPU: 0 UID: 0 PID: 56 Comm: kworker/0:1H Not tainted 6.16.0-rc2-syzkaller-g9aa9b43d689e #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Workqueue: bcachefs_btree_write_complete btree_node_write_work pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : check_srcu_held_too_long fs/bcachefs/btree_iter.c:3230 [inline] pc : bch2_trans_put+0xcd4/0xed8 fs/bcachefs/btree_iter.c:3505 lr : check_srcu_held_too_long fs/bcachefs/btree_iter.c:3230 [inline] lr : bch2_trans_put+0xcd4/0xed8 fs/bcachefs/btree_iter.c:3505 sp : ffff8000991e7740 x29: ffff8000991e7860 x28: ffff70001323cef8 x27: ffff00010c038000 x26: ffff70001323cef8 x25: ffff00010c038042 x24: ffff0000d6a00000 x23: dfff800000000000 x22: ffff80008f5b0000 x21: 1ffff00011eb6040 x20: 00000000ffffc0ea x19: fffffffffffff508 x18: 00000000ffffffff x17: ffff800093320000 x16: ffff80008ae33808 x15: ffff700011ed61d4 x14: 1ffff00011ed61d4 x13: 0000000000000004 x12: ffffffffffffffff x11: ffff700011ed61d4 x10: 0000000000ff0100 x9 : f63981f8004d9e00 x8 : f63981f8004d9e00 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff8000991e7098 x4 : ffff80008f727060 x3 : ffff80008054c348 x2 : 0000000000000000 x1 : 0000000100000000 x0 : 0000000000000000 Call trace: check_srcu_held_too_long fs/bcachefs/btree_iter.c:3230 [inline] (P) bch2_trans_put+0xcd4/0xed8 fs/bcachefs/btree_iter.c:3505 (P) class_btree_trans_destructor fs/bcachefs/btree_iter.h:991 [inline] btree_node_write_work+0x7dc/0x8b0 fs/bcachefs/btree_io.c:2190 process_one_work+0x7e8/0x155c kernel/workqueue.c:3238 process_scheduled_works kernel/workqueue.c:3321 [inline] worker_thread+0x958/0xed8 kernel/workqueue.c:3402 kthread+0x5fc/0x75c kernel/kthread.c:464 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:847 irq event stamp: 42862 hardirqs last enabled at (42861): [] __up_console_sem kernel/printk/printk.c:344 [inline] hardirqs last enabled at (42861): [] __console_unlock+0x70/0xc4 kernel/printk/printk.c:2885 hardirqs last disabled at (42862): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:511 softirqs last enabled at (42856): [] softirq_handle_end kernel/softirq.c:425 [inline] softirqs last enabled at (42856): [] handle_softirqs+0xaf8/0xc88 kernel/softirq.c:607 softirqs last disabled at (40403): [] __do_softirq+0x14/0x20 kernel/softirq.c:613 ---[ end trace 0000000000000000 ]---