]> git.baikalelectronics.ru Git - kernel.git/commit
rhashtable: ensure cache line alignment on bucket_table
authorEric Dumazet <edumazet@google.com>
Fri, 20 Feb 2015 14:48:57 +0000 (06:48 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Feb 2015 02:59:57 +0000 (21:59 -0500)
commitc4aa74e625ed0f1e7f9cea55bd26a65f89bff0e1
treebdae10b0c83047a55ed671b4d4d6ca7ebf26a2ab
parent41588d3ef7f198f16aa710f55c205dbbd415e644
rhashtable: ensure cache line alignment on bucket_table

struct bucket_table contains mostly read fields :

size, locks_mask, locks.

Make sure these are not sharing a cache line with buckets[]

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/rhashtable.h