------------[ cut here ]------------ test_bit(BTRFS_FS_STATE_NO_DELAYED_IPUT, &fs_info->fs_state) WARNING: fs/btrfs/inode.c:3419 at btrfs_add_delayed_iput+0x2e0/0x340 fs/btrfs/inode.c:3419, CPU#0: kworker/u8:0/12 Modules linked in: CPU: 0 UID: 0 PID: 12 Comm: kworker/u8:0 Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026 Workqueue: btrfs-endio-write btrfs_work_helper RIP: 0010:btrfs_add_delayed_iput+0x2e0/0x340 fs/btrfs/inode.c:3419 Code: 96 6a 44 fe 48 8b 3b 48 83 c4 08 5b 41 5c 41 5d 41 5e 41 5f 5d e9 a0 ea a9 fd e8 cb 64 db fd e9 f8 fd ff ff e8 c1 64 db fd 90 <0f> 0b 90 e9 52 fe ff ff 44 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c 84 RSP: 0018:ffffc90000117808 EFLAGS: 00010293 RAX: ffffffff83e9829f RBX: ffff8880353f0000 RCX: ffff88801ce80000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: dffffc0000000000 R08: 0000000000000000 R09: 0000000000000000 R10: dffffc0000000000 R11: ffffed1006a7e4a6 R12: 0000000000000001 R13: dffffc0000000000 R14: ffff8880690a4788 R15: 0000000000000200 FS: 0000000000000000(0000) GS:ffff88812615d000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f02ecb394e8 CR3: 000000006292e000 CR4: 00000000003526f0 Call Trace: btrfs_put_ordered_extent+0x18a/0x420 fs/btrfs/ordered-data.c:642 btrfs_finish_one_ordered+0xf7f/0x1f00 fs/btrfs/inode.c:3256 btrfs_work_helper+0x338/0xc30 fs/btrfs/async-thread.c:312 process_one_work kernel/workqueue.c:3322 [inline] process_scheduled_works+0xa8e/0x14e0 kernel/workqueue.c:3405 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3486 kthread+0x388/0x470 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245