summaryrefslogtreecommitdiff
path: root/sys/dev/ic/qla.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2019-08-20 22:31:29 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2019-08-20 22:31:29 +0000
commitea040f2c1fdfb6481acf944aae6f4f999c40ae7b (patch)
tree725b67522334067b7c4361f807dc85052054b719 /sys/dev/ic/qla.c
parent21361fa1bbd13b0cfc721321f7e345d638b0cc03 (diff)
Use the defines DETACH_FORCE and DETACH_QUIET when constructing a value
that will end up in config_detach() flags via scsi_detach_target(). ok jmatthew@ dlg@
Diffstat (limited to 'sys/dev/ic/qla.c')
-rw-r--r--sys/dev/ic/qla.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/ic/qla.c b/sys/dev/ic/qla.c
index 53c6e9e8226..9ab8a2f4603 100644
--- a/sys/dev/ic/qla.c
+++ b/sys/dev/ic/qla.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: qla.c,v 1.56 2017/06/05 04:57:37 dlg Exp $ */
+/* $OpenBSD: qla.c,v 1.57 2019/08/20 22:31:28 krw Exp $ */
/*
* Copyright (c) 2011 David Gwynne <dlg@openbsd.org>
@@ -1776,7 +1776,8 @@ qla_do_update(void *xsc)
TAILQ_REMOVE(&detach, port, ports);
if (port->flags & QLA_PORT_FLAG_IS_TARGET) {
scsi_detach_target(sc->sc_scsibus,
- port->loopid, -1);
+ port->loopid, DETACH_FORCE |
+ DETACH_QUIET);
}
sc->sc_targets[port->loopid] = NULL;
if (port->location & QLA_LOCATION_FABRIC)
@@ -1992,7 +1993,8 @@ qla_do_update(void *xsc)
DEVNAME(sc), port->loopid);
if (sc->sc_scsibus != NULL)
scsi_detach_target(sc->sc_scsibus,
- port->loopid, -1);
+ port->loopid, DETACH_FORCE |
+ DETACH_QUIET);
if (port->location & QLA_LOCATION_FABRIC)
qla_fabric_plogo(sc, port);