------------[ cut here ]------------
btree trans held srcu lock (delaying memory reclaim) for 47 seconds
WARNING: CPU: 1 PID: 8168 at fs/bcachefs/btree_iter.c:3276 bch2_trans_srcu_unlock+0x50d/0x620
Modules linked in:
CPU: 1 UID: 0 PID: 8168 Comm: kworker/u13:3 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Workqueue: bcachefs bch2_write_point_do_index_updates
RIP: 0010:bch2_trans_srcu_unlock+0x50d/0x620
Code: 7d 00 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 e0 b7 d3 8b 48 89 d6 e8 c4 0f 5a fd 90 <0f> 0b 90 90 e9 a6 fe ff ff 44 89 e1 80 e1 07 38 c1 0f 8c 1c fb ff
RSP: 0018:ffffc90004dcf518 EFLAGS: 00010246
RAX: 3378f211ce5d8f00 RBX: 1ffff11005328009 RCX: ffff888107469cc0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000002
RBP: 1ffff11005328011 R08: ffff888136624253 R09: 1ffff11026cc484a
R10: dffffc0000000000 R11: ffffed1026cc484b R12: ffff888029940046
R13: ffff888029940088 R14: 1ffff11005328008 R15: 00000000000004a8
FS:  0000000000000000(0000) GS:ffff8881a3c18000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe1d1c00218 CR3: 000000000df36000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 bch2_trans_begin+0x1b3b/0x2310
 __bch2_write_index+0x3ed/0x1930
 bch2_write_point_do_index_updates+0x43f/0x570
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30
 </TASK>
