• A
    PCI: Multiprobe sanitizer · 50b00755
    Alan Cox 提交于
    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: NAlan Cox <alan@redhat.com>
    Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
    50b00755
pci.h 29.5 KB