Received: by 2002:a05:7412:8d23:b0:f7:29d7:fb05 with SMTP id bj35csp365899rdb; Sat, 16 Dec 2023 11:21:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IGHey0ICssYC3whdPFYiMz7Mpu7uXOGOP2EFKIKfDS4h3+7sIkX2sGh9GC7Ym4MmuKPHmOC X-Received: by 2002:a05:622a:130d:b0:425:9bbb:7817 with SMTP id v13-20020a05622a130d00b004259bbb7817mr18571669qtk.13.1702754514380; Sat, 16 Dec 2023 11:21:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702754514; cv=none; d=google.com; s=arc-20160816; b=TIWSZLMKeCXkYcGupanXCbJa660rR1qZAdw0KbDtPLXe3qxuguet+2SZSkdcYoaX6k OsIMA/bdwrpg3O9ObjxIIeYHSvkJf9qKb9SfMiLgT2jEg3s0cueuNvaR+02edTnC95AT Y345LtSz0rvBaVe5AaP5CzKEkDtEmCsrzc1oiMlDfMUr5LWxZZ7/0EnJK8FG99EiG5Fa sD5tKRaeCELQ0jDwQ7kI3l8BkabpmrtZLprHRNNVNuKO++BEBJOByCSm2HruxCE7OP9Z SyjlKMM1gZr15n2mxdwIUEdW4sW5euAy6UFeSCW5yyRi4jRSBWelqDn+36nJhusjf3ee VXdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=9I9jmriNkRRhZzL8LAvE/UO9XO8ynzIkcjc6Pnubh3Q=; fh=8z/m47w0VuP99xeMD5lLeNTzCwskwGqrkLFMaHIlwHA=; b=cuHKcPWj++hepqqgyemeE0A/x+j/8TcB7N3VbyQ42xHQNizWWhj0PEoFp22kIz15Jt VceRB0/yB32QOIi38FGj9q7e2VintBL4ATnZ04ZdWbLI9JTVPL4fOlpynnlJHBWXFmy/ +Ve1TaPuSvnsA2WOqvTjlDXsA82QkzFDxaAGRmH/2ARQQZHwSPX+ATphmyryA876q2BL KUCDeZ33IDzkeo8/2EmesD8+XsaQx0TEk8sZbAbcBvETVlf+wUOCWO7ATtrxybaDgb9T qWtX9Ws9TQcwsYZKbKy7Qqeuy/Lcos3sj6yjAZEisFavpjV5RU12UpuPXsqgqpZNpa3L iQ0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=uPIsM4sT; spf=pass (google.com: domain of linux-kernel+bounces-2338-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2338-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id ay39-20020a05622a22a700b00423aa0e4a28si20146039qtb.239.2023.12.16.11.21.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Dec 2023 11:21:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2338-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=uPIsM4sT; spf=pass (google.com: domain of linux-kernel+bounces-2338-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2338-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 27D721C21157 for ; Sat, 16 Dec 2023 19:21:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2086431A8E; Sat, 16 Dec 2023 19:21:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="uPIsM4sT" X-Original-To: linux-kernel@vger.kernel.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2A9B72FC24; Sat, 16 Dec 2023 19:21:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=9I9jmriNkRRhZzL8LAvE/UO9XO8ynzIkcjc6Pnubh3Q=; b=uPIsM4sTCLJq9Lw5+wpQ3YaDTt 7/B8oCiQV5HSzRgH5yQktxmUe/2Ss49tYD9j0FBfdD/yp+Ndn3SVodYw48ngCU2omJX+lkvFJClZ3 WUEBS8QBRARpxjZ0yVyNkQ3HjX5XxDt2IVN1pdISmgNEPKzrcDIIglYPwtXVS11LKtyTrWE2Dtnxv m4mY4KHmu1BvP3xJKwutGwfcM0YWhAUrxzt+SUDyggQbni0kDiyW87t1XwgYrQhAWZ1f3CBh+fDnN IPVvPCIWXA6srVzqkUaAc1UC9V4BKU4Ll6PzVzYUVSv8hUSmCleQH0puJF9UejiS7KQZH7weShRzl IZ1p85CQ==; Received: from [50.53.46.231] (helo=[192.168.254.15]) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1rEaEF-006bv4-2t; Sat, 16 Dec 2023 19:21:39 +0000 Message-ID: <7d5d85f9-a78a-453d-8d1f-01189eb21c2f@infradead.org> Date: Sat, 16 Dec 2023 11:21:39 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 46/50] preempt.h: Kill dependency on list.h Content-Language: en-US To: Matthew Wilcox , Kent Overstreet Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, tglx@linutronix.de, x86@kernel.org, tj@kernel.org, peterz@infradead.org, mathieu.desnoyers@efficios.com, paulmck@kernel.org, keescook@chromium.org, dave.hansen@linux.intel.com, mingo@redhat.com, will@kernel.org, longman@redhat.com, boqun.feng@gmail.com, brauner@kernel.org References: <20231216024834.3510073-1-kent.overstreet@linux.dev> <20231216033552.3553579-1-kent.overstreet@linux.dev> <20231216033552.3553579-3-kent.overstreet@linux.dev> From: Randy Dunlap In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 12/15/23 22:13, Matthew Wilcox wrote: > On Fri, Dec 15, 2023 at 10:35:47PM -0500, Kent Overstreet wrote: >> - INIT_HLIST_NODE(¬ifier->link); >> + /* INIT_HLIST_NODE() open coded, to avoid dependency on list.h */ >> + notifier->link.next = NULL; >> + notifier->link.pprev = NULL; > > Arguably INIT_HLIST_NODE() belongs in types.h -- we already have > RCUREF_INIT() and ATOMIC_INIT() in there. > That would be far better than open-coding it. -- #Randy https://people.kernel.org/tglx/notes-about-netiquette https://subspace.kernel.org/etiquette.html