Received: by 2002:a05:7412:8d23:b0:f7:29d7:fb05 with SMTP id bj35csp454457rdb; Sat, 16 Dec 2023 16:19:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IGTshhH3NUNpXhFgzod+u5xW+DK5ecKCQ9IKdABE5NDE6BCUSfSp14Y3P66+fjD4MQYFeQi X-Received: by 2002:a05:6214:2262:b0:67f:511:9cde with SMTP id gs2-20020a056214226200b0067f05119cdemr9733163qvb.51.1702772347205; Sat, 16 Dec 2023 16:19:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702772347; cv=none; d=google.com; s=arc-20160816; b=IFLoxVf3nNew5DiPMg4jUpXTSuPDvZUmqztAclXWwakYQhl9S5luCNXjr09RTp58JF OfNB64Qo0oYFKDQlW4HdKTxePGUOqcyXW0g15ujBGUX0NMHEI6TehU1Ug9eThMs9wQLn 43IHwxyCgs/7pkYFxhTWnFfHoT6fXQ++Xl6KhQyAdKv35298lDS7NwGzgZ2dv8pVwXnt lQVTNljsyfldo6LQnCzvsRgTWMkMaR6BPG8Fdq+qoGgro2rzx5j2HlEVfvB6gIFEDlHm 4p6hBQK89XgYnAFuAnmq/2UNeTxbbwXdtR7j4EK6fNhOXFs+lhqTZaLVRWL03S9d3neq uJcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:dkim-signature:date; bh=GHhOxXFtGpDl4qK2SBVIKyrWsCibjLmY7kB9hT6fac4=; fh=+RMLkG3WN5FHiKjWxztDtsW9djJWaU+akH9ae0OEL/I=; b=wHKjE6qs3caFlN0Cpnd5v2+u5n3wOgtB0A2+TVPG05jLBjSrv+idecQ5ylUsJ5/uPs SQoGJ08nerWEPQvl2SxTRlu0kxh7UEgVsin9/7xIRA+GLHnYmRbNLAcnVaJ0oN5pTCay P7wVj5n+BncwfkpZCstyqoAu+PY4qOatL3NniLh3yRhgJI+r4RfrnUh/8IrIdOfTbCPf oXsRbYny0LzYOP7fTYmgcyqRHjFDpXK2BD1iq5k7YQd8CqZLh2L33x8XkbmAjmhiUWmm lA5K1XNPtDUO8+VL/Q6Q/rfug6kdciLFQmAUDLcNyYy8GS3VeGpLGS4oGxeYw0SWWtKK vKlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=lpDqV4f9; spf=pass (google.com: domain of linux-kernel+bounces-2414-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2414-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id p12-20020a0ccb8c000000b0067f29afb72fsi2125152qvk.50.2023.12.16.16.19.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Dec 2023 16:19:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2414-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=lpDqV4f9; spf=pass (google.com: domain of linux-kernel+bounces-2414-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2414-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev 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 EF2521C21492 for ; Sun, 17 Dec 2023 00:19:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9F8CF1FDC; Sun, 17 Dec 2023 00:18:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="lpDqV4f9" X-Original-To: linux-kernel@vger.kernel.org Received: from out-178.mta0.migadu.com (out-178.mta0.migadu.com [91.218.175.178]) (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 BD60F1FAD; Sun, 17 Dec 2023 00:18:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Date: Sat, 16 Dec 2023 19:18:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1702772334; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=GHhOxXFtGpDl4qK2SBVIKyrWsCibjLmY7kB9hT6fac4=; b=lpDqV4f96Yla/WX6tu2uOH466Isjo3Sw82OP0xo72YHAmSn557tvbngf7sa5iU/L/qnqWJ H+frcO/hJ1WvIaEBFuvq6rTogC9Xt2Mb7JCnXw1C2VdEHnwm5qCAA7c9JpzM62puGQ9o4K 3C638NdjC4CKVp6xIuAW75RSWwe8PJQ= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Randy Dunlap Cc: Matthew Wilcox , 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 Subject: Re: [PATCH 46/50] preempt.h: Kill dependency on list.h Message-ID: <20231217001849.hmilfx63q44tv3vj@moria.home.lan> References: <20231216024834.3510073-1-kent.overstreet@linux.dev> <20231216033552.3553579-1-kent.overstreet@linux.dev> <20231216033552.3553579-3-kent.overstreet@linux.dev> <20231216223522.s4skrclervsskx32@moria.home.lan> <82ed43c2-2a9d-4c5e-8ccd-8078397b7953@infradead.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <82ed43c2-2a9d-4c5e-8ccd-8078397b7953@infradead.org> X-Migadu-Flow: FLOW_OUT On Sat, Dec 16, 2023 at 04:04:43PM -0800, Randy Dunlap wrote: > > > On 12/16/23 14:35, Kent Overstreet wrote: > > On Sat, Dec 16, 2023 at 06:13:41AM +0000, 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. > > > > I think I'd prefer to keep types.h as minimal as possible - as soon as > > we start putting non type stuff in there people won't know what the > > distinction is and it'll grow. > > > > preempt.h is a bit unusual too, normally we'd just split out a _types.h > > header there but it's not so easy to split up usefully. > > > > I don't feel like I have NAK power, but if I did, I would NAK > open coding of INIT_HLIST_HEAD() or anything like it. > I would expect some $maintainer to do likewise, but I could be > surprised. It's INIT_HLIST_HEAD(), there's approximately zero chance of the implementation changing, and there's a comment.