]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rhashtable: reorganize struct rhashtable layout
authorEric Dumazet <edumazet@google.com>
Thu, 13 Sep 2018 14:58:48 +0000 (07:58 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Sep 2018 20:43:46 +0000 (22:43 +0200)
commitbd946fb5226e205530bea2581d867642e4b457ed
tree1f57581d59a4ac761fba1a759b9c890d78526f33
parent3226bdcb044862084c3bfc3278d148948600ebc4
rhashtable: reorganize struct rhashtable layout

While under frags DDOS I noticed unfortunate false sharing between
@nelems and @params.automatic_shrinking

Move @nelems at the end of struct rhashtable so that first cache line
is shared between all cpus, because almost never dirtied.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit e5d672a0780d9e7118caad4c171ec88b8299398d)
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/rhashtable.h