Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@amotin
Copy link
Collaborator

@amotin amotin commented Jan 8, 2025

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.

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)
@amotin amotin requested a review from ixhamza January 8, 2025 18:41
@bugclerk bugclerk changed the title isp: Fix abort issue introduced by previous commit NAS-133472 / None / isp: Fix abort issue introduced by previous commit Jan 8, 2025
@bugclerk
Copy link

bugclerk commented Jan 8, 2025

@amotin amotin merged commit 9dc2dc9 into truenas/13-stable Jan 8, 2025
@amotin amotin deleted the NAS-133472 branch January 8, 2025 19:16
@bugclerk
Copy link

bugclerk commented Jan 8, 2025

Not updating JIRA ticket https://ixsystems.atlassian.net/browse/NAS-133472 target versions as no JIRA version corresponds to this PR

@bugclerk
Copy link

bugclerk commented Jan 8, 2025

This PR has been merged and conversations have been locked.
If you would like to discuss more about this issue please use our forums or raise a Jira ticket.

@truenas truenas locked as resolved and limited conversation to collaborators Jan 8, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants