public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [RT] avoid preemption in memory controller code
@ 2008-12-08 14:34 Tim Blechmann
  2008-12-08 16:42 ` Steven Rostedt
  2008-12-09  1:13 ` [PATCH] [RT] avoid preemption in memory controller code Li Zefan
  0 siblings, 2 replies; 10+ messages in thread
From: Tim Blechmann @ 2008-12-08 14:34 UTC (permalink / raw)
  To: rostedt, linux-rt-users; +Cc: linux-kernel, Tim Blechmann

the lru_lock of struct mem_group_per_zone is used to avoid preemption
during the __mem_cgroup_stat_add_safe function.
therefore, a raw_spinlock_t should be used.

Signed-off-by: Tim Blechmann <tim@klingt.org>
---
 mm/memcontrol.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 517f945..8661732 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -95,9 +95,9 @@ enum mem_cgroup_zstat_index {
 
 struct mem_cgroup_per_zone {
 	/*
-	 * spin_lock to protect the per cgroup LRU
+	 * raw_spin_lock to protect the per cgroup LRU
 	 */
-	spinlock_t		lru_lock;
+	raw_spinlock_t		lru_lock;
 	struct list_head	active_list;
 	struct list_head	inactive_list;
 	unsigned long count[NR_MEM_CGROUP_ZSTAT];
-- 
1.5.6.3


^ permalink raw reply related	[flat|nested] 10+ messages in thread
[parent not found: <preempt_enable_rt();>]

end of thread, other threads:[~2008-12-12  9:09 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-08 14:34 [PATCH] [RT] avoid preemption in memory controller code Tim Blechmann
2008-12-08 16:42 ` Steven Rostedt
2008-12-08 17:07   ` Tim Blechmann
2008-12-08 17:23     ` Steven Rostedt
2008-12-11 19:05       ` [PATCH] [RT] preempt_disable_rt for CONFIG_PREEMPT_RT Tim Blechmann
2008-12-09  1:13 ` [PATCH] [RT] avoid preemption in memory controller code Li Zefan
2008-12-09  1:32   ` KAMEZAWA Hiroyuki
     [not found] <preempt_enable_rt();>
2008-12-11 19:00 ` Tim Blechmann
2008-12-12  1:17   ` KAMEZAWA Hiroyuki
2008-12-12  9:08     ` Tim Blechmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox