]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[NET]: inet_ehash_secret should be __read_mostly and set only once
authorEric Dumazet <dada1@cosmosbay.com>
Tue, 27 Mar 2007 20:53:04 +0000 (13:53 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 26 Apr 2007 05:28:17 +0000 (22:28 -0700)
commitbe776281aee54626a474ba06f91926b98bdd180d
tree7f397daec3c52ca04267186450f290f5e0ea3c5f
parent35fc92a9deee0da6e35fdc3150bb134e58f2fd63
[NET]: inet_ehash_secret should be __read_mostly and set only once

There is a very tiny probability that build_ehash_secret() is called
at the same time by different CPUS.

Also, using __read_mostly is a must for inet_ehash_secret

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/af_inet.c