svn commit: r290469 - projects/cxl_iscsi/sys/dev/cxgbe/tom

Navdeep Parhar np at FreeBSD.org
Fri Nov 6 22:22:39 UTC 2015


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.


More information about the svn-src-projects mailing list