linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] tiny_rcu: simplify tiny_rcu
@ 2014-11-28  9:43 Lai Jiangshan
  2014-11-28  9:43 ` [RFC PATCH 1/2] record rcu_bh quiescent state in RCU_SOFTIRQ Lai Jiangshan
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Lai Jiangshan @ 2014-11-28  9:43 UTC (permalink / raw)
  To: linux-kernel, Paul E. McKenney
  Cc: Lai Jiangshan, Josh Triplett, Steven Rostedt, Mathieu Desnoyers

Hi, Paul

These two patches use the special feture of the UP system:
	In UP, quiescent state == grace period.

For rcu_bh, rcu_process_callbacks() == a bh == QS == GP
so we can pass rcu_bh-QS and advance GP(and callbacks) in
rcu_process_callbacks(). After doing so, rcu_bh_qs() is useless
since its work is handled by rcu_process_callbacks().

For rcu_sched, context-switch = QS = GP, thus we can force a
context-switch when call_rcu_sched() is happened on idle_task.
After doing so, rcu_idle/irq_enter/exit() are useless.

These patches remove the useless code to simplify the tiny_rcu.

We can change rcu_bh_qs() rcu_idle/irq_enter/exit() to static-inline-functions
to reduce the binary size after these two patches accepted.

Thanks,
Lai

Cc: Josh Triplett <josh@joshtriplett.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>

Lai Jiangshan (2):
  record rcu_bh quiescent state in RCU_SOFTIRQ
  tiny_rcu: resched when call_rcu() on idle_task

 kernel/rcu/rcu.h         |    6 ++
 kernel/rcu/tiny.c        |  134 ++++++++--------------------------------------
 kernel/rcu/tiny_plugin.h |    2 +-
 kernel/rcu/tree.c        |    6 --
 4 files changed, 29 insertions(+), 119 deletions(-)

-- 
1.7.4.4


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-12-09 17:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-28  9:43 [RFC PATCH 0/2] tiny_rcu: simplify tiny_rcu Lai Jiangshan
2014-11-28  9:43 ` [RFC PATCH 1/2] record rcu_bh quiescent state in RCU_SOFTIRQ Lai Jiangshan
2014-11-28  9:43 ` [RFC PATCH 2/2] tiny_rcu: resched when call_rcu_sched() on idle_task Lai Jiangshan
2014-11-28 15:42 ` [RFC PATCH 0/2] tiny_rcu: simplify tiny_rcu Paul E. McKenney
2014-12-09  9:43   ` Lai Jiangshan
2014-12-09  9:53     ` [PATCH] tiny_rcu: directly force QS when call_rcu_[bh|sched]() on idle_task Lai Jiangshan
2014-12-09 17:02       ` Paul E. McKenney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).