linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* calling pci_find_device in interrupt ?
@ 2004-01-19 21:15 linas
  2004-01-19 21:41 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: linas @ 2004-01-19 21:15 UTC (permalink / raw)
  To: linux-hotplug


Greg,

I was calling pci_find_device() from an interrupt, when I discovered
that it has a WARN_ON(in_interrupt()); in it.

Why?  If spin_lock(&pci_bus_lock); was changed to spin_lock_irqsave(),
it seems like it would be interrupt-safe.  

Rather than sending a patch that makes this change, I thought I'd 
enquire politely first ... 

--linas



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-01-19 21:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-19 21:15 calling pci_find_device in interrupt ? linas
2004-01-19 21:41 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).