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

(cherry picked from commit 2c48a8f161c91bf7020122697d064a25287097a3)

Details

Provenance
mavAuthored on Wed, Jan 8, 6:23 PM
Parents
rGf81286d19230: makefs: Exit with error if writing cd image fails
Branches
Unknown
Tags
Unknown