rculfhash: make struct rcu_level size power of 2
authorLai Jiangshan <laijs@cn.fujitsu.com>
Mon, 17 Oct 2011 13:32:00 +0000 (09:32 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 17 Oct 2011 13:39:36 +0000 (09:39 -0400)
commit0d14ceb26e0ff3e1d6f86cf3ec9674ee3b16e96f
treec9a0234e8f123b31a0720aff821e3ba49f7b3edd
parent9abc187826737149c44ef037ec0b2f3ed0fa36c2
rculfhash: make struct rcu_level size power of 2

By adding a small slowpath overhead (added synchronize_rcu call in the
last iteration of the resize), we can reduce the amount of wasted memory
for memory allocators that allocate power of two memory areas. This is
achieved by removing the call_rcu head from struct rcu_level.

[ Edit by Mathieu Desnoyers:
  - add comment about need to manually update the allocation size of
    fields are added to struct rcu_level.
  - create a more explanatory title and changelog. ]

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
rculfhash.c
This page took 0.025156 seconds and 4 git commands to generate.