On Sun, 4 Jan 2009, Arjan van de Ven wrote: > > or we declare the irq probing stuff "rare" and just make THAT fully > serializing.... > do a full synchronization before starting a probe Yes. That's entirely possible. However, have you verified that if an async thread does a synchronization, it doesn't deadlock? > > That said, I also wonder if we really even need to autoprobe the > > interrupts on any modern hardware. Rather than trying to speed up irq > > probing, maybe we could figure it out some other way.. The only thing > > that matters on 99% of all machines are the one or two standard ports > > that normally show up on 2f8h/irq3 and 3f8h/irq4 or something like > > that. > > too bad this stuff isn't PCI enumerated. > but if someone really still maintains this code, it could probably be > rewritten in a "we think it's likely irq 3. how about we test that. Oh > no? then we do expensive probing" kind of way. > > Right now I don't think I have time for it (this is going to take time.. > there's so many weird things with serial ports that it's bound to break > stuff in the beginning etc) Yeah. The problem is that that driver is used on such varied hardware. But we can probably pick it up from PnP/ACPI, and autoprobe only for things that don't get the info from there (either because they are not PC's, or becuase PnP/ACPI isn't configured in). This is one case where I wouldn't be afraid of PnP information, because we could easily choose to only trust it if it makes sense (ie "if it's the standard 2f8/irq3 thing, then you might as well trust PnP"). Linus -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html