From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 E31543B813A; Sat, 17 Oct 2026 16:48:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792255706; cv=none; b=ZBVKkFUhhna1fr7kuMdkvDZ3TYzgCcCKkDWOIuD9fqMKib6KNhYcU8CLwAl5wLrr75DvUWrEsDrewzMY4lODG44sXnJ7yguZWbSB81nVZuRBQuLl7I38GJ5w2rfzzM7rmwbybMpIwgI+k7K+v2dfFnw85u8vjv/QFf2ksSdNl/E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792255706; c=relaxed/simple; bh=E6xgosJ2A0A4NJ+fIlUKOxQ1TPda2v+89Zyu78jbB+A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=anVNdMVMdNadxF881FAFsCdFic9zLs7XCK79x673YP5ImwGfbZGcf4sChrrupR4AkQ+s2gQi9XLPqaPx45wFh+iFgX+P8P2SuwDFUKKgck7DfM98vufDuUxn3yArj6GwH8vKq/NIrODYfubwL6oQsRG5ipVIukrObnkaMilLOg0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=DIVerywr; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="DIVerywr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 158F51F000C4; Sat, 17 Oct 2026 16:48:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792255704; bh=V4yd+EdzJUdlvI6wVpANN8ZABaGFBAE4PV8lwrJ1fCs=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=DIVerywrrTFWOyKNrbRJPyUvw+pjfpUUEAYbQhXPEq4Nhwh7Tl7FvCQ6Ep+8+pB/Z Up7s+qkZcmMVPEBk33pD/GEMoEXId6s2LhfwUA5cEP7Kq82Suwe695dxnokhPuK3mv c75ltELtMO3tRPKgaF3DsVKLaks05eFjHPor57X8= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Matthew Wilcox , Suren Baghdasaryan , Davidlohr Bueso , "Liam R. Howlett" , Lorenzo Stoakes , Shivank Garg , Christian Brauner , David Hildenbrand , David Howells , Hugh Dickins , Jann Horn , Johannes Weiner , Jonathan Corbet , Klara Modin , Lokesh Gidra , Mateusz Guzik , Mel Gorman , Michal Hocko , Minchan Kim , Oleg Nesterov , Pasha Tatashin , "Paul E . McKenney" , Peter Xu , "Peter Zijlstra (Intel)" , Shakeel Butt , Sourav Panda , Vlastimil Babka , Wei Yang , Will Deacon , Heiko Carstens , Stephen Rothwell , Andrew Morton , Sasha Levin Subject: [PATCH 6.12 864/869] types: move struct rcuwait into types.h Date: Sat, 17 Oct 2026 18:01:45 +0200 Message-ID: <20261017160059.010447416@linuxfoundation.org> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261017160036.979869304@linuxfoundation.org> References: <20261017160036.979869304@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Suren Baghdasaryan [ Upstream commit 2c2bd11caba2a45445c1f0c722451fe29e59db79 ] Move rcuwait struct definition into types.h so that rcuwait can be used without including rcuwait.h which includes other headers. Without this change mm_types.h can't use rcuwait due to a the following circular dependency: mm_types.h -> rcuwait.h -> signal.h -> mm_types.h Link: https://lkml.kernel.org/r/20250213224655.1680278-7-surenb@google.com Suggested-by: Matthew Wilcox Signed-off-by: Suren Baghdasaryan Acked-by: Davidlohr Bueso Acked-by: Liam R. Howlett Acked-by: Lorenzo Stoakes Tested-by: Shivank Garg Link: https://lkml.kernel.org/r/5e19ec93-8307-47c2-bb13-3ddf7150624e@amd.com Cc: Christian Brauner Cc: David Hildenbrand Cc: David Howells Cc: Hugh Dickins Cc: Jann Horn Cc: Johannes Weiner Cc: Jonathan Corbet Cc: Klara Modin Cc: Lokesh Gidra Cc: Mateusz Guzik Cc: Mel Gorman Cc: Michal Hocko Cc: Minchan Kim Cc: Oleg Nesterov Cc: Pasha Tatashin Cc: "Paul E . McKenney" Cc: Peter Xu Cc: Peter Zijlstra (Intel) Cc: Shakeel Butt Cc: Sourav Panda Cc: Vlastimil Babka Cc: Wei Yang Cc: Will Deacon Cc: Heiko Carstens Cc: Stephen Rothwell Signed-off-by: Andrew Morton Signed-off-by: Sasha Levin --- include/linux/rcuwait.h | 13 +------------ include/linux/types.h | 12 ++++++++++++ 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/include/linux/rcuwait.h b/include/linux/rcuwait.h index 27343424225cf..9ad134a04b415 100644 --- a/include/linux/rcuwait.h +++ b/include/linux/rcuwait.h @@ -4,18 +4,7 @@ #include #include - -/* - * rcuwait provides a way of blocking and waking up a single - * task in an rcu-safe manner. - * - * The only time @task is non-nil is when a user is blocked (or - * checking if it needs to) on a condition, and reset as soon as we - * know that the condition has succeeded and are awoken. - */ -struct rcuwait { - struct task_struct __rcu *task; -}; +#include #define __RCUWAIT_INITIALIZER(name) \ { .task = NULL, } diff --git a/include/linux/types.h b/include/linux/types.h index 2d7b9ae8714ce..f1356a9a5730a 100644 --- a/include/linux/types.h +++ b/include/linux/types.h @@ -248,5 +248,17 @@ typedef void (*swap_func_t)(void *a, void *b, int size); typedef int (*cmp_r_func_t)(const void *a, const void *b, const void *priv); typedef int (*cmp_func_t)(const void *a, const void *b); +/* + * rcuwait provides a way of blocking and waking up a single + * task in an rcu-safe manner. + * + * The only time @task is non-nil is when a user is blocked (or + * checking if it needs to) on a condition, and reset as soon as we + * know that the condition has succeeded and are awoken. + */ +struct rcuwait { + struct task_struct __rcu *task; +}; + #endif /* __ASSEMBLY__ */ #endif /* _LINUX_TYPES_H */ -- 2.53.0