diff options
author | 2019-08-20 22:31:28 +0000 | |
---|---|---|
committer | 2019-08-20 22:31:28 +0000 | |
commit | cc5e21de1cd2eafce04c281739eff6688408d9bc (patch) | |
tree | bc6f0e612353d37ad8d54f0d69f0a0968565da21 /sys/dev/pci/qle.c | |
parent | Enable ipmi(4). (diff) | |
download | wireguard-openbsd-cc5e21de1cd2eafce04c281739eff6688408d9bc.tar.xz wireguard-openbsd-cc5e21de1cd2eafce04c281739eff6688408d9bc.zip |
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/pci/qle.c')
-rw-r--r-- | sys/dev/pci/qle.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/pci/qle.c b/sys/dev/pci/qle.c index aa3fd624327..561673fe271 100644 --- a/sys/dev/pci/qle.c +++ b/sys/dev/pci/qle.c @@ -1,4 +1,4 @@ -/* $OpenBSD: qle.c,v 1.45 2018/07/30 07:34:37 jmatthew Exp $ */ +/* $OpenBSD: qle.c,v 1.46 2019/08/20 22:31:28 krw Exp $ */ /* * Copyright (c) 2013, 2014 Jonathan Matthew <jmatthew@openbsd.org> @@ -2138,7 +2138,8 @@ qle_do_update(void *xsc) TAILQ_REMOVE(&detach, port, ports); if (port->flags & QLE_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 & QLE_LOCATION_FABRIC) @@ -2367,7 +2368,8 @@ qle_do_update(void *xsc) DEVNAME(sc), port->portid); if (sc->sc_scsibus != NULL) scsi_detach_target(sc->sc_scsibus, - port->loopid, -1); + port->loopid, DETACH_FORCE | + DETACH_QUIET); if (port->location & QLE_LOCATION_FABRIC) qle_fabric_plogo(sc, port); |