CAM rescanner thread?

mjacob at freebsd.org mjacob at freebsd.org
Fri Jan 5 09:47:24 PST 2007



On Fri, 5 Jan 2007, Scott Long wrote:

> mjacob at freebsd.org wrote:
>> 
>> Opinions? Seems to do what *I* want for automatically attaching devices for 
>> mpt or isp when they appear on the fabric. All you have to do is
>> alloc a ccb && a path and call xpt_rescan.
>
> Why do you need a separate thread for this?  Many other drivers already 
> handle this just fine.

In CAM?

I did try doing it without a thread and had all sorts of problems that 
led to panics. I suppose I could try and fix that, but it's also true 
that notification that things have changed is almost certainly on an 
ithread and that the begin of a scan starts a heck of a lot of work 
before returning.

D'ya think it's that crucial other than just another proc slot?

-matt



More information about the freebsd-scsi mailing list