Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1370381 > unrolled thread

[PATCH 1/4] rtmutex: Delete save_state member of struct rt_mutex

Started byDavidlohr Bueso <dave@stgolabs.net>
First post2016-04-04 08:40 +0200
Last post2016-04-04 08:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 1/4] rtmutex: Delete save_state member of struct rt_mutex Davidlohr Bueso <dave@stgolabs.net> - 2016-04-04 08:40 +0200

#1370381 — [PATCH 1/4] rtmutex: Delete save_state member of struct rt_mutex

FromDavidlohr Bueso <dave@stgolabs.net>
Date2016-04-04 08:40 +0200
Subject[PATCH 1/4] rtmutex: Delete save_state member of struct rt_mutex
Message-ID<rk6l3-7xw-3@gated-at.bofh.it>
This field (debug) is unused. Furthermore it looks like a result
of rtmutex from -rt into upstream, where it serves to determine
if the wakeup is for a task blocked on a "sleeping spinlock",
iow if this is a regular rt_mutex_lock() or rt_spin_lock().

Of course, upstream we only have regular rt_mutexes, thus we
can safely assume nothing will be done with this field anyway.
There is also the fact that this is under debug.

Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
---
 include/linux/rtmutex.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/include/linux/rtmutex.h b/include/linux/rtmutex.h
index 1abba5ce2a2f..9c50e2efb660 100644
--- a/include/linux/rtmutex.h
+++ b/include/linux/rtmutex.h
@@ -32,7 +32,6 @@ struct rt_mutex {
 	struct rb_node          *waiters_leftmost;
 	struct task_struct	*owner;
 #ifdef CONFIG_DEBUG_RT_MUTEXES
-	int			save_state;
 	const char 		*name, *file;
 	int			line;
 	void			*magic;
-- 
2.7.4

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web