| To: | Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: tun.c patch to fix "smp_processor_id() in preemptible code" |
| From: | Lee Revell <rlrevell@xxxxxxxxxxx> |
| Date: | Tue, 19 Oct 2004 18:10:58 -0400 |
| Cc: | vda@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, Linux Network Development <netdev@xxxxxxxxxxx>, linux-kernel <linux-kernel@xxxxxxxxxxxxxxx>, maxk@xxxxxxxxxxxx, irda-users@xxxxxxxxxxxxxxxxxxxxx |
| In-reply-to: | <20041019215401.GA16427@xxxxxxxxxxxxxxxxxxx> |
| References: | <E1CK1e6-0004F3-00@xxxxxxxxxxxxxxxxxxxxxxxx> <1098222676.23367.18.camel@xxxxxxxxxxxxxxxx> <20041019215401.GA16427@xxxxxxxxxxxxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
On Tue, 2004-10-19 at 17:54, Herbert Xu wrote: > On Tue, Oct 19, 2004 at 05:51:17PM -0400, Lee Revell wrote: > > > > Ok, here is the correct patch. If this is really just a matter of > > performance, and not required for correctness, disabling preemption is > > broken, right? > > No if you're doing this then you should get rid of netif_rx_ni() > altogether. But before you do that please ask all the people who > call it. There are not a lot of them: drivers/s390/net/ctcmain.c drivers/s390/net/netiucv.c drivers/net/irda/vlsi_ir.c drivers/net/tun.c >From netiuvc.c: /* * Since receiving is always initiated from a tasklet (in iucv.c), * we must use netif_rx_ni() instead of netif_rx() */ This implies that the author thought it was a matter of correctness to use netif_rx_ni vs. netif_rx. But it looks like the only difference is that the former sacrifices preempt-safety for performance. I could not find maintainers for the two s390 drivers, or a specific maintainer for vlsi_ir. Lee |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 2.6.9] skge: netpoll support, Matt Mackall |
|---|---|
| Next by Date: | [PATCH 2.6.9]: Fix netdevice/inet6_dev reference leaks in ip6_route_add error paths, Patrick McHardy |
| Previous by Thread: | Re: tun.c patch to fix "smp_processor_id() in preemptible code", Herbert Xu |
| Next by Thread: | Re: tun.c patch to fix "smp_processor_id() in preemptible code", David S. Miller |
| Indexes: | [Date] [Thread] [Top] [All Lists] |