| To: | Andi Kleen <ak@xxxxxxx> |
|---|---|
| Subject: | Re: [PATCH] Prevent netpoll hanging when link is down |
| From: | Matt Mackall <mpm@xxxxxxxxxxx> |
| Date: | Mon, 11 Oct 2004 11:58:52 -0500 |
| Cc: | "David S. Miller" <davem@xxxxxxxxxxxxx>, Andrew Morton <akpm@xxxxxxxx>, colin@xxxxxxxxxx, netdev@xxxxxxxxxxx |
| In-reply-to: | <20041011164315.GH26350@xxxxxxxxxxxxx> |
| References: | <20041007214505.GB31558@xxxxxxxxxxxxx> <20041008090610.70d7e183@pirandello> <20041008220001.GE31237@xxxxxxxxx> <20041008151839.01823e0c.akpm@xxxxxxxx> <20041010205928.6e54df7e.davem@xxxxxxxxxxxxx> <20041011154000.GB26350@xxxxxxxxxxxxx> <20041011162224.GL31237@xxxxxxxxx> <20041011163226.GG26350@xxxxxxxxxxxxx> <20041011163601.GM31237@xxxxxxxxx> <20041011164315.GH26350@xxxxxxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.3.28i |
On Mon, Oct 11, 2004 at 06:43:15PM +0200, Andi Kleen wrote: > > It's not recursion on printk that's a problem, it's recursion on > > ->poll() and attempting to take whatever internal driver locks. > > There is no recursion on poll because printk will never call into > the low level console driver when the console sem is already taken. Ergh, you deleted the context. Again, imagine we're originally in ->poll() for _a non-netpoll-related reason_. In other words, the console sem is not taken, because we're just doing routine network I/O. While in poll(), we take a private driver lock. Then for whatever reason, we printk -> netconsole -> netpoll -> poll() again where we attempt to retake the private driver lock. > P.S.: I made the same mistake long ago, but akpm set me straight. I'm pretty sure this case is different. -- Mathematics is the supreme nostalgia of our time. |
| Previous by Date: | Re: via-velocity heads up (was (Re: Linux 2.6.9-rc4 - pls test (and no more patches)), Jerone Young |
|---|---|
| Next by Date: | Re: [PATCH] Prevent netpoll hanging when link is down, Andi Kleen |
| Previous by Thread: | Re: [PATCH] Prevent netpoll hanging when link is down, Andi Kleen |
| Next by Thread: | Re: [PATCH] Prevent netpoll hanging when link is down, Andi Kleen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |