From owner-freebsd-arch@freebsd.org Mon Oct 30 08:20:10 2017 Return-Path: Delivered-To: freebsd-arch@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 82F4EE571AF for ; Mon, 30 Oct 2017 08:20:10 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4B8C97D0A3; Mon, 30 Oct 2017 08:20:10 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [62.141.128.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 631A0260100; Mon, 30 Oct 2017 09:20:08 +0100 (CET) Subject: Re: Allow faster eventhandler dispatching by keeping pointers to handler lists. To: Ian Lepore , Matt Joras , "freebsd-arch@FreeBSD.org" References: <1509243567.56824.103.camel@freebsd.org> <3a71dd31-99cb-c891-9d52-a7f2e7010011@FreeBSD.org> <1509293552.21609.5.camel@freebsd.org> <1509294247.21609.12.camel@freebsd.org> <7b59ff3d-3458-0bca-e6b4-13454b13efb0@FreeBSD.org> <1509296624.21609.24.camel@freebsd.org> From: Hans Petter Selasky Message-ID: <0fad1391-726d-8215-075d-9411abdf6edb@selasky.org> Date: Mon, 30 Oct 2017 09:17:30 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <1509296624.21609.24.camel@freebsd.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Oct 2017 08:20:10 -0000 On 10/29/17 18:03, Ian Lepore wrote: > Oh.  Right.  Hmmm, I think malloc() is required to support the case > where a handler registers before the static list init is invoked, and I > do think that's a useful feature to preserve.  That means the lists > aren't really static, though, which then makes STATIC a bit out of > place in the new function/macro names. Why not use RCU here, and then update sys/queue.h to be RCU safe? --HPS