]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sig_intr(9): return early if AST is not scheduled.
authorKonstantin Belousov <kib@FreeBSD.org>
Thu, 8 Oct 2020 22:34:34 +0000 (22:34 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Thu, 8 Oct 2020 22:34:34 +0000 (22:34 +0000)
commit203dda8a636c46efa6d2b7587507c9a503668aaa
tree6291b38af789a6af46825e636325f8b75c2e092c
parent4ea49660099c288517d9321f3ed40ff4e9d42cfc
sig_intr(9): return early if AST is not scheduled.

Check td_flags for relevant AST requests lock-less.  This opens the
race slightly wider where sig_intr() returns false negative, but might
be it is worth it.

Requested by: mjg
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
sys/kern/kern_sig.c