Preempt-RCU: implementation
This patch implements a new version of RCU which allows its read-side critical sections to be preempted. It uses a set of counter pairs to keep track of the read-side critical sections and flips them when all tasks exit read-side critical section. The details of this implementation can be found in this paper - http://www.rdrop.com/users/paulmck/RCU/OLSrtRCU.2006.08.11a.pdf and the article- http://lwn.net/Articles/253651/ This patch was developed as a part of the -rt kernel development and meant to provide better latencies when read-side critical sections of RCU don't disable preemption. As a consequence of keeping track of RCU readers, the readers have a slight overhead (optimizations in the paper). This implementation co-exists with the "classic" RCU implementations and can be switched to at compiler. Also includes RCU tracing summarized in debugfs. [ akpm@linux-foundation.org: build fixes on non-preempt architectures ] Signed-off-by:Gautham R Shenoy <ego@in.ibm.com> Signed-off-by:
Dipankar Sarma <dipankar@in.ibm.com> Signed-off-by:
Paul E. McKenney <paulmck@us.ibm.com> Reviewed-by:
Steven Rostedt <srostedt@redhat.com> Signed-off-by:
Ingo Molnar <mingo@elte.hu>
Showing
- fs/Kconfig 0 additions, 1 deletionfs/Kconfig
- include/linux/rcuclassic.h 3 additions, 0 deletionsinclude/linux/rcuclassic.h
- include/linux/rcupdate.h 7 additions, 4 deletionsinclude/linux/rcupdate.h
- include/linux/rcupreempt.h 86 additions, 0 deletionsinclude/linux/rcupreempt.h
- include/linux/rcupreempt_trace.h 99 additions, 0 deletionsinclude/linux/rcupreempt_trace.h
- include/linux/sched.h 5 additions, 0 deletionsinclude/linux/sched.h
- init/Kconfig 28 additions, 0 deletionsinit/Kconfig
- kernel/Kconfig.preempt 10 additions, 0 deletionskernel/Kconfig.preempt
- kernel/Makefile 6 additions, 1 deletionkernel/Makefile
- kernel/fork.c 4 additions, 0 deletionskernel/fork.c
- kernel/rcuclassic.c 0 additions, 1 deletionkernel/rcuclassic.c
- kernel/rcupreempt.c 816 additions, 0 deletionskernel/rcupreempt.c
- kernel/rcupreempt_trace.c 330 additions, 0 deletionskernel/rcupreempt_trace.c
Loading
Please register or sign in to comment