Page MenuHomeFreeBSD

Avoid completing non-dump I/O requests after a panic.
AbandonedPublic

Authored by markj on May 27 2018, 9:38 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Oct 3, 6:00 AM
Unknown Object (File)
Sep 6 2025, 7:59 AM
Unknown Object (File)
Aug 26 2025, 9:09 AM
Unknown Object (File)
Aug 8 2025, 5:46 PM
Unknown Object (File)
Jul 1 2025, 4:23 AM
Unknown Object (File)
Jun 24 2025, 11:16 AM
Unknown Object (File)
Jun 23 2025, 3:17 AM
Unknown Object (File)
Jun 22 2025, 3:27 AM
Subscribers
None

Details

Reviewers
None
Summary

Currently we might call into filesystem or pager code when completing a
non-dump CCB, which typically results in assertion failures or
deadlocks when dumping. D4647 attempted to handle this with a dedicated
CAM doneq, but as was pointed out in the review, that solution may cause
us to fail to unfreeze the device after an error. Try to handle the
problem a different way: filter non-dump CCBs in xpt_done_process(), and
attempt to unfreeze the devq after an error if we're running after a
panic. Stash non-dump CCBs on a list so that they can be inspected
during a debugging session.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 16870
Build 16747: arc lint + arc unit