From owner-svn-src-projects@freebsd.org Fri Nov 6 22:22:39 2015 Return-Path: Delivered-To: svn-src-projects@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2B1D6A28C21 for ; Fri, 6 Nov 2015 22:22:39 +0000 (UTC) (envelope-from np@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E687B158D; Fri, 6 Nov 2015 22:22:38 +0000 (UTC) (envelope-from np@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id tA6MMcOQ079612; Fri, 6 Nov 2015 22:22:38 GMT (envelope-from np@FreeBSD.org) Received: (from np@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id tA6MMcYH079611; Fri, 6 Nov 2015 22:22:38 GMT (envelope-from np@FreeBSD.org) Message-Id: <201511062222.tA6MMcYH079611@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: np set sender to np@FreeBSD.org using -f From: Navdeep Parhar Date: Fri, 6 Nov 2015 22:22:38 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r290469 - projects/cxl_iscsi/sys/dev/cxgbe/tom X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Nov 2015 22:22:39 -0000 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.