On Tue, 2009-04-28 at 13:35 -0600, Matthew Wilcox wrote: > + scsi_host_get(shost); > + cookie = async_schedule_domain(async_scsi_scan_host, shost, > + &scan_domain); > + if (strncmp(scsi_scan_type, "sync", 4) == 0) > + async_synchronize_cookie_domain(cookie, &scan_domain); This last statement doesn't actually do anything. It waits for all prior scans to complete, but not this one, so we're not actually synchronous here ... we don't wait for the scan we just kicked off to complete. Arjan suggests a way to hack around this might be async_synchronize_cookie_domain(cookie + 1, &scan_domain); James -- 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