HomeFreeBSD

cam: Avoiding waking up doneq threads if we're dumping

Description

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

Details

Provenance
markjAuthored on Sep 25 2021, 2:13 PM
Reviewer
mav
Differential Revision
D32126: cam: Avoiding waking up doneq threads if we're dumping
Parents
rG24a3897c2c32: x86 bounce_bus_dmamem_alloc(): use malloc_aligned() only when possible
Branches
Unknown
Tags
Unknown