sleepq_check_ast_sc_locked(): update comment

The relock order is important not only for a signal delivery, but also
for the suspension requests.

Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
Differential revision:	https://reviews.freebsd.org/D36207
This commit is contained in:
Konstantin Belousov 2022-08-12 03:19:36 +03:00
parent bd76586bb7
commit da39a100db

View File

@ -482,7 +482,7 @@ sleepq_check_ast_sc_locked(struct thread *td, struct sleepqueue_chain *sc)
* Lock the per-process spinlock prior to dropping the
* PROC_LOCK to avoid a signal delivery race.
* PROC_LOCK, PROC_SLOCK, and thread_lock() are
* currently held in tdsendsignal().
* currently held in tdsendsignal() and thread_single().
*/
PROC_SLOCK(p);
mtx_lock_spin(&sc->sc_lock);