From: Patrick McHardy <kaber@trash.net>
To: Martin Josefsson <gandalf@wlug.westbo.se>
Cc: netfilter-devel <netfilter-devel@lists.netfilter.org>
Subject: Re: [PATCH 05/11] More __read_mostly
Date: Fri, 03 Nov 2006 13:13:17 +0100 [thread overview]
Message-ID: <454B325D.6060704@trash.net> (raw)
In-Reply-To: <Pine.LNX.4.58.0611031304500.2974@tux.rsn.bth.se>
Martin Josefsson wrote:
> On Fri, 3 Nov 2006, Patrick McHardy wrote:
>
>
>>Martin Josefsson wrote:
>>
>>>Place rarely written variables in the read-mostly section by using __read_mostly
>>>
>>>--- linux-2.6.19-rc3-git4.quilt.orig/net/netfilter/nf_conntrack_helper.c 2006-11-01 21:39:48.000000000 +0100
>>>+++ linux-2.6.19-rc3-git4.quilt/net/netfilter/nf_conntrack_helper.c 2006-11-01 21:39:51.000000000 +0100
>>>@@ -30,7 +30,7 @@
>>> #include <net/netfilter/nf_conntrack_helper.h>
>>> #include <net/netfilter/nf_conntrack_core.h>
>>>
>>>-static LIST_HEAD(helpers);
>>>+static struct list_head helpers __read_mostly = { &(helpers), &(helpers) };
>>
>>Applied, but I changed this to static __read_mostly LIST_HEAD(helpers).
>
>
> I thought I tried that and gcc barfed... maybe it was too late at night :)
It barfed at me too when I put it behind LIST_HEAD (for whatever
reason), but this way compiles cleanly.
next prev parent reply other threads:[~2006-11-03 12:13 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-01 21:08 [PATCH 00/11] Minor Cleanups Martin Josefsson
2006-11-01 21:08 ` [PATCH 01/11] Split out expectation handling Martin Josefsson
2006-11-03 11:49 ` Patrick McHardy
2006-11-01 21:08 ` [PATCH 02/11] Split out helper handling Martin Josefsson
2006-11-03 11:50 ` Patrick McHardy
2006-11-01 21:08 ` [PATCH 03/11] Split out the event cache Martin Josefsson
2006-11-03 11:52 ` Patrick McHardy
2006-11-03 11:57 ` Patrick McHardy
2006-11-03 12:03 ` Martin Josefsson
2006-11-03 12:47 ` Yasuyuki KOZAKAI
[not found] ` <200611031247.kA3CleEl011459@toshiba.co.jp>
2006-11-03 12:51 ` Patrick McHardy
2006-11-03 12:57 ` Yasuyuki KOZAKAI
2006-11-03 13:31 ` Martin Josefsson
2006-11-03 13:45 ` Patrick McHardy
2006-11-01 21:08 ` [PATCH 04/11] Split out protocol handling Martin Josefsson
2006-11-03 11:59 ` Patrick McHardy
2006-11-01 21:08 ` [PATCH 05/11] More __read_mostly Martin Josefsson
2006-11-03 12:04 ` Patrick McHardy
2006-11-03 12:05 ` Martin Josefsson
2006-11-03 12:13 ` Patrick McHardy [this message]
2006-11-03 12:16 ` Martin Josefsson
2006-11-01 21:08 ` [PATCH 06/11] Rename struct nf_conntrack_protocol Martin Josefsson
2006-11-03 12:07 ` Patrick McHardy
2006-11-03 12:10 ` Martin Josefsson
2006-11-03 12:11 ` Jozsef Kadlecsik
2006-11-03 12:39 ` Patrick McHardy
2006-11-03 12:51 ` Yasuyuki KOZAKAI
[not found] ` <200611031251.kA3Cpao9010791@toshiba.co.jp>
2006-11-03 13:53 ` Patrick McHardy
2006-11-01 21:08 ` [PATCH 07/11] More sanity checks in protocol registration/unregistration Martin Josefsson
2006-11-03 12:21 ` Patrick McHardy
2006-11-01 21:08 ` [PATCH 08/11] Remove ASSERT_{READ,WRITE}_LOCK Martin Josefsson
2006-11-03 12:25 ` Patrick McHardy
2006-11-03 12:32 ` Martin Josefsson
2006-11-03 12:42 ` Patrick McHardy
2006-11-01 21:08 ` [PATCH 09/11] Minor __nf_ct_refresh_acct() whitespace cleanup Martin Josefsson
2006-11-01 21:08 ` [PATCH 10/11] Remove unused struct list_head from protocols Martin Josefsson
2006-11-03 12:27 ` Patrick McHardy
2006-11-01 21:08 ` [PATCH 11/11] Reduce timer updates in __nf_ct_refresh_acct() Martin Josefsson
2006-11-03 12:39 ` Patrick McHardy
2006-11-03 13:27 ` Martin Josefsson
2006-11-03 13:40 ` Patrick McHardy
2006-11-03 13:48 ` Martin Josefsson
2006-11-03 13:54 ` Patrick McHardy
2006-11-03 14:02 ` Martin Josefsson
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=454B325D.6060704@trash.net \
--to=kaber@trash.net \
--cc=gandalf@wlug.westbo.se \
--cc=netfilter-devel@lists.netfilter.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.