diff options
| author | 2011-04-27 05:11:09 +0000 | |
|---|---|---|
| committer | 2011-04-27 05:11:09 +0000 | |
| commit | 0b5efc6c255678fa54264a839af5285d39d37ae8 (patch) | |
| tree | c9232de06c77c113c3a95b0c9ce76d71968ea089 /sys/dev/ic/mpi.c | |
| parent | rework the scanning of fibre channel ports to match how linux does it. (diff) | |
| download | wireguard-openbsd-0b5efc6c255678fa54264a839af5285d39d37ae8.tar.xz wireguard-openbsd-0b5efc6c255678fa54264a839af5285d39d37ae8.zip | |
return XS_RESET to the midlayer if the command was killed for some reason
rather than the default of XS_DRIVER_STUFFUP. mpath(4) likes this better
when you unplug paths.
Diffstat (limited to 'sys/dev/ic/mpi.c')
| -rw-r--r-- | sys/dev/ic/mpi.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/ic/mpi.c b/sys/dev/ic/mpi.c index ab3176174fd..99e2430f3cd 100644 --- a/sys/dev/ic/mpi.c +++ b/sys/dev/ic/mpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mpi.c,v 1.168 2011/04/27 04:03:11 dlg Exp $ */ +/* $OpenBSD: mpi.c,v 1.169 2011/04/27 05:11:09 dlg Exp $ */ /* * Copyright (c) 2005, 2006, 2009 David Gwynne <dlg@openbsd.org> @@ -1449,6 +1449,11 @@ mpi_scsi_cmd_done(struct mpi_ccb *ccb) xs->error = XS_SELTIMEOUT; break; + case MPI_IOCSTATUS_SCSI_IOC_TERMINATED: + case MPI_IOCSTATUS_SCSI_EXT_TERMINATED: + xs->error = XS_RESET; + break; + default: xs->error = XS_DRIVER_STUFFUP; break; |
