Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Feb 2020 20:59:42 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r357779 - head/sys/sys
Message-ID:  <202002112059.01BKxgLd069583@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);				\



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202002112059.01BKxgLd069583>