]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
pst: improve shutdown_post_sync handler
authorMitchell Horne <mhorne@FreeBSD.org>
Thu, 23 Nov 2023 15:59:05 +0000 (11:59 -0400)
committerMitchell Horne <mhorne@FreeBSD.org>
Thu, 23 Nov 2023 20:19:40 +0000 (16:19 -0400)
commitc4dacfa7f4b82f23ec0924d9db772860b2066f9b
treec1c226777b65b6f011cba20e80af2ac2fbcba942
parent7aa3bf6952b2c7d1b02d3a67e7f51b96fcf52b50
pst: improve shutdown_post_sync handler

It is desirable to shut down the raid controller even in the face of a
panic. In the SCHEDULER_STOPPED() case, set the interrupt mask bits so
that we request a polled wait, rather than sleep(), from
iop_queue_wait_msg().

Tweak the function name and signature.

Reviewed by: markj
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D42337
sys/dev/pst/pst-iop.c
sys/dev/pst/pst-raid.c