------------[ cut here ]------------ btree trans held srcu lock (delaying memory reclaim) for 12 seconds WARNING: CPU: 1 PID: 5387 at fs/bcachefs/btree_iter.c:2998 check_srcu_held_too_long fs/bcachefs/btree_iter.c:2996 [inline] WARNING: CPU: 1 PID: 5387 at fs/bcachefs/btree_iter.c:2998 bch2_trans_put+0xdd0/0x1030 fs/bcachefs/btree_iter.c:3243 Modules linked in: CPU: 1 PID: 5387 Comm: syz-executor.4 Not tainted 6.10.0-rc3-syzkaller-00044-g2ccbdf43d5e7 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 RIP: 0010:check_srcu_held_too_long fs/bcachefs/btree_iter.c:2996 [inline] RIP: 0010:bch2_trans_put+0xdd0/0x1030 fs/bcachefs/btree_iter.c:3243 Code: 2b 1e 48 c1 eb 02 48 b9 c3 f5 28 5c 8f c2 f5 28 48 89 d8 48 f7 e1 48 c1 ea 02 48 c7 c7 e0 8e 11 8c 48 89 d6 e8 11 1c 44 fd 90 <0f> 0b 90 90 e9 e2 f7 ff ff e8 72 ed 81 fd 90 0f 0b 90 e9 25 f8 ff RSP: 0018:ffffc90004586748 EFLAGS: 00010246 RAX: 0db759bf707cde00 RBX: 0000000000000138 RCX: 0000000000040000 RDX: ffffc9000b2d6000 RSI: 000000000003385c RDI: 000000000003385d RBP: dffffc0000000000 R08: ffffffff81585822 R09: fffffbfff1c39994 R10: dffffc0000000000 R11: fffffbfff1c39994 R12: 1ffff1100a470008 R13: 1ffff1100a47000e R14: ffff888052380070 R15: ffff888052380041 FS: 00007fc5a81ff6c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000562e9fa79108 CR3: 0000000022eee000 CR4: 0000000000350ef0 Call Trace: bch2_write_index_default fs/bcachefs/io_write.c:391 [inline] __bch2_write_index+0x1751/0x2190 fs/bcachefs/io_write.c:527 __bch2_write+0x54cc/0x5c40 fs/bcachefs/io_write.c:1509 bch2_write+0x947/0x1670 fs/bcachefs/io_write.c:1634 closure_queue include/linux/closure.h:269 [inline] closure_call include/linux/closure.h:402 [inline] bch2_dio_write_loop fs/bcachefs/fs-io-direct.c:531 [inline] bch2_direct_write+0x1a52/0x3050 fs/bcachefs/fs-io-direct.c:654 bch2_write_iter+0x206/0x2840 fs/bcachefs/fs-io-buffered.c:1135 iter_file_splice_write+0xbd9/0x14e0 fs/splice.c:743 do_splice_from fs/splice.c:941 [inline] direct_splice_actor+0x120/0x220 fs/splice.c:1164 splice_direct_to_actor+0x590/0xc90 fs/splice.c:1108 do_splice_direct_actor fs/splice.c:1207 [inline] do_splice_direct+0x28c/0x3e0 fs/splice.c:1233 do_sendfile+0x56d/0xe10 fs/read_write.c:1295 __do_sys_sendfile64 fs/read_write.c:1362 [inline] __se_sys_sendfile64+0x17c/0x1e0 fs/read_write.c:1348 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:0x7fc5a867cf29 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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:00007fc5a81ff0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007fc5a87b4050 RCX: 00007fc5a867cf29 RDX: 0000000000000000 RSI: 0000000000000007 RDI: 0000000000000007 RBP: 00007fc5a86ec074 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000800000008 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007fc5a87b4050 R15: 00007ffccaaad0d8