------------[ cut here ]------------
btree trans held srcu lock (delaying memory reclaim) for 13 seconds
WARNING: CPU: 0 PID: 37 at fs/bcachefs/btree_iter.c:3276 bch2_trans_put+0xf90/0x1220
Modules linked in:
CPU: 0 UID: 0 PID: 37 Comm: kworker/R-write 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: writeback wb_workfn (flush-bcachefs-306)
RIP: 0010:bch2_trans_put+0xf90/0x1220
Code: 2b 33 49 c1 ee 02 48 b9 c3 f5 28 5c 8f c2 f5 28 4c 89 f0 48 f7 e1 48 c1 ea 02 48 c7 c7 e0 b5 d3 8b 48 89 d6 e8 11 04 5a fd 90 <0f> 0b 90 90 e9 98 f7 ff ff e8 02 65 96 fd 90 0f 0b 90 e9 de f7 ff
RSP: 0018:ffffc900006bec60 EFLAGS: 00010246
RAX: 332355fa1f443c00 RBX: ffff888112ec4088 RCX: ffff8881001a5640
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000002
RBP: ffffc900006bedd0 R08: ffff88804b024253 R09: 1ffff1100960484a
R10: dffffc0000000000 R11: ffffed100960484b R12: 00000001000049ba
R13: 1ffff110225d8811 R14: 000000000000015d R15: 1ffff110225d8809
FS:  0000000000000000(0000) GS:ffff8880b861b000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffcd342de58 CR3: 0000000107bf6000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 __bch2_write+0x788/0x3900
 bch2_writepages+0x211/0x2d0
 do_writepages+0x32e/0x550
 __writeback_single_inode+0x145/0xff0
 writeback_sb_inodes+0x6c7/0x1010
 __writeback_inodes_wb+0x111/0x240
 writeback_inodes_wb+0x165/0x1e0
 wb_workfn+0xeb0/0xef0
 process_scheduled_works+0xae1/0x17b0
 rescuer_thread+0x53c/0xdd0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30
 </TASK>
