Skip to content

zpool stalls and is unkillable after attempting to import pool of unallocated volume #609

Description

@Wormsweat

System information

Type Version/Name
Distribution Name Windows 10
Distribution Version 22H2 (build 19045.7417)
Kernel Version 10.0.19041.7417
Architecture x64
OpenZFS Version zfswin-2.4.1rc12

Describe the problem you're observing

A thread in zpool.exe stalled on I/O. Its thread was at 0% CPU at the time and there were no openzfs.sys or openzvol.sys or any other kernel threads consistently at 100% of a CPU core at the time. I was unable to debug it, because I attempted to end the process before attempting to debug it. I attempted to cancel I/O through System Informer, but System Informer also stalled and became unkillable.

Describe how to reproduce the problem

I mounted a pool from a USB drive then deleted all the volumes through Disk Management while it's mounted disregarding any warnings then unmounted the pool then unplugged and plugged the drive in again, mounted it again, then zpool got stuck when importing it.

Include any warning/errors/backtraces from the system logs

This is a stack I got of the stalled zpool thread captured by System Informer:

0, ntdll.dll!NtDeviceIoControlFile+0x14
1, bdhkm64.dll+0x1ded
2, bdhkm64.dll!BdhkmIsApiInDllImports+0xb06a
3, bdhkm64.dll!BdhkmIsApiInDllImports+0x5ef2
4, 0x7ff43e0b10ce
5, KernelBase.dll!DeviceIoControl+0x6b
6, kernel32.dll!DeviceIoControlImplementation+0x81
7, zpool.exe+0xb5944
8, zpool.exe+0xb5821
9, zpool.exe+0xb07e1
10, zpool.exe+0x860a8
11, zpool.exe+0x718d7
12, zpool.exe+0x75c8b
13, zpool.exe+0x71dbd
14, zpool.exe+0x2f2cc
15, zpool.exe+0x268b3
16, zpool.exe+0xd8b909
17, zpool.exe+0xd8b7b2
18, zpool.exe+0xd8b66e
19, zpool.exe+0xd8b99e
20, kernel32.dll!BaseThreadInitThunk+0x14
21, ntdll.dll!RtlUserThreadStart+0x21

System Informer also printed this when analyzing the thread: "Unable to determine why the thread is waiting."

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions