From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 26 21:42:13 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B9CFE7E0; Tue, 26 Nov 2013 21:42:13 +0000 (UTC) Received: from mail-qa0-x22b.google.com (mail-qa0-x22b.google.com [IPv6:2607:f8b0:400d:c00::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 0271B2082; Tue, 26 Nov 2013 21:42:12 +0000 (UTC) Received: by mail-qa0-f43.google.com with SMTP id ii20so4998217qab.9 for ; Tue, 26 Nov 2013 13:42:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=W9/xYLMXXthz4IQoAomiVo2BeYcPBcOJ3YTAAaqaTKQ=; b=OprLGjSdTN3uQjxv+cvPnmWlbcBx5bSsYP7Azr8icM4dtjMYlHFZ5xmHy+il9kU7Yt WWY8R79ZbRh8Js/w8advywJz69Us1fcTlN23b6PNj2Mr+Lfr3UoTqxEmSstrrVg93uHA NfzOjF1PqcdrvqFQjKCg9sUkqh8VHUttKVvzk9dZS6YALLsjjp9FYApoDXw3+4LSsM+D 7lZBh17p2xL0Nq7q1p2Q+8m6XO7vsUclNeFcT2CJSnSOg7vuU4Sysj041w6qGLo2Ead0 TKrZO1okWI5P10PqpBDIe8R3P0lhuuhExblkU4c4sMZOp8cmZhnIxs0sNqh5DaUzKKvK Q+6w== MIME-Version: 1.0 X-Received: by 10.224.10.197 with SMTP id q5mr39068456qaq.76.1385502131565; Tue, 26 Nov 2013 13:42:11 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.224.207.66 with HTTP; Tue, 26 Nov 2013 13:42:11 -0800 (PST) In-Reply-To: <5294BDCF.1050702@FreeBSD.org> References: <5287BDB9.10201@FreeBSD.org> <528B7681.6090806@FreeBSD.org> <201311211414.06849.jhb@freebsd.org> <5294BDCF.1050702@FreeBSD.org> Date: Tue, 26 Nov 2013 13:42:11 -0800 X-Google-Sender-Auth: HzsVYTwt3nrz5HNyJkHRnzZ01iY Message-ID: Subject: Re: taskqueue_block From: Adrian Chadd To: Andriy Gapon Content-Type: text/plain; charset=ISO-8859-1 Cc: Luigi Rizzo , Bernhard Schmidt , "freebsd-hackers@freebsd.org" , Aleksandr Rybalko , Andrew Thompson , Pyun YongHyeon X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Nov 2013 21:42:13 -0000 Hi, the net80211 semantics are: * all those tasks have to have finished; * no new tasks should've been started whilst we're draining those tasks. waitfor_parent wants to block until all the pending update tasks are done. Ideally it would then stay blocked until the caller does their thing and then unblocks the taskqueue. -adrian