------------[ cut here ]------------ btree trans held srcu lock (delaying memory reclaim) for 13 seconds WARNING: CPU: 0 PID: 8846 at fs/bcachefs/btree_iter.c:3028 check_srcu_held_too_long fs/bcachefs/btree_iter.c:3028 [inline] WARNING: CPU: 0 PID: 8846 at fs/bcachefs/btree_iter.c:3028 check_srcu_held_too_long fs/bcachefs/btree_iter.c:3026 [inline] WARNING: CPU: 0 PID: 8846 at fs/bcachefs/btree_iter.c:3028 bch2_trans_srcu_unlock fs/bcachefs/btree_iter.c:3044 [inline] WARNING: CPU: 0 PID: 8846 at fs/bcachefs/btree_iter.c:3028 bch2_trans_srcu_unlock+0x4b6/0x5a0 fs/bcachefs/btree_iter.c:3033 Modules linked in: CPU: 0 UID: 0 PID: 8846 Comm: syz.9.896 Not tainted 6.12.0-syzkaller-09734-g445d9f05fa14 #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:check_srcu_held_too_long fs/bcachefs/btree_iter.c:3026 [inline] RIP: 0010:bch2_trans_srcu_unlock fs/bcachefs/btree_iter.c:3044 [inline] RIP: 0010:bch2_trans_srcu_unlock+0x4b6/0x5a0 fs/bcachefs/btree_iter.c:3033 Code: e5 09 48 c7 c7 c0 ce bf 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 6b 8a 53 fd 90 <0f> 0b 90 90 e9 21 fe ff ff e8 7c 4a 93 fd 90 0f 0b 90 e9 68 fe ff RSP: 0018:ffffc9000b7bf408 EFLAGS: 00010282 RAX: 0000000000000000 RBX: 00000000ffffd932 RCX: ffffc900156f5000 RDX: 0000000000080000 RSI: ffffffff814f0d66 RDI: 0000000000000001 RBP: ffffffff8de10200 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 000000002d2d2d2d R12: ffff88807b96c042 R13: fffffffffffffec1 R14: ffff88807b96c000 R15: 0000000000000040 FS: 00007f64bae656c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055556e01c5c8 CR3: 00000000286f6000 CR4: 0000000000350ef0 Call Trace: bch2_trans_begin+0xefa/0x11e0 fs/bcachefs/btree_iter.c:3121 bch2_gc_alloc_done+0x394/0x910 fs/bcachefs/btree_gc.c:897 bch2_check_allocations+0x5a6/0xa30 fs/bcachefs/btree_gc.c:1139 bch2_run_recovery_pass+0x91/0x1a0 fs/bcachefs/recovery_passes.c:191 bch2_run_recovery_passes+0x49b/0x780 fs/bcachefs/recovery_passes.c:244 bch2_fs_recovery+0x2358/0x4030 fs/bcachefs/recovery.c:861 bch2_fs_start+0x2e9/0x5f0 fs/bcachefs/super.c:1037 bch2_fs_get_tree+0x10db/0x16f0 fs/bcachefs/fs.c:2170 vfs_get_tree+0x92/0x380 fs/super.c:1814 do_new_mount fs/namespace.c:3507 [inline] path_mount+0x14e6/0x1f20 fs/namespace.c:3834 do_mount fs/namespace.c:3847 [inline] __do_sys_mount fs/namespace.c:4057 [inline] __se_sys_mount fs/namespace.c:4034 [inline] __x64_sys_mount+0x294/0x320 fs/namespace.c:4034 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f64b9f81faa 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:00007f64bae64e88 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f64bae64f10 RCX: 00007f64b9f81faa RDX: 00000000200000c0 RSI: 0000000020000180 RDI: 00007f64bae64ed0 RBP: 00000000200000c0 R08: 00007f64bae64f10 R09: 0000000000000010 R10: 0000000000000010 R11: 0000000000000246 R12: 0000000020000180 R13: 00007f64bae64ed0 R14: 0000000000005951 R15: 0000000020000000