btree trans held srcu lock (delaying memory reclaim) for 29 seconds WARNING: CPU: 3 PID: 5330 at fs/bcachefs/btree_iter.c:2996 check_srcu_held_too_long fs/bcachefs/btree_iter.c:2996 [inline] WARNING: CPU: 3 PID: 5330 at fs/bcachefs/btree_iter.c:2996 check_srcu_held_too_long fs/bcachefs/btree_iter.c:2994 [inline] WARNING: CPU: 3 PID: 5330 at fs/bcachefs/btree_iter.c:2996 bch2_trans_srcu_unlock fs/bcachefs/btree_iter.c:3012 [inline] WARNING: CPU: 3 PID: 5330 at fs/bcachefs/btree_iter.c:2996 bch2_trans_srcu_unlock+0x4b3/0x590 fs/bcachefs/btree_iter.c:3001 Modules linked in: CPU: 3 PID: 5330 Comm: syz-executor.2 Not tainted 6.10.0-rc4-syzkaller-00148-g50736169ecc8 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 RIP: 0010:check_srcu_held_too_long fs/bcachefs/btree_iter.c:2996 [inline] RIP: 0010:check_srcu_held_too_long fs/bcachefs/btree_iter.c:2994 [inline] RIP: 0010:bch2_trans_srcu_unlock fs/bcachefs/btree_iter.c:3012 [inline] RIP: 0010:bch2_trans_srcu_unlock+0x4b3/0x590 fs/bcachefs/btree_iter.c:3001 Code: 91 09 48 c7 c7 e0 48 7e 8b 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 6e 63 60 fd 90 <0f> 0b 90 90 e9 24 fe ff ff e8 ff 49 9e fd 90 0f 0b 90 e9 6b fe ff RSP: 0018:ffffc900037a7690 EFLAGS: 00010282 RAX: 0000000000000000 RBX: 00000000ffff9f18 RCX: ffffc900060ae000 RDX: 0000000000040000 RSI: ffffffff81500076 RDI: 0000000000000001 RBP: ffffffff8d80f200 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000003 R12: ffff888025f14041 R13: fffffffffffff890 R14: ffff888025f14000 R15: 0000000000000040 FS: 00007f602b5dc6c0(0000) GS:ffff88806b300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2cd45000 CR3: 00000000275a4000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bch2_trans_begin+0x101b/0x1330 fs/bcachefs/btree_iter.c:3089 __bchfs_fallocate+0x466/0x15d0 fs/bcachefs/fs-io.c:611 bchfs_fallocate fs/bcachefs/fs-io.c:736 [inline] bch2_fallocate_dispatch+0x74b/0xf70 fs/bcachefs/fs-io.c:783 vfs_fallocate+0x4b8/0xfb0 fs/open.c:330 ioctl_preallocate+0x1a8/0x220 fs/ioctl.c:291 file_ioctl fs/ioctl.c:336 [inline] do_vfs_ioctl+0x153d/0x1ad0 fs/ioctl.c:886 __do_sys_ioctl fs/ioctl.c:905 [inline] __se_sys_ioctl fs/ioctl.c:893 [inline] __x64_sys_ioctl+0x116/0x220 fs/ioctl.c:893