Konstantin Belousov 8f01bee46b Revive the check, disabled in r197963.
Despite the implication (process has pending signals -> the current
thread marked for AST and has TDF_NEEDSIGCHK set) is not true due to
other thread might manipulate its signal blocking mask, it should still
hold for the single-threaded processes.  Enable check for the condition
for single-threaded case, and replicate it from userret() to ast() as
well, where we check that ast indeed has no signal to deliver.

Note that the check is under DIAGNOSTIC, it is not enabled for INVARIANTS
but !DIAGNOSTIC since it imposes too heavy-weight locking for day-to-day
used debugging kernel.

Tested by:	pho
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
2016-07-12 03:53:15 +00:00
..
2015-04-22 14:38:58 +00:00
2016-06-09 18:27:41 +00:00
2016-02-23 23:37:10 +00:00
2015-01-22 11:12:42 +00:00
2016-04-29 22:15:33 +00:00
2015-03-17 14:16:50 +00:00
2016-04-14 17:07:26 +00:00
2016-04-29 21:54:28 +00:00
2016-07-11 17:04:22 +00:00