]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Call xpt_sim_poll in shutdown_final handler.
authorimp <imp@FreeBSD.org>
Mon, 13 Aug 2018 19:59:37 +0000 (19:59 +0000)
committerimp <imp@FreeBSD.org>
Mon, 13 Aug 2018 19:59:37 +0000 (19:59 +0000)
commitd8e4e552ec3ed7612d667db1a36010fa58b91fd0
treea158983e5c5a145b13b9844a97583b33ad6cfa3e
parentac2b4cbc15e8a3ade25aab9172dfeb87f21c3135
Call xpt_sim_poll in shutdown_final handler.

When we're shutting down, we send a number of start/stop commands to
the known targets. We have to wait for them to complete. During a
panic, the interrupts are off, and using pause to wait for them to
fire and complete won't work: we have to poll after pause returns so
the completion routines of the CCBs run so we decrement work
outstanding counts.

Sponsored by: Netflix
Differential Review: https://reviews.freebsd.org/D16663
sys/dev/mps/mps_sas_lsi.c