]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
cam: Avoiding waking up doneq threads if we're dumping
authorMark Johnston <markj@FreeBSD.org>
Sat, 25 Sep 2021 14:13:56 +0000 (10:13 -0400)
committerMark Johnston <markj@FreeBSD.org>
Sat, 25 Sep 2021 14:15:03 +0000 (10:15 -0400)
commited8ef7ae8b05d9f73db2182b5e24b0b76b0783a2
tree52052a82274ce47fde6c87585322e893c6650504
parent24a3897c2c3205c2ec0cf323c555c403d3171e2c
cam: Avoiding waking up doneq threads if we're dumping

Depending on the state of the target doneq thread at the time of the
panic, the wakeup can hang indefinitely in thread_lock_block_wait().
That function should likely be modified to return immediately if the
scheduler is stopped, but it is also preferable to avoid wakeups in
general after a panic.

Reported by: pho
Reviewed by: mav, imp
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D32126
sys/cam/cam_xpt.c