On 07/04/2014 04:44 PM, loody wrote:
> 
> 2. at the end of sd.c -> sd_probe, why we call async_schedule_domain like 
> below
>       async_schedule_domain(sd_probe_async, sdkp, &scsi_sd_probe_domain);
>     to finish scsi device initialization?
>     Couldn't we put what sd_probe_async directly in sd_probe?
>     is there any benefit to do so?

A possible explanation may be that sd_probe_async() calls sd_spinup_disk(), 
this function spins up the drive and
may block for some seconds, so it is better to do that asynchronously.

Regards,
Maurizio Lombardi
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to