From: David Miller <davem@davemloft.net>
To: dada1@cosmosbay.com
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH] NET : inet_ehash_secret should be __read_mostly and set only once
Date: Tue, 27 Mar 2007 13:53:38 -0700 (PDT) [thread overview]
Message-ID: <20070327.135338.77404865.davem@davemloft.net> (raw)
In-Reply-To: <20070327121343.395a57e5.dada1@cosmosbay.com>
From: Eric Dumazet <dada1@cosmosbay.com>
Date: Tue, 27 Mar 2007 12:13:43 +0200
> Hi David
>
> Please find this patch against net-2.6.22
>
> Thank you
>
> [PATCH] 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>
Applied, but I left out this totally unrelated code formatting
change in your patch:
> @@ -684,7 +694,8 @@ int inet_sendmsg(struct kiocb *iocb, str
> }
>
>
> -static ssize_t inet_sendpage(struct socket *sock, struct page *page, int offset, size_t size, int flags)
> +static ssize_t inet_sendpage(struct socket *sock, struct page *page, int offset,
> + size_t size, int flags)
> {
> struct sock *sk = sock->sk;
>
Thanks!
next prev parent reply other threads:[~2007-03-27 20:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-27 10:13 [PATCH] NET : inet_ehash_secret should be __read_mostly and set only once Eric Dumazet
2007-03-27 20:53 ` David Miller [this message]
2007-03-27 21:03 ` Eric Dumazet
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070327.135338.77404865.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=dada1@cosmosbay.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.