diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2009-10-22 11:56:33 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2009-10-22 11:56:33 +0000 |
commit | 880758c4c85cc97935b1627004254f778e022efe (patch) | |
tree | 365548e11c1f092fbef63daa7d752e97d87a5e65 /sys/scsi/scsiconf.h | |
parent | 9df3fa0d779e13d76b1adf6c7679b6783bd5fbfc (diff) |
devices below the scsibus should all be detached via scsi_detach_lun.
scsibusdetach wasnt doign it properly, so we would be leaking on detach in
some cases.
now, with the introduction of mpath, the scsi_link structures can
represent a path to a mpath node as well as normal devices. this
intercepts the device activate entrypoints and sends them to mpath
if it it in use rather than assuming a device is always there. the
scsibusdetach change ensures that detach always ends up handling
the mpath node case too.
hotplug bus functionality (eg, usb) tested by form@
Diffstat (limited to 'sys/scsi/scsiconf.h')
-rw-r--r-- | sys/scsi/scsiconf.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/scsi/scsiconf.h b/sys/scsi/scsiconf.h index 82ca8533e04..63cdacecd1b 100644 --- a/sys/scsi/scsiconf.h +++ b/sys/scsi/scsiconf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: scsiconf.h,v 1.103 2009/10/20 00:19:24 dlg Exp $ */ +/* $OpenBSD: scsiconf.h,v 1.104 2009/10/22 11:56:32 dlg Exp $ */ /* $NetBSD: scsiconf.h,v 1.35 1997/04/02 02:29:38 mycroft Exp $ */ /* @@ -584,5 +584,8 @@ void scsi_xs_put(struct scsi_xfer *); int mpath_path_attach(struct scsi_link *); int mpath_path_detach(struct scsi_link *, int); +int mpath_path_activate(struct scsi_link *); +int mpath_path_deactivate(struct scsi_link *); + #endif /* _KERNEL */ #endif /* SCSI_SCSICONF_H */ |