From owner-svn-src-all@FreeBSD.ORG Fri Feb 4 14:06:57 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B0A241065670; Fri, 4 Feb 2011 14:06:57 +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 9FB428FC13; Fri, 4 Feb 2011 14:06:57 +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 p14E6v1E086407; Fri, 4 Feb 2011 14:06:57 GMT (envelope-from jhb@svn.freebsd.org) Received: (from jhb@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p14E6vTi086405; Fri, 4 Feb 2011 14:06:57 GMT (envelope-from jhb@svn.freebsd.org) Message-Id: <201102041406.p14E6vTi086405@svn.freebsd.org> From: John Baldwin Date: Fri, 4 Feb 2011 14:06:57 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r218270 - head/sys/sys X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Feb 2011 14:06:57 -0000 Author: jhb Date: Fri Feb 4 14:06:57 2011 New Revision: 218270 URL: http://svn.freebsd.org/changeset/base/218270 Log: 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. MFC after: 1 week Modified: head/sys/sys/taskqueue.h Modified: head/sys/sys/taskqueue.h ============================================================================== --- head/sys/sys/taskqueue.h Fri Feb 4 13:50:30 2011 (r218269) +++ head/sys/sys/taskqueue.h Fri Feb 4 14:06:57 2011 (r218270) @@ -96,7 +96,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; \ } \ \ @@ -120,7 +120,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; \ } \