From: linas@austin.ibm.com Date: Mon, 19 Jan 2004 21:15:31 +0000 Subject: calling pci_find_device in interrupt ? Message-Id: <20040119151531.C22416@forte.austin.ibm.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org 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