The defer would cause 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.
2fb224cb84Andrew Kelley committed on 1/31/2026, 6:03:14 AMparentefa502a