From owner-svn-src-stable@FreeBSD.ORG Thu Mar 3 16:58:59 2011 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 703B0106568A; Thu, 3 Mar 2011 16:58:59 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 46CD88FC2D; Thu, 3 Mar 2011 16:58:59 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id p23GwxkG053311; Thu, 3 Mar 2011 16:58:59 GMT (envelope-from jhb@svn.freebsd.org) Received: (from jhb@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p23GwxvJ053309; Thu, 3 Mar 2011 16:58:59 GMT (envelope-from jhb@svn.freebsd.org) Message-Id: <201103031658.p23GwxvJ053309@svn.freebsd.org> From: John Baldwin Date: Thu, 3 Mar 2011 16:58:59 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r219231 - stable/8/sys/sys X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Mar 2011 16:58:59 -0000 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; \ } \