Date: Thu, 3 Mar 2011 16:58:59 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r219231 - stable/8/sys/sys Message-ID: <201103031658.p23GwxvJ053309@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jhb Date: Thu Mar 3 16:58:58 2011 New Revision: 219231 URL: http://svn.freebsd.org/changeset/base/219231 Log: MFC 218270: Use M_WAITOK rather than M_NOWAIT when creating taskqueues via the TASKQUEUE_DEFINE macros. All the places that use these macros to create taskqueues assume that the operation succeeds. Modified: stable/8/sys/sys/taskqueue.h Directory Properties: stable/8/sys/ (props changed) stable/8/sys/amd64/include/xen/ (props changed) stable/8/sys/cddl/contrib/opensolaris/ (props changed) stable/8/sys/contrib/dev/acpica/ (props changed) stable/8/sys/contrib/pf/ (props changed) Modified: stable/8/sys/sys/taskqueue.h ============================================================================== --- stable/8/sys/sys/taskqueue.h Thu Mar 3 16:57:59 2011 (r219230) +++ stable/8/sys/sys/taskqueue.h Thu Mar 3 16:58:58 2011 (r219231) @@ -94,7 +94,7 @@ static void \ taskqueue_define_##name(void *arg) \ { \ taskqueue_##name = \ - taskqueue_create(#name, M_NOWAIT, (enqueue), (context)); \ + taskqueue_create(#name, M_WAITOK, (enqueue), (context)); \ init; \ } \ \ @@ -118,7 +118,7 @@ static void \ taskqueue_define_##name(void *arg) \ { \ taskqueue_##name = \ - taskqueue_create_fast(#name, M_NOWAIT, (enqueue), \ + taskqueue_create_fast(#name, M_WAITOK, (enqueue), \ (context)); \ init; \ } \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103031658.p23GwxvJ053309>