From owner-freebsd-arch@FreeBSD.ORG Fri Nov 5 18:48:06 2010 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C0B18106564A; Fri, 5 Nov 2010 18:48:06 +0000 (UTC) (envelope-from mdf356@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 37DF58FC20; Fri, 5 Nov 2010 18:48:05 +0000 (UTC) Received: by ywh2 with SMTP id 2so2519496ywh.13 for ; Fri, 05 Nov 2010 11:48:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=KkKNUrZJAdzo+uUSdLQ9ycvhki1H8jqlPpk2OKp8VME=; b=VaTx3IpJ/ApgbPCTxUeduldg5Du1ePvYOgX3M63B9hvANDSjlTcXc9A1zL0oUYZV+f S3RJeYAgDFots40uLm6kIpWZGkU2GYJ7MJL0iGTGybKF/U8HN+6CpqJf167X0+GldzdS Xv2qTGnwcSHXgMdQAaz657AnYt5DnyjThOLtE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=VE+PyPMPnqsTaDDlTO/p2JkkaBqAlP3fHzFlJa0/OQUn61a2Plp6/dgQQDIqVb036+ wJZKMIJG/6WQlHaJY6xbU8qNv2pMiQOnZ8tHK5SxEGd2LT+Fd5zvO0s4o3jrjROOO6Mw 9r+1HkSkO6bzY2TiMMyIg2lUMGfM5rs3Orgfs= MIME-Version: 1.0 Received: by 10.42.22.69 with SMTP id n5mr1388786icb.477.1288982885106; Fri, 05 Nov 2010 11:48:05 -0700 (PDT) Received: by 10.231.159.198 with HTTP; Fri, 5 Nov 2010 11:48:05 -0700 (PDT) In-Reply-To: <201011051945.51393.hselasky@c2i.net> References: <201011012054.59551.hselasky@c2i.net> <201011051935.27579.hselasky@c2i.net> <201011051945.51393.hselasky@c2i.net> Date: Fri, 5 Nov 2010 11:48:05 -0700 Message-ID: From: Matthew Fleming To: Hans Petter Selasky Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-current@freebsd.org, Weongyo Jeong , freebsd-usb@freebsd.org, Andrew Thompson , freebsd-arch@freebsd.org Subject: Re: [RFC] Outline of USB process integration in the kernel taskqueue system X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Nov 2010 18:48:06 -0000 On Fri, Nov 5, 2010 at 11:45 AM, Hans Petter Selasky wro= te: > On Friday 05 November 2010 19:39:45 Matthew Fleming wrote: >> True, but no taskqueue(9) code can handle that. =A0Only the caller can >> prevent a task from becoming enqueued again. =A0The same issue exists >> with taskqueue_drain(). > > I find that strange, because that means if I queue a task again while it = is > running, then I doesn't get run? Are you really sure? If a task is currently running when enqueued, the task struct will be re-enqueued to the taskqueue. When that task comes up as the head of the queue, it will be run again. Thanks, matthew