------------[ cut here ]------------ btree trans held srcu lock (delaying memory reclaim) for 31 seconds WARNING: CPU: 1 PID: 7287 at fs/bcachefs/btree_iter.c:3030 check_srcu_held_too_long fs/bcachefs/btree_iter.c:3028 [inline] WARNING: CPU: 1 PID: 7287 at fs/bcachefs/btree_iter.c:3030 bch2_trans_srcu_unlock+0x516/0x5c0 fs/bcachefs/btree_iter.c:3044 Modules linked in: CPU: 1 UID: 0 PID: 7287 Comm: syz.0.162 Not tainted 6.12.0-syzkaller-09073-g9f16d5e6f220 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:check_srcu_held_too_long fs/bcachefs/btree_iter.c:3028 [inline] RIP: 0010:bch2_trans_srcu_unlock+0x516/0x5c0 fs/bcachefs/btree_iter.c:3044 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 9d 52 8c 48 89 d6 e8 ab 7b 3b 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:ffffc9000bc9f060 EFLAGS: 00010246 RAX: 4df094590de27c00 RBX: 1ffff1100b631808 RCX: 0000000000080000 RDX: ffffc90005029000 RSI: 000000000001d750 RDI: 000000000001d751 RBP: 00000000ffffcac2 R08: ffffffff815687d2 R09: 1ffff110170e519a R10: dffffc0000000000 R11: ffffed10170e519b R12: 1ffff1100b63180e R13: ffff88805b18c042 R14: ffff88805b18c070 R15: 000000000000030d FS: 00007fd0950516c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005639e9b6f35a CR3: 000000003433a000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bch2_trans_begin+0x178c/0x1c00 fs/bcachefs/btree_iter.c:3121 bch2_remap_range+0xd5d/0x50b0 fs/bcachefs/reflink.c:470 bch2_remap_file_range+0x8f3/0xf60 fs/bcachefs/fs-io.c:880 vfs_copy_file_range+0xc07/0x1510 fs/read_write.c:1584 __do_sys_copy_file_range fs/read_write.c:1670 [inline] __se_sys_copy_file_range+0x3fa/0x600 fs/read_write.c:1637 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:0x7fd09417e819 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:00007fd095051038 EFLAGS: 00000246 ORIG_RAX: 0000000000000146 RAX: ffffffffffffffda RBX: 00007fd094335fa0 RCX: 00007fd09417e819 RDX: 0000000000000007 RSI: 0000000000000000 RDI: 0000000000000008 RBP: 00007fd0941f175e R08: 0000000000003df1 R09: 0000000000000000 R10: 00000000200000c0 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fd094335fa0 R15: 00007ffc51c052c8