On Fri, 21 Apr 2006, Randy.Dunlap wrote: > My current (ugly, debug) patch is at > http://www.xenotime.net/linux/patches/aha152x-sg-pio.patch A couple of quick notes: 1. You have to disable local interrupts before (scsi_)kmap_atomic(_sg)() and restore them after (scsi_)kunmap_atomic(_sg)() (didn't check the context of your patch, so, maybe it is already the case, if not, please, fix) 2. You have to initialise your sg_len variable before calling scsi_kmap_atomic_sg() Thanks Guennadi --- Guennadi Liakhovetski - : 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