Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1270514
| From | "Jason A. Donenfeld" <Jason@zx2c4.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2] ip_tunnel: disable preemption when updating per-cpu tstats |
| Date | 2015-11-16 20:40 +0100 |
| Message-ID | <qvxN8-33j-23@gated-at.bofh.it> (permalink) |
| References | <qu28G-2eq-23@gated-at.bofh.it> <qu34K-2QO-3@gated-at.bofh.it> <qvxtL-2U5-15@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, Nov 16, 2015 at 8:17 PM, David Miller <davem@davemloft.net> wrote: > So another fix could have been to do local_bh_disable() in the > udp_tunnel6_xmit_skb() helper. This would have fixed one problem, but everywhere udp_tunnel_xmit_skb() (4, not 6) is called, iptunnel_xmit_stats is called right after it, so there would have to be a modicum of patches for all of these places too. By the way, there's something else I noticed about this in dealing with these functions: the return value of udp_tunnel_xmit_skb is different from that of udp_tunnel6_xmit_skb. Nobody is using them incorrectly, so far as I can see, but it is confusing that they return different things. I had started to clean this up and send a patch, but it got a bit invasive in drivers I shouldn't really touch. But if somebody with a bit more top-down command of things wants to poke at this, it's a low hanging fruit as far as I can see. > > Thanks again. My pleasure. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: [PATCH v2] ip_tunnel: disable preemption when updating per-cpu tstats David Miller <davem@davemloft.net> - 2015-11-16 20:20 +0100 Re: [PATCH v2] ip_tunnel: disable preemption when updating per-cpu tstats "Jason A. Donenfeld" <Jason@zx2c4.com> - 2015-11-16 20:40 +0100
csiph-web