From: Andy Grover Date: Wed, 7 Jul 2010 23:46:26 +0000 (-0700) Subject: RDS/IB: Use SLAB_HWCACHE_ALIGN flag for kmem_cache_create() X-Git-Tag: v2.6.37-rc1~147^2~499^2~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c20f5b9633bb0953bd2422f0f1430a2028cdbd0a;p=platform%2Fupstream%2Fkernel-adaptation-pc.git RDS/IB: Use SLAB_HWCACHE_ALIGN flag for kmem_cache_create() We are *definitely* counting cycles as closely as DaveM, so ensure hwcache alignment for our recv ring control structs. Signed-off-by: Andy Grover --- diff --git a/net/rds/ib_recv.c b/net/rds/ib_recv.c index 9c4208f..37dab28 100644 --- a/net/rds/ib_recv.c +++ b/net/rds/ib_recv.c @@ -1051,13 +1051,13 @@ int __init rds_ib_recv_init(void) rds_ib_incoming_slab = kmem_cache_create("rds_ib_incoming", sizeof(struct rds_ib_incoming), - 0, 0, NULL); + 0, SLAB_HWCACHE_ALIGN, NULL); if (!rds_ib_incoming_slab) goto out; rds_ib_frag_slab = kmem_cache_create("rds_ib_frag", sizeof(struct rds_page_frag), - 0, 0, NULL); + 0, SLAB_HWCACHE_ALIGN, NULL); if (!rds_ib_frag_slab) kmem_cache_destroy(rds_ib_incoming_slab); else