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.
ab1268efc3Andrew Kelley committed on 1/30/2026, 8:10:01 PMparent8a98523