aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/rcutorture
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2018-08-14 14:41:49 -0700
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2018-08-30 16:10:49 -0700
commit4e6ea4ef56f9425cd239ffdb6be45b3aeeb347fd (patch)
tree81702573011d79ef39d2934e020372976256b9de /tools/testing/selftests/rcutorture
parentrcutorture: Test early boot call_srcu() (diff)
downloadlinux-dev-4e6ea4ef56f9425cd239ffdb6be45b3aeeb347fd.tar.xz
linux-dev-4e6ea4ef56f9425cd239ffdb6be45b3aeeb347fd.zip
srcu: Make early-boot call_srcu() reuse workqueue lists
Allocating a list_head structure that is almost never used, and, when used, is used only during early boot (rcu_init() and earlier), is a bit wasteful. This commit therefore eliminates that list_head in favor of the one in the work_struct structure. This is safe because the work_struct structure cannot be used until after rcu_init() returns. Reported-by: Steven Rostedt <rostedt@goodmis.org> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Tejun Heo <tj@kernel.org> Cc: Lai Jiangshan <jiangshanlai@gmail.com> Tested-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'tools/testing/selftests/rcutorture')
0 files changed, 0 insertions, 0 deletions