Re: [PATCH] macb: Add support of the netpoll API

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Haavard Skinnemoen
Date: Friday, April 17, 2009 - 2:25 am

David Miller wrote:

Yes, but we're about to take it. poll_controller() disables interrupts
and calls the interrupt handler, which takes the lock. That's
essentially an open-coded spin_lock_irqsave().

Now, that will obviously deadlock too if we're called from within the
interrupt handler or some other place holding bp->lock...

I guess you're right -- we just have to be careful about calling
printk() from within the driver. But it seems a lot easier to just drop
the lock before dumping an error message than it is to work around that
disable_irq() deadlock. And if you're running with verbose debugging
enabled, you probably shouldn't be using netconsole anyway.

Haavard
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] macb: Add support of the netpoll API, Thomas Petazzoni, (Wed Apr 15, 6:46 am)
Re: [PATCH] macb: Add support of the netpoll API, Haavard Skinnemoen, (Thu Apr 16, 2:07 am)
Re: [PATCH] macb: Add support of the netpoll API, Thomas Petazzoni, (Thu Apr 16, 2:24 am)
Re: [PATCH] macb: Add support of the netpoll API, Haavard Skinnemoen, (Thu Apr 16, 3:31 am)
Re: [PATCH] macb: Add support of the netpoll API, David Miller, (Fri Apr 17, 1:34 am)
Re: [PATCH] macb: Add support of the netpoll API, Haavard Skinnemoen, (Fri Apr 17, 2:07 am)
Re: [PATCH] macb: Add support of the netpoll API, David Miller, (Fri Apr 17, 2:08 am)
Re: [PATCH] macb: Add support of the netpoll API, Haavard Skinnemoen, (Fri Apr 17, 2:25 am)
Re: [PATCH] macb: Add support of the netpoll API, David Miller, (Fri Apr 17, 2:33 am)
Re: [PATCH] macb: Add support of the netpoll API, Haavard Skinnemoen, (Fri Apr 17, 2:50 am)
Re: [PATCH] macb: Add support of the netpoll API, David Miller, (Fri Apr 17, 3:44 am)
Re: [PATCH] macb: Add support of the netpoll API, David Miller, (Fri Apr 17, 4:39 am)
Re: [PATCH] macb: Add support of the netpoll API, Haavard Skinnemoen, (Fri Apr 17, 4:41 am)
[PATCH] macb: Add support of the netpoll API, Haavard Skinnemoen, (Mon Apr 20, 3:57 am)
Re: [PATCH] macb: Add support of the netpoll API, David Miller, (Tue Apr 21, 1:54 am)
[PATCH v3] macb: Add support of the netpoll API, Haavard Skinnemoen, (Mon May 4, 4:54 am)
Re: [PATCH v3] macb: Add support of the netpoll API, David Miller, (Mon May 4, 11:08 am)