CVSROOT:        /cvs
Module name:    src
Changes by:     d...@cvs.openbsd.org    2009/10/22 19:02:29

Modified files:
        sys/dev/ic     : mpi.c 
        sys/scsi       : mpath.c scsiconf.c scsiconf.h 

Log message:
if you're attempting to detach multiple devices (eg, many targets,
many luns, or the entire bus), dont report ENXIO as an error to the
caller. this broke autoconf when it tried to forcefully remove a
bus such as umass and it thought there was a failure.

this introduces a way for scsi hbas to call activate/deactivate on
a device based on its target/lun address via a call to scsi_activate().
they can then schedule the actual detach/attach in a thread later via
scsi_req_probe/detach.

the mpi changes tweak the sas event handling code to use these apis
to properly handle attaches and detaches of disks. event handling
is still disabled till i can make it less chatty.

umass breakage reported by form@

Reply via email to