On Thu, Feb 26 2009, Randy Dunlap wrote: > Was commit 5e4c91c84b194b26cf592779e451f4b5be777cba supposed to remove > the unconditional 30-second delay and replace it with a timeout loop? > > What I see now (in source code) is the 30-second delay followed by > 30 1-second retries...??? > > > schedule_timeout_uninterruptible(30*HZ); > > /* Now try to get the controller to respond to a no-op */ > - for (i=0; i<12; i++) { > + for (i=0; i<30; i++) { > if (cciss_noop(pdev) == 0) > break; > - else > - printk("cciss: no-op failed%s\n", (i < 11 ? "; re-trying" : "")); > + > + schedule_timeout_uninterruptible(HZ); > + } > + if (i == 30) { > + printk(KERN_ERR "cciss: controller seems dead\n"); > + return -EBUSY; > } > } Good catch Randy, that first sleep should have gone away of course. I'll kill it. -- Jens Axboe -- 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