[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20250126174557.1121719-1-changbin.du@huawei.com>
Date: Mon, 27 Jan 2025 01:45:57 +0800
From: Changbin Du <changbin.du@...wei.com>
To: Andrew Morton <akpm@...ux-foundation.org>
CC: Peter Zijlstra <peterz@...radead.org>, <linux-kernel@...r.kernel.org>,
Changbin Du <changbin.du@...wei.com>
Subject: [PATCH] rtmutex: move the comments of rt_mutex to correct location
All the fields of old struct rt_mutex now liesin rt_mutex_base. Move the
comments to the correct location.
Signed-off-by: Changbin Du <changbin.du@...wei.com>
---
include/linux/rtmutex.h | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/include/linux/rtmutex.h b/include/linux/rtmutex.h
index 7d049883a08a..f22793fcc694 100644
--- a/include/linux/rtmutex.h
+++ b/include/linux/rtmutex.h
@@ -20,6 +20,14 @@
extern int max_lock_depth; /* for sysctl */
+/**
+ * The rt_mutex_base structure
+ *
+ * @wait_lock: spinlock to protect the structure
+ * @waiters: rbtree root to enqueue waiters in priority order;
+ * caches top-waiter (leftmost node).
+ * @owner: the mutex owner
+ */
struct rt_mutex_base {
raw_spinlock_t wait_lock;
struct rb_root_cached waiters;
@@ -46,14 +54,6 @@ static inline bool rt_mutex_base_is_locked(struct rt_mutex_base *lock)
extern void rt_mutex_base_init(struct rt_mutex_base *rtb);
-/**
- * The rt_mutex structure
- *
- * @wait_lock: spinlock to protect the structure
- * @waiters: rbtree root to enqueue waiters in priority order;
- * caches top-waiter (leftmost node).
- * @owner: the mutex owner
- */
struct rt_mutex {
struct rt_mutex_base rtmutex;
#ifdef CONFIG_DEBUG_LOCK_ALLOC
--
2.43.0
Powered by blists - more mailing lists