]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Multiprobe sanitizer
authorAlan Cox <alan@lxorguk.ukuu.org.uk>
Wed, 16 Aug 2006 16:42:18 +0000 (17:42 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 27 Sep 2006 00:43:53 +0000 (17:43 -0700)
commit886a039fe7e4f333bea8d26d4932a2fc1c07f2fb
treeafb8dfb1ebb24b96754efea260a071ca79241ccd
parentb3153d57af5aea40813eb7a7449086351f7e8606
PCI: Multiprobe sanitizer

There are numerous drivers that can use multithreaded probing but having
some kind of global flag as the way to control this makes migration to
threaded probing hard and since it enables it everywhere and is almost
as likely to cause serious pain as holding a clog dance in a minefield.

If we have a pci_driver multithread_probe flag to inherit you can turn
it on for one driver at a time.

From playing so far however I think we need a different model at the
device layer which serializes until the called probe function says "ok
you can start another one now". That would need some kind of flag and
semaphore plus a helper function.

Anyway in the absence of that this is a starting point to usefully play
with this stuff

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/pci-driver.c
include/linux/pci.h