HomeFreeBSD

isp: Fix abort issue introduced by previous commit

Description

isp: Fix abort issue introduced by previous commit

Aborting ATIO while its CTIOs are in progress makes impossible to
handle their completions, making them stuck forever. Detect this
case by checking ctcnt counter and if so instead of aborting just
mark the ATIO as dead to block any new CTIOs. It is not perfect
since the task id can not be reused for some more time, but not
as bad as the task stuck forever.

MFC after: 1 week

Details

Provenance
mavAuthored on Wed, Jan 8, 6:23 PM
Parents
rGe6c96c7af717: Revert "isp: Fix abort issue introduced by previous commit"
Branches
Unknown
Tags
Unknown