------------[ cut here ]------------ btree trans held srcu lock (delaying memory reclaim) for 32 seconds WARNING: CPU: 0 PID: 6578 at fs/bcachefs/btree_iter.c:3209 check_srcu_held_too_long fs/bcachefs/btree_iter.c:3207 [inline] WARNING: CPU: 0 PID: 6578 at fs/bcachefs/btree_iter.c:3209 bch2_trans_srcu_unlock+0x522/0x5c0 fs/bcachefs/btree_iter.c:3223 Modules linked in: CPU: 0 UID: 0 PID: 6578 Comm: syz.4.189 Not tainted 6.15.0-rc1-next-20250411-syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:check_srcu_held_too_long fs/bcachefs/btree_iter.c:3207 [inline] RIP: 0010:bch2_trans_srcu_unlock+0x522/0x5c0 fs/bcachefs/btree_iter.c:3223 Code: 2b 3e 49 c1 ef 02 48 b9 c3 f5 28 5c 8f c2 f5 28 4c 89 f8 48 f7 e1 48 c1 ea 02 48 c7 c7 60 e7 92 8c 48 89 d6 e8 8f 94 27 fd 90 <0f> 0b 90 90 49 89 df e9 ae fe ff ff 44 89 e9 80 e1 07 fe c1 38 c1 RSP: 0018:ffffc9000c1fefe0 EFLAGS: 00010246 RAX: c3e1a3049fe2ad00 RBX: 1ffff1100f83680b RCX: 0000000000080000 RDX: ffffc9000cda3000 RSI: 0000000000041c32 RDI: 0000000000041c33 RBP: 00000000ffffcafd R08: ffffffff81829232 R09: 1ffffffff20c0836 R10: dffffc0000000000 R11: fffffbfff20c0837 R12: 1ffff1100f836814 R13: ffff88807c1b405a R14: ffff88807c1b40a0 R15: 0000000000000326 FS: 00007f326cb3e6c0(0000) GS:ffff888124f80000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb43a972c20 CR3: 00000000121fc000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bch2_trans_begin+0x1877/0x1d40 fs/bcachefs/btree_iter.c:3300 bch2_logged_op_start+0xe2/0x3f0 fs/bcachefs/logged_ops.c:93 bch2_truncate+0x1eb/0x340 fs/bcachefs/io_misc.c:297 bchfs_truncate+0x97b/0xc60 fs/bcachefs/fs-io.c:495 notify_change+0xbca/0xe90 fs/attr.c:552 do_truncate+0x222/0x310 fs/open.c:65 handle_truncate fs/namei.c:3470 [inline] do_open fs/namei.c:3853 [inline] path_openat+0x2e4f/0x35d0 fs/namei.c:4008 do_filp_open+0x284/0x4e0 fs/namei.c:4035 do_sys_openat2+0x12b/0x1d0 fs/open.c:1429 do_sys_open fs/open.c:1444 [inline] __do_sys_openat fs/open.c:1460 [inline] __se_sys_openat fs/open.c:1455 [inline] __x64_sys_openat+0x249/0x2a0 fs/open.c:1455 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f326bd8d169 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f326cb3e038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f326bfa5fa0 RCX: 00007f326bd8d169 RDX: 0000000000103a42 RSI: 0000200000000440 RDI: ffffffffffffff9c RBP: 00007f326be0e990 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000032 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f326bfa5fa0 R15: 00007ffda64cad48