Skip to content

Commit

Permalink
RDS/IB: Use SLAB_HWCACHE_ALIGN flag for kmem_cache_create()
Browse files Browse the repository at this point in the history
We are *definitely* counting cycles as closely as DaveM, so
ensure hwcache alignment for our recv ring control structs.

Signed-off-by: Andy Grover <andy.grover@oracle.com>
  • Loading branch information
Andy Grover committed Sep 9, 2010
1 parent d455ab6 commit c20f5b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/rds/ib_recv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c20f5b9

Please sign in to comment.