Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Mar 2021 14:21:27 +0100
From:      Hans Petter Selasky <hps@selasky.org>
To:        Konstantin Belousov <kostikbel@gmail.com>
Cc:        John Baldwin <jhb@freebsd.org>, src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org
Subject:   Re: git: d1cbe7908986 - main - Allocating the LinuxKPI current structure from an interrupt thread must be done using the M_NOWAIT flag after 1ae20f7c70ea .
Message-ID:  <dce75a2e-4f99-3339-c41d-30c719f7443f@selasky.org>
In-Reply-To: <eb9475cc-2aab-55ce-5aa5-8f6c2ca8cb08@selasky.org>
References:  <202103100952.12A9qRKR040117@gitrepo.freebsd.org> <YEiZwWT28AeXzQjA@kib.kiev.ua> <2b1739ab-000c-ca28-5a59-0a3e19ef4591@selasky.org> <5aaa5f2a-a67d-a495-7f56-a6b31c2494c7@FreeBSD.org> <ba608afb-d8bb-242a-9170-e30b2291411e@selasky.org> <YEpi65EJZrFHf5Dj@kib.kiev.ua> <3dcd63b0-fe90-2855-f349-2117ca4b6b26@selasky.org> <YEppt/dtNwdmxDHP@kib.kiev.ua> <8fe37b5e-29a7-ffeb-fddb-3b31a6e79ab0@selasky.org> <YEtX3GmTt5APQ8Mz@kib.kiev.ua> <eb9475cc-2aab-55ce-5aa5-8f6c2ca8cb08@selasky.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 3/12/21 2:15 PM, Hans Petter Selasky wrote:
> We could just pre-allocate these structures into a linked list, and 
> dequeue these for interrupt threads only. Every time a new interrupt is 
> allocated we allocate one more of these structures beforehand, and then 
> we use that structure back when the ITHREAD flags is set in the thread 
> structure, similar to what you are doing, except we don't use UMA zones.

Let's move the discussion over to the differential revision I've created 
so that we can agree on a solution.

--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?dce75a2e-4f99-3339-c41d-30c719f7443f>