svn commit: r268392 - head/sys/cam/ctl
Alexander Motin
mav at FreeBSD.org
Tue Jul 8 12:16:28 UTC 2014
Author: mav
Date: Tue Jul 8 12:16:28 2014
New Revision: 268392
URL: http://svnweb.freebsd.org/changeset/base/268392
Log:
Do not return statuses for aborted iSCSI commands.
Modified:
head/sys/cam/ctl/ctl_frontend_iscsi.c
Modified: head/sys/cam/ctl/ctl_frontend_iscsi.c
==============================================================================
--- head/sys/cam/ctl/ctl_frontend_iscsi.c Tue Jul 8 12:15:15 2014 (r268391)
+++ head/sys/cam/ctl/ctl_frontend_iscsi.c Tue Jul 8 12:16:28 2014 (r268392)
@@ -2698,6 +2698,16 @@ cfiscsi_scsi_command_done(union ctl_io *
CFISCSI_SESSION_UNLOCK(cs);
#endif
+ /*
+ * Do not return status for aborted commands.
+ * There are exceptions, but none supported by CTL yet.
+ */
+ if (io->io_hdr.status == CTL_CMD_ABORTED) {
+ ctl_free_io(io);
+ icl_pdu_free(request);
+ return;
+ }
+
response = cfiscsi_pdu_new_response(request, M_WAITOK);
bhssr = (struct iscsi_bhs_scsi_response *)response->ip_bhs;
bhssr->bhssr_opcode = ISCSI_BHS_OPCODE_SCSI_RESPONSE;
More information about the svn-src-all
mailing list