diff options
author | mav <mav@FreeBSD.org> | 2014-07-15 17:19:43 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2014-07-15 17:19:43 +0000 |
commit | 68cf85bc2c164d4ff781efd1102170553980d23c (patch) | |
tree | fe6c99badc22cddf406b8fe5da6af18669ea54d0 | |
parent | 1e9a14c2c4d55bb2ab838cecc853bb3ba0b3f662 (diff) | |
download | FreeBSD-src-68cf85bc2c164d4ff781efd1102170553980d23c.zip FreeBSD-src-68cf85bc2c164d4ff781efd1102170553980d23c.tar.gz |
MFC r268421:
Remove status setting from datamove() path. Leave that to other places.
-rw-r--r-- | sys/cam/ctl/ctl.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/cam/ctl/ctl.c b/sys/cam/ctl/ctl.c index d954e2b..6ef555c 100644 --- a/sys/cam/ctl/ctl.c +++ b/sys/cam/ctl/ctl.c @@ -12508,7 +12508,6 @@ ctl_datamove(union ctl_io *io) io->io_hdr.nexus.targ_port, (uintmax_t)io->io_hdr.nexus.targ_target.id, io->io_hdr.nexus.targ_lun); - io->io_hdr.status = CTL_CMD_ABORTED; io->io_hdr.port_status = 31337; /* * Note that the backend, in this case, will get the @@ -13264,24 +13263,18 @@ ctl_datamove_remote(union ctl_io *io) /* * Note that we look for an aborted I/O here, but don't do some of - * the other checks that ctl_datamove() normally does. We don't - * need to run the task queue, because this I/O is on the ISC - * queue, which is executed by the work thread after the task queue. + * the other checks that ctl_datamove() normally does. * We don't need to run the datamove delay code, since that should * have been done if need be on the other controller. */ if (io->io_hdr.flags & CTL_FLAG_ABORT) { - printf("%s: tag 0x%04x on (%d:%d:%d:%d) aborted\n", __func__, io->scsiio.tag_num, io->io_hdr.nexus.initid.id, io->io_hdr.nexus.targ_port, io->io_hdr.nexus.targ_target.id, io->io_hdr.nexus.targ_lun); - io->io_hdr.status = CTL_CMD_ABORTED; io->io_hdr.port_status = 31338; - ctl_send_datamove_done(io, /*have_lock*/ 0); - return; } |