Andi Kleen wrote: >>The problem I am trying to solve is the userspace PCI access methods >>accessing my config space when the adapter is not able to handle such an >>access. Today these accesses bypass the device driver altogether and >>there is no way to stop them. An alternative to this patch would be to > > > For this I would add a semaphore or a lock bit to pci_dev. > Probably a simple flag is good enough that is checked by sysfs/proc > and return EBUSY when set. How about something like this... (only compile tested at this point) -- Brian King eServer Storage I/O IBM Linux Technology Center