btree trans held srcu lock (delaying memory reclaim) for 21 seconds WARNING: CPU: 0 PID: 6380 at fs/bcachefs/btree_iter.c:3174 check_srcu_held_too_long fs/bcachefs/btree_iter.c:3174 [inline] WARNING: CPU: 0 PID: 6380 at fs/bcachefs/btree_iter.c:3174 check_srcu_held_too_long fs/bcachefs/btree_iter.c:3172 [inline] WARNING: CPU: 0 PID: 6380 at fs/bcachefs/btree_iter.c:3174 bch2_trans_srcu_unlock fs/bcachefs/btree_iter.c:3190 [inline] WARNING: CPU: 0 PID: 6380 at fs/bcachefs/btree_iter.c:3174 bch2_trans_srcu_unlock+0x4c6/0x5b0 fs/bcachefs/btree_iter.c:3179 Modules linked in: CPU: 0 UID: 0 PID: 6380 Comm: syz.1.66 Not tainted 6.15.0-rc2-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:3174 [inline] RIP: 0010:check_srcu_held_too_long fs/bcachefs/btree_iter.c:3172 [inline] RIP: 0010:bch2_trans_srcu_unlock fs/bcachefs/btree_iter.c:3190 [inline] RIP: 0010:bch2_trans_srcu_unlock+0x4c6/0x5b0 fs/bcachefs/btree_iter.c:3179 Code: cf 09 48 c7 c7 e0 d9 e1 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 0b 64 49 fd 90 <0f> 0b 90 90 e9 2a fe ff ff e8 5c d2 89 fd 90 0f 0b 90 e9 71 fe ff RSP: 0018:ffffc9000ad670e0 EFLAGS: 00010282 RAX: 0000000000000000 RBX: 00000000ffffd26c RCX: ffffc9000c36b000 RDX: 0000000000080000 RSI: ffffffff817ad005 RDI: 0000000000000001 RBP: ffff88804d3c8042 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 1ffff920015ace24 R13: 1ffffffff1c02240 R14: ffff88804d3c8000 R15: fffffffffffffbb0 FS: 00007f7595acd6c0(0000) GS:ffff8881249b9000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc04f1bd000 CR3: 0000000047de0000 CR4: 0000000000350ef0 Call Trace: bch2_trans_begin+0x116c/0x1500 fs/bcachefs/btree_iter.c:3267 bch2_gc_btree.constprop.0+0x1c5/0x1310 fs/bcachefs/btree_gc.c:677 bch2_gc_btrees+0x530/0xa20 fs/bcachefs/btree_gc.c:740 bch2_check_allocations+0x531/0x9f0 fs/bcachefs/btree_gc.c:1042 bch2_run_recovery_pass+0x91/0x1a0 fs/bcachefs/recovery_passes.c:226 bch2_run_recovery_passes+0x403/0x900 fs/bcachefs/recovery_passes.c:285 bch2_fs_recovery+0x296d/0x43e0 fs/bcachefs/recovery.c:936 bch2_fs_start+0x334/0x6c0 fs/bcachefs/super.c:1059 bch2_fs_get_tree+0xf0d/0x17f0 fs/bcachefs/fs.c:2253 vfs_get_tree+0x8e/0x340 fs/super.c:1759 do_new_mount fs/namespace.c:3879 [inline] path_mount+0x14d4/0x1f30 fs/namespace.c:4206 do_mount fs/namespace.c:4219 [inline] __do_sys_mount fs/namespace.c:4430 [inline] __se_sys_mount fs/namespace.c:4407 [inline] __x64_sys_mount+0x28d/0x310 fs/namespace.c:4407 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x260 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f7594b8e90a Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 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:00007f7595acce68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f7595accef0 RCX: 00007f7594b8e90a RDX: 00002000000000c0 RSI: 0000200000000180 RDI: 00007f7595acceb0 RBP: 00002000000000c0 R08: 00007f7595accef0 R09: 0000000000000010 R10: 0000000000000010 R11: 0000000000000246 R12: 0000200000000180 R13: 00007f7595acceb0 R14: 0000000000005953 R15: 0000200000000100