| To: | <Administrator@xxxxxxxxxxx> |
|---|---|
| Subject: | Re: Problem with dev_kfree_skb_any() in 2.6.0 |
| From: | "David S. Miller" <davem@xxxxxxxxxx> |
| Date: | Mon, 29 Mar 2004 16:46:16 +0100 |
| Cc: | <benh@xxxxxxxxxxxxxxxxxxx>, <linux-kernel@xxxxxxxxxxxxxxx>, <netdev@xxxxxxxxxxx> |
| Delivery-date: | Tue, 06 Jan 2004 04:01:13 +0000 |
| Envelope-to: | paul@xxxxxxxxxxxxxxxxxxxxxxx |
| Importance: | normal |
| In-reply-to: | <20040102025807.GB3851@xxxxxxx> |
| Priority: | normal |
| References: | <1072567054.4112.14.camel@gaston><20031227170755.4990419b.davem@xxxxxxxxxx><3FF0FA6A.8000904@xxxxxxxxx><20031229205157.4c631f28.davem@xxxxxxxxxx><20031230051519.GA6916@xxxxxxx><20031229220122.30078657.davem@xxxxxxxxxx><3FF11745.4060705@xxxxxxxxx><20031229221345.31c8c763.davem@xxxxxxxxxx><3FF1B939.1090108@xxxxxxxxx><20040101124218.258e8b73.davem@xxxxxxxxxx><20040102025807.GB3851@xxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| Thread-index: | AcQVpPi/6jl7RJgWSniqg3U2VyU1pw== |
On Thu, 1 Jan 2004 21:58:07 -0500 Jeff Garzik <jgarzik@xxxxxxxxx> wrote: > On Thu, Jan 01, 2004 at 12:42:18PM -0800, David S. Miller wrote: > > Though, is there any particular reason you don't like adding a > > "|| irqs_disabled()" check to the if statement instead? > > I prefer that solution better actually. > > Yep, in fact when I wrote the above message, I came across a couple when I > was pondering... > * the destructor runs in a more predictable context. > * given the problem that started this thread, the 'if' test is a > potentially problematic area. Why not eliminate all possibility that > this problem will occur again? The way I see this, dev_kfree_skb_any() is not used in any performance critical path, so at worst during device shutdown, reset, or power-down, TX queue packet freeing work could be delayed by up to one jiffie. Therefore I've put the "|| irqs_disabled()" version of the fix into my tree. Thanks for working this out with me Jeff :) - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: (usagi-core 16947) Re: 2.6.0: something is leaking memory, YOSHIFUJI Hideaki / 吉藤英明 |
|---|---|
| Next by Date: | Re: fealnx oopses, Andreas Henriksson |
| Previous by Thread: | Re: (usagi-core 16947) Re: 2.6.0: something is leaking memory, YOSHIFUJI Hideaki / 吉藤英明 |
| Next by Thread: | [patch 0/4] 2.6.5-rc2-mm5 - r8169 queue, Francois Romieu |
| Indexes: | [Date] [Thread] [Top] [All Lists] |