HomeFreeBSD

MFC r362337: Make polled request timeout less invasive.

Description

MFC r362337: Make polled request timeout less invasive.

Instead of panic after one second of polling, make the normal timeout
handler to activate, reset the controller and abort the outstanding
requests. If all of it won't happen within 10 seconds then something
in the driver is likely stuck bad and panic is the only way out.

In particular this fixed device hot unplug during execution of those
polled commands, allowing clean device detach instead of panic.

Details

Provenance
mavAuthored on
Parents
rS362578: MFC r362282: Fix admin qpair leak if detached during initial reset.
Branches
Unknown
Tags
Unknown