svn commit: r357779 - head/sys/sys
Gleb Smirnoff
glebius at FreeBSD.org
Tue Feb 11 20:59:42 UTC 2020
Author: glebius
Date: Tue Feb 11 20:59:41 2020
New Revision: 357779
URL: https://svnweb.freebsd.org/changeset/base/357779
Log:
Remove assertion from TASK_INIT() macro, since some users of
sys/taskqueue.h may not have includes that define MPASS. It
was useful during testing of r357771, but can be omitted now.
An invalid value of priority will yield only in potential
priority inversion, not a crash.
This fixes compilation of ports/x11/nvidia-driver.
Modified:
head/sys/sys/taskqueue.h
Modified: head/sys/sys/taskqueue.h
==============================================================================
--- head/sys/sys/taskqueue.h Tue Feb 11 20:41:51 2020 (r357778)
+++ head/sys/sys/taskqueue.h Tue Feb 11 20:59:41 2020 (r357779)
@@ -121,7 +121,6 @@ void taskqueue_thread_enqueue(void *context);
* Initialise a task structure.
*/
#define TASK_INIT_FLAGS(task, priority, func, context, flags) do { \
- MPASS((priority) >= 0 && (priority) <= 255); \
(task)->ta_pending = 0; \
(task)->ta_priority = (priority); \
(task)->ta_flags = (flags); \
More information about the svn-src-head
mailing list