Received: by 2002:a05:7412:8598:b0:f9:33c2:5753 with SMTP id n24csp223435rdh; Mon, 18 Dec 2023 17:46:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IFUDTMLIDzpcMxpGR7hebWY+N5GLSqAmTXgRoCB7mtA8Y23gEuZ8dYE+7xyldafD+GFInib X-Received: by 2002:a05:6808:2f0e:b0:3ba:845:93d8 with SMTP id gu14-20020a0568082f0e00b003ba084593d8mr20795694oib.83.1702950395980; Mon, 18 Dec 2023 17:46:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702950395; cv=none; d=google.com; s=arc-20160816; b=nZecCuABIAJBvXIJA/INFbOjpeMpa19O6FdFtw8MPP4tseBjpAplepCu5ulYYkyIif uL0RofkbJplJn0+emMUQT9q9s2FuTPQbaLPT6MLNXjxnr7N1NUXUJpc3g3fdxKqiM68t MO5AgcGyhLWgOvU4ngvyaUV4zDeKZpdbUeNddXM3v35SmWA5vfv/jFTJ9ATOK84plkkL OxsjfiYhXW2lXx85s+/mrbsXp9IF4UntH/5WrGsttbjWfcJWwXv5XaexXLZbhwFwjrMS vc0DHTmfnLXJXtcnvaBaaehQynKY53YDQbILTbG7YBiFuDAKQo2x7qs1eeXLmHW80MHx vfoA== 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=5dSq+xskUzFPW1/3n5Hbgu39SffXVNAv8XTfz69lcCQ=; fh=NQ3aFk6ByZv6vzVnSO6OyMhQZ697+ZOqUW4iOg7WQP8=; b=H1HzeYf2Wr94ZJKo8+BBNf0DXI2+NMTykcahEi1t7i47cavVmEq6nQhntkhrc9Jj2k 4fRQ1a4Vnmh7Ujbuh9jETFZ4C+GN4PSYvVZyjglR9BDhkqkXpWioFKhhS5vPJW4l+h0M twWYWShUgn6kkIz38T/K28PNSXUzP1f7nfka1yTf0PbXpJDjODUW8OBizW6hqpMhafNN TlKFHHdyIezhGfOyfDQhDGFUjzpXyl4yRLaqqTfMCyX7t7jGESizfCeLnll7qduM6nzu G1QvHqPPUxc7IYGcoVEmJtqsSQeoJ8YAYFEUPKJED44AC//zQkmHynrcRxNCXEujFNis Lhcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=QRLUDXo8; spf=pass (google.com: domain of linux-kernel+bounces-4571-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4571-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id n12-20020a1709026a8c00b001cfb316a183si3258940plk.141.2023.12.18.17.46.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 17:46:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-4571-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=QRLUDXo8; spf=pass (google.com: domain of linux-kernel+bounces-4571-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4571-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 99D99281E3A for ; Tue, 19 Dec 2023 01:46:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 00B441FAE; Tue, 19 Dec 2023 01:46:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="QRLUDXo8" X-Original-To: linux-kernel@vger.kernel.org Received: from out-176.mta1.migadu.com (out-176.mta1.migadu.com [95.215.58.176]) (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 EBF3A4402 for ; Tue, 19 Dec 2023 01:46:23 +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: Mon, 18 Dec 2023 20:46:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1702950382; 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=5dSq+xskUzFPW1/3n5Hbgu39SffXVNAv8XTfz69lcCQ=; b=QRLUDXo8kJiL1Gog5CeF8oYKcr9jV1OIVFaza6OHEb8UDxa+NyQ7dG1QZp7b2WB14ckqUd Y+vw8yTRiTstd53R1q/L+kprd/itBhNn4KDap2f2sfcMc/+YQkVzv1YebOVJI/o5+FISLh /T4mHhnyxlPABPRwqqawGvlqFXWyaG0= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Waiman Long 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, boqun.feng@gmail.com, brauner@kernel.org Subject: Re: [PATCH 19/50] locking/mutex: split out mutex_types.h Message-ID: <20231219014617.dulwl3mdro6zyblt@moria.home.lan> References: <20231216024834.3510073-1-kent.overstreet@linux.dev> <20231216032651.3553101-1-kent.overstreet@linux.dev> <20231216032651.3553101-9-kent.overstreet@linux.dev> <7066c278-28e0-45eb-a046-eb684c4a659c@redhat.com> 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: <7066c278-28e0-45eb-a046-eb684c4a659c@redhat.com> X-Migadu-Flow: FLOW_OUT On Mon, Dec 18, 2023 at 11:53:08AM -0500, Waiman Long wrote: > On 12/15/23 22:26, Kent Overstreet wrote: > > -#include > > Including rtmutex.h here means that mutex_types.h is no longer a simple > header for types only. So unless you also break out a rtmutex_types.h, it is > inconsistent. good observation, I'll have to leave it for the next round of cleanups though since the merge window is approaching and I'll have to redo all the testing. > Besides, the kernel/sched code does use mutex_lock/unlock calls quite > frequently. With this patch, mutex.h will not be directly included. I > suspect that it is indirectly included via other header files. This may be > an issue with some configurations. I've now put it through randconfig testing on every arch that debian includes a compiler for (excluding sh and xtensa, which throw internal compiler errors) and that one hasn't come up yet. could still be included indirectly though - I haven't checked for that one specifically yet.