Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Nov 2015 22:22:38 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r290469 - projects/cxl_iscsi/sys/dev/cxgbe/tom
Message-ID:  <201511062222.tA6MMcYH079611@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: np
Date: Fri Nov  6 22:22:37 2015
New Revision: 290469
URL: https://svnweb.freebsd.org/changeset/base/290469

Log:
  cxgbe/tom: do not attempt to transmit if the connection is being aborted.

Modified:
  projects/cxl_iscsi/sys/dev/cxgbe/tom/t4_cpl_io.c

Modified: projects/cxl_iscsi/sys/dev/cxgbe/tom/t4_cpl_io.c
==============================================================================
--- projects/cxl_iscsi/sys/dev/cxgbe/tom/t4_cpl_io.c	Fri Nov  6 22:08:05 2015	(r290468)
+++ projects/cxl_iscsi/sys/dev/cxgbe/tom/t4_cpl_io.c	Fri Nov  6 22:22:37 2015	(r290469)
@@ -576,6 +576,9 @@ t4_push_frames(struct adapter *sc, struc
 	    toep->ulp_mode == ULP_MODE_RDMA,
 	    ("%s: ulp_mode %u for toep %p", __func__, toep->ulp_mode, toep));
 
+	if (__predict_false(toep->flags & TPF_ABORT_SHUTDOWN))
+		return;
+
 	/*
 	 * This function doesn't resume by itself.  Someone else must clear the
 	 * flag and call this function.
@@ -803,6 +806,9 @@ t4_push_pdus(struct adapter *sc, struct 
 	KASSERT(toep->ulp_mode == ULP_MODE_ISCSI,
 	    ("%s: ulp_mode %u for toep %p", __func__, toep->ulp_mode, toep));
 
+	if (__predict_false(toep->flags & TPF_ABORT_SHUTDOWN))
+		return;
+
 	/*
 	 * This function doesn't resume by itself.  Someone else must clear the
 	 * flag and call this function.



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