BTRFS error (device loop1): failed to run delayed ref for logical 5378048 num_bytes 8192 type 178 action 1 ref_mod 1: -2
------------[ cut here ]------------
BTRFS: Transaction aborted (error -2)
WARNING: fs/btrfs/extent-tree.c:2247 at btrfs_run_delayed_refs+0x30b/0x3b0, CPU#1: syz-executor/5807
Modules linked in:
CPU: 1 UID: 0 PID: 5807 Comm: syz-executor 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
RIP: 0010:btrfs_run_delayed_refs+0x30e/0x3b0
Code: 85 e4 75 07 e8 53 d0 e1 fd eb 7a e8 dc e2 c6 fd 84 c0 74 20 e8 43 d0 e1 fd eb 6a e8 3c d0 e1 fd 48 8d 3d a5 f6 36 0c 44 89 fe <67> 48 0f b9 3a e9 0b ff ff ff e8 33 49 cb 07 41 89 c4 31 ff 89 c6
RSP: 0018:ffffc9000485f998 EFLAGS: 00010293
RAX: ffffffff83e3deb4 RBX: ffff8881b7317a68 RCX: ffff88816ea09d40
RDX: 0000000000000000 RSI: 00000000fffffffe RDI: ffffffff901ad560
RBP: 0000000000000000 R08: ffff88816ea09d40 R09: 0000000000000003
R10: 00000000fffffffb R11: 0000000000000000 R12: ffff8881b6d6c001
R13: ffff8881b6b1b000 R14: dffffc0000000000 R15: 00000000fffffffe
FS:  00005555807c4500(0000) GS:ffff8882a9457000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005555807dfa28 CR3: 0000000175d32000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 btrfs_commit_transaction+0x29a/0x31a0
 sync_filesystem+0x1cf/0x230
 generic_shutdown_super+0x77/0x2d0
 kill_anon_super+0x3b/0x70
 btrfs_kill_super+0x41/0x50
 deactivate_locked_super+0xbc/0x130
 cleanup_mnt+0x437/0x4d0
 task_work_run+0x1d9/0x270
 exit_to_user_mode_loop+0xed/0x480
 do_syscall_64+0x32d/0xf80
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fca6c39da57
Code: a2 c7 05 9c fc 24 00 00 00 00 00 eb 96 e8 e1 12 00 00 90 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8
RSP: 002b:00007fffde8910d8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 00007fca6c432048 RCX: 00007fca6c39da57
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007fffde891190
RBP: 00007fffde891190 R08: 00007fffde892190 R09: 00000000ffffffff
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fffde892220
R13: 00007fca6c432048 R14: 000000000000fe8a R15: 00007fffde892260
 </TASK>
