Re: More PCI races...

From: David Woodhouse (dwmw2@infradead.org)
Date: Thu Jun 15 2000 - 00:49:46 EST


dwmw2@infradead.org said:
> The answer seems to be to put a lock around all four functions. As
> the probe functions are permitted to sleep, that lock should probably
> be a semaphore.

Argh. Except Documentation/pci.txt says that pci_driver->remove() routines
may be called from IRQ context, implying that pci_remove_device() may be
called from IRQ context, and hence that we can't use a semaphore.

Urgh. I need more coffee. Or some sleep.

Can we declare that pci_remove_device may not be called from IRQ context?

--
dwmw2

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Jun 15 2000 - 21:00:34 EST