Yes, this part sucks. There needs to be an easy library function that
takes a scsi command pointer, sets up a wait queue, adds the wait queue
struct pointer to the scsi command, sleeps with a timeout, wakes up when
command completes via scsi_done() or timeout fires, returns value based
upon how wake up happened. Right now we don't have that, we only have a
little helper function, scsi_sleep(), for sleeping for a fixed length of
time.
-- Doug Ledford <dledford@redhat.com> 919-754-3700 x44233 Red Hat, Inc. 1801 Varsity Dr. Raleigh, NC 27606 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/