Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Jul 2014 12:16:28 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r268392 - head/sys/cam/ctl
Message-ID:  <201407081216.s68CGSA3037646@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407081216.s68CGSA3037646>