------------[ cut here ]------------ btree trans held srcu lock (delaying memory reclaim) for 47 seconds WARNING: CPU: 1 PID: 12130 at fs/bcachefs/btree_iter.c:3028 check_srcu_held_too_long fs/bcachefs/btree_iter.c:3028 [inline] WARNING: CPU: 1 PID: 12130 at fs/bcachefs/btree_iter.c:3028 check_srcu_held_too_long fs/bcachefs/btree_iter.c:3026 [inline] WARNING: CPU: 1 PID: 12130 at fs/bcachefs/btree_iter.c:3028 bch2_trans_put+0xc40/0xf30 fs/bcachefs/btree_iter.c:3274 Modules linked in: CPU: 1 UID: 0 PID: 12130 Comm: syz.1.1765 Not tainted 6.12.0-rc7-syzkaller-00187-gf868cd251776 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/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_put+0xc40/0xf30 fs/bcachefs/btree_iter.c:3274 Code: e9 09 48 c7 c7 20 a6 bf 8b 48 b8 c3 f5 28 5c 8f c2 f5 28 48 29 ea 48 c1 ea 02 48 f7 e2 48 c1 ea 02 48 89 d6 e8 21 2b 57 fd 90 <0f> 0b 90 90 e9 1e ff ff ff e8 82 38 96 fd 4c 89 f2 4c 89 e3 48 b8 RSP: 0018:ffffc90002fbf558 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffff8880247e0042 RCX: ffffc90004c21000 RDX: 0000000000040000 RSI: ffffffff814e6e86 RDI: 0000000000000001 RBP: 000000010000afec R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 1ffffffff1bc1e40 R13: ffff8880247e0000 R14: fffffffffffff17f R15: 0000000000000000 FS: 00007fa0adbde6c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f482584c8be CR3: 0000000034426000 CR4: 0000000000350ef0 Call Trace: bch2_dev_usage_init+0x25b/0x480 fs/bcachefs/disk_accounting.c:859 bch2_gc_start fs/bcachefs/btree_gc.c:764 [inline] bch2_check_allocations+0x3be/0xa30 fs/bcachefs/btree_gc.c:1120 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:0x7fa0acd7feba 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:00007fa0adbdde68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fa0adbddef0 RCX: 00007fa0acd7feba RDX: 00000000200000c0 RSI: 0000000020000000 RDI: 00007fa0adbddeb0 RBP: 00000000200000c0 R08: 00007fa0adbddef0 R09: 0000000000800000 R10: 0000000000800000 R11: 0000000000000246 R12: 0000000020000000 R13: 00007fa0adbddeb0 R14: 0000000000005913 R15: 0000000020000480