diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2016-07-03 18:19:48 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2016-07-03 18:19:48 +0000 |
commit | 46e47c4f8ddb5fa7b87399e5b4288a88139567de (patch) | |
tree | 785f4b49e87051d06f5552e5a6a06145dc697b2e /share/numericdef/Makefile | |
parent | b943c77347452f3d5da6c43a7caac9b1c83729a2 (diff) | |
download | src-46e47c4f8ddb5fa7b87399e5b4288a88139567de.tar.gz src-46e47c4f8ddb5fa7b87399e5b4288a88139567de.zip |
Provide helper macros to detect 'non-silent SBDRY' state and to
calculate appropriate return value for stops. Simplify the code by
using them.
Fix typo in sig_suspend_threads(). The thread which sleep must be
aborted is td2. (*)
In issignal(), when handling stopping signal for thread in
TD_SBDRY_INTR state, do not stop, this is wrong and fires assert.
This is yet another place where execution should be forced out of
SBDRY-protected region. For such case, return -1 from issignal() and
translate it to corresponding error code in sleepq_catch_signals().
Assert that other consumers of cursig() are not affected by the new
return value. (*)
Micro-optimize, mostly VFS and VOP methods, by avoiding calling the
functions when SIGDEFERSTOP_NOP non-change is requested. (**)
Reported and tested by: pho (*)
Requested by: bde (**)
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Approved by: re (gjb)
Notes
Notes:
svn path=/head/; revision=302328
Diffstat (limited to 'share/numericdef/Makefile')
0 files changed, 0 insertions, 0 deletions