Refine r301173 a bit.
authormarkj <markj@FreeBSD.org>
Mon, 27 Mar 2017 16:25:58 +0000 (16:25 +0000)
committermarkj <markj@FreeBSD.org>
Mon, 27 Mar 2017 16:25:58 +0000 (16:25 +0000)
commit4740c5564ab7a7cd872bee981e40d723eb174fc1
tree8be4ab2b5a299ad2d566d298c62a496f0b29144a
parentd294fb49c0fd9edb6d36203db42a166194766283
Refine r301173 a bit.

- Don't execute any of g_mirror_shutdown_post_sync() when panicking. We
  cannot safely idle the mirror or stop synchronization in that state, and
  the current attempts to do so complicate debugging of gmirror itself.
- Check for a non-NULL panicstr instead of using SCHEDULER_STOPPED(). The
  latter was added for use in the locking primitives.

Reviewed by: mav, pjd
MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
sys/geom/mirror/g_mirror.c