The defer causes two problems:
1. keeping the state active during call to NtCancelIoFile
2. invalid state transition. after canceled is returned from
checkCancel, new status is already canceled. calling finish after
that is illegal.
1e188d790aAndrew Kelley committed on 1/27/2026, 11:32:34 PMparent15e73c7