Received: by 2002:a05:7412:8d23:b0:f7:29d7:fb05 with SMTP id bj35csp425318rdb; Sat, 16 Dec 2023 14:35:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IFKTjq7OmQlGs/R4bbz4u/Hujej7LkPExwLDDgSmOQAwptMQoSJ69EAVFFLcyfayVvvzvS7 X-Received: by 2002:a5d:5488:0:b0:336:3e3f:8af4 with SMTP id h8-20020a5d5488000000b003363e3f8af4mr3600871wrv.3.1702766138174; Sat, 16 Dec 2023 14:35:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702766138; cv=none; d=google.com; s=arc-20160816; b=mMIFFiJF2QDwCGjnDzhXAd8RexpzY2lPSEz2bPkPA0GH1EMsn5yf8kpX5rqdu8+bZJ NfrBDsN5L0ZWO0yJP4d0epzBralNJj4pxS2Wwwd4M3qKuLyOhhaQ7sDmTcSvCTHcnigZ +WYrtKvDFUDq24CUDA91B1A16Co1tcgmO7OWx5Ure1J/bO/4NpyK1MfRcfk7ARqH9Sdq mPseEmac24PoyMPYVCEpOtV7JnRx2QymkMXR/P/EjFRubQgd7/DQoco5Se/w6awq53R4 3d7xfnNin9AYIe2j7LjMWLxGpadCg61XpBixqQvRv7QyldNOAAluSP5FLrPUnR3ilwTl SMIA== 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=YNhwxr//DvDx0kBLO5uKoX7FVv1oXGMRs2iGooscwac=; fh=tMKmvOMP2BvlXs0LKBzko+gcmClSPMqx8H7sxdNHk8I=; b=nwTeRgmiUnQfYBiGO+EHm9K239uGzEYcqeYJNd3uCGhWYk3Dz/BuPwoyjKzazSMAlp Z/3Pc7saA6TcQYRG7kceUKCR2G26LCl6DDiAibvLHGqjhvTb0KLnvDtDcpjg+x09kKyl qxSGSIfT7H9oHrptwceKrg9jsSHKjmCtokbYRlfIfSswf9A8rNSJUBDoCl4nmoLzOPk8 cBzVIoRClzhhRG2Qiy0lUFJ+gi/nzwH3kOvBV6QhIml8+ARs7SO5ttx9AcVolpJ94wFv qvnzpTlRKWtVWwxaM2oOaxN4J4ocgJoMee1zL4WYIJOROtQ6dwQK/teGT8Bbn0rOUoAj HOCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=l7KLHLKb; spf=pass (google.com: domain of linux-kernel+bounces-2391-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2391-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id u15-20020a50c04f000000b00552eb91d465si1237802edd.550.2023.12.16.14.35.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Dec 2023 14:35:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2391-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=l7KLHLKb; spf=pass (google.com: domain of linux-kernel+bounces-2391-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2391-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 am.mirrors.kernel.org (Postfix) with ESMTPS id EB28A1F22A43 for ; Sat, 16 Dec 2023 22:35:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 04E8E374CA; Sat, 16 Dec 2023 22:35:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="l7KLHLKb" X-Original-To: linux-kernel@vger.kernel.org Received: from out-187.mta0.migadu.com (out-187.mta0.migadu.com [91.218.175.187]) (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 CC61335F0D for ; Sat, 16 Dec 2023 22:35:28 +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 17:35:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1702766126; 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=YNhwxr//DvDx0kBLO5uKoX7FVv1oXGMRs2iGooscwac=; b=l7KLHLKbQ7OlWriopR5AOIiJC0EWGfPpCc4eICxOm2t1SfU3m4EsjUY6/Niuy4yjTJwYAx W2m0oenm/WZCN+4doY2TZ2MnPc3fT9C4avDHe4Dp7ztBMrlUsF6SMvWxjMcMeenhbNB0uU LRYHKfhYXuSNjZXn6TbW74+3uNX9arM= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Matthew Wilcox 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 Subject: Re: [PATCH 46/50] preempt.h: Kill dependency on list.h Message-ID: <20231216223522.s4skrclervsskx32@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> 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: X-Migadu-Flow: FLOW_OUT 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.