| To: | Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH] Make netif_rx_ni preempt-safe |
| From: | "David S. Miller" <davem@xxxxxxxxxxxxx> |
| Date: | Wed, 20 Oct 2004 21:58:40 -0700 |
| Cc: | vda@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, rlrevell@xxxxxxxxxxx, akpm@xxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxxxxxx, maxk@xxxxxxxxxxxx, irda-users@xxxxxxxxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx, alain@xxxxxxxxxxxxxxx |
| In-reply-to: | <20041021003503.GA10391@gondor.apana.org.au> |
| References: | <1098230132.23628.28.camel@krustophenia.net> <200410202256.56636.vda@port.imtp.ilyichevsk.odessa.ua> <1098303951.2268.8.camel@krustophenia.net> <200410202332.33583.vda@port.imtp.ilyichevsk.odessa.ua> <20041020171508.0e947d08.davem@davemloft.net> <20041021003503.GA10391@gondor.apana.org.au> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
On Thu, 21 Oct 2004 10:35:03 +1000
Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> wrote:
> On Wed, Oct 20, 2004 at 05:15:08PM -0700, David S. Miller wrote:
> >
> > +int netif_rx_ni(struct sk_buff *skb)
> > +{
> > + int err = netif_rx(skb);
> > +
> > + preempt_disable();
> > + if (softirq_pending(smp_processor_id()))
> > + do_softirq();
>
> You need to move the netif_rx call inside the disable as otherwise
> you might be checking the pending flag on the wrong CPU.
Good catch, I've made that fix in my tree.
Thanks.
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 2.6] iptables hashlimit match, David S. Miller |
|---|---|
| Next by Date: | Re: [XFRM] Allow transport SAs even when there is no policy, David S. Miller |
| Previous by Thread: | Re: [PATCH] Make netif_rx_ni preempt-safe, Herbert Xu |
| Next by Thread: | [PATCH] Change masquerade code to use first IP address of interface., Rusty Russell |
| Indexes: | [Date] [Thread] [Top] [All Lists] |