linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] rcu: don't assume the size of struct rcu_head
@ 2011-03-01  8:03 Lai Jiangshan
  2011-03-10  7:21 ` [PATCH 1/3 V2] slub: automatically reserve bytes at the end of slab Lai Jiangshan
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Lai Jiangshan @ 2011-03-01  8:03 UTC (permalink / raw)
  To: Ingo Molnar
  Cc: Paul E. McKenney, Christoph Lameter, Pekka Enberg, Eric Dumazet,
	David S. Miller, Matt Mackall, linux-mm, linux-kernel, netdev


We always keep the struct rcu_head very small, but we may change it in future
or under some CONFIGs.

There are some other systems may assume the size of struct rcu_head as 2 * sizeof(long).
These assumptions obstruct us to add debug information or priority information
to struct rcu_head. It is time to fix them.

It is glad that I just find 3 places which need to be fixed. These 4 patches
are just cleanup patches when the size of struct rcu_head == 2 * sizeof(long).
NO overhead added and NO behavior changed.
Even when the size of struct rcu_head becomes larger, only slub is changed a little.

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
---

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

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

end of thread, other threads:[~2011-03-10 15:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-01  8:03 [PATCH 0/4] rcu: don't assume the size of struct rcu_head Lai Jiangshan
2011-03-10  7:21 ` [PATCH 1/3 V2] slub: automatically reserve bytes at the end of slab Lai Jiangshan
2011-03-10 15:35   ` Christoph Lameter
2011-03-10  7:22 ` [PATCH 2/3 V2] slub,rcu: don't assume the size of struct rcu_head Lai Jiangshan
2011-03-10 15:36   ` Christoph Lameter
2011-03-10  7:22 ` [PATCH 3/3 V2] slab,rcu: " Lai Jiangshan
2011-03-10 15:36   ` Christoph Lameter

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