2006-10-25 03:51:34

by Phillip Susi

[permalink] [raw]
Subject: Background scan of sata drives

I seem to recall seeing mention flow by on the lkml at some point that
sata disks are now scanned in the background rather than blocking in the
modprobe, but that there is a new dummy module you can load that just
blocks until all drives have been scanned. I tried but was unable to
find the thread that mentioned this, so does anyone know what that
module was?


2006-10-30 06:26:33

by Tejun Heo

[permalink] [raw]
Subject: Re: Background scan of sata drives

Phillip Susi wrote:
> I seem to recall seeing mention flow by on the lkml at some point that
> sata disks are now scanned in the background rather than blocking in the
> modprobe, but that there is a new dummy module you can load that just
> blocks until all drives have been scanned. I tried but was unable to
> find the thread that mentioned this, so does anyone know what that
> module was?

Scanning during boot and module loading is blocking. modprobe will wait
in the kernel until the initial scan is complete. But user initiated
scan (echo - - - > /sys/class/scsi_host/hostX/scan) doesn't wait for
completion. Patch to make user scan blocking is pending.

--
tejun

2006-10-30 15:33:39

by Phillip Susi

[permalink] [raw]
Subject: Re: Background scan of sata drives

I could have sworn I saw a patch in the last month or two that made the
modprobe scan NON blocking, and added a new dummy module you could
modprobe that would block until the scan was complete. Am I imagining this?

Tejun Heo wrote:
> Phillip Susi wrote:
>> I seem to recall seeing mention flow by on the lkml at some point that
>> sata disks are now scanned in the background rather than blocking in
>> the modprobe, but that there is a new dummy module you can load that
>> just blocks until all drives have been scanned. I tried but was
>> unable to find the thread that mentioned this, so does anyone know
>> what that module was?
>
> Scanning during boot and module loading is blocking. modprobe will wait
> in the kernel until the initial scan is complete. But user initiated
> scan (echo - - - > /sys/class/scsi_host/hostX/scan) doesn't wait for
> completion. Patch to make user scan blocking is pending.
>