------------[ cut here ]------------ btree trans held srcu lock (delaying memory reclaim) for 31 seconds WARNING: CPU: 0 PID: 5233 at fs/bcachefs/btree_iter.c:3002 check_srcu_held_too_long fs/bcachefs/btree_iter.c:3000 [inline] WARNING: CPU: 0 PID: 5233 at fs/bcachefs/btree_iter.c:3002 bch2_trans_srcu_unlock+0x513/0x5b0 fs/bcachefs/btree_iter.c:3016 Modules linked in: CPU: 0 UID: 0 PID: 5233 Comm: syz-executor260 Not tainted 6.11.0-syzkaller-04744-gbdf56c7580d2 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 RIP: 0010:check_srcu_held_too_long fs/bcachefs/btree_iter.c:3000 [inline] RIP: 0010:bch2_trans_srcu_unlock+0x513/0x5b0 fs/bcachefs/btree_iter.c:3016 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 00 17 52 8c 48 89 d6 e8 fe 28 43 fd 90 <0f> 0b 90 90 49 89 df e9 b1 fe ff ff 44 89 e9 80 e1 07 fe c1 38 c1 RSP: 0018:ffffc90003eb7040 EFLAGS: 00010246 RAX: ac69ab7f8086e100 RBX: 1ffff1100eab9008 RCX: ffff88802ddf3c00 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00000000ffffaa25 R08: ffffffff8155af72 R09: 1ffff1101710519a R10: dffffc0000000000 R11: ffffed101710519b R12: 1ffff1100eab900e R13: ffff8880755c8042 R14: ffff8880755c8070 R15: 000000000000030c FS: 00007f58643bc6c0(0000) GS:ffff8880b8800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055dc5db95888 CR3: 00000000746ae000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bch2_trans_begin+0x15dd/0x1a50 fs/bcachefs/btree_iter.c:3093 bch2_logged_op_start+0xd0/0x310 fs/bcachefs/logged_ops.c:83 bch2_truncate+0x1a4/0x2c0 fs/bcachefs/io_misc.c:291 bchfs_truncate+0x92b/0xc70 fs/bcachefs/fs-io.c:483 notify_change+0xbca/0xe90 fs/attr.c:503 do_truncate+0x220/0x310 fs/open.c:65 handle_truncate fs/namei.c:3395 [inline] do_open fs/namei.c:3778 [inline] path_openat+0x2e1e/0x3590 fs/namei.c:3933 do_filp_open+0x235/0x490 fs/namei.c:3960 do_sys_openat2+0x13e/0x1d0 fs/open.c:1415 do_sys_open fs/open.c:1430 [inline] __do_sys_creat fs/open.c:1506 [inline] __se_sys_creat fs/open.c:1500 [inline] __x64_sys_creat+0x123/0x170 fs/open.c:1500 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f58644278c9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 81 18 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f58643bc218 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f58644b46b8 RCX: 00007f58644278c9 RDX: 00007f58644278c9 RSI: 0000000000000000 RDI: 0000000020000e00 RBP: 00007f58644b46b0 R08: 0000000000000000 R09: 0000000000000000 R10: 00007ffc9b16cb37 R11: 0000000000000246 R12: 00007f5864480e98 R13: 0030656c69662f2e R14: 3d72656e776f662c R15: 7366656863616362