git: 677cb9722a64 - main - cxgbe tom: Free pending iSCSI mbufs on connection shutdown.

John Baldwin jhb at FreeBSD.org
Sat May 29 00:02:27 UTC 2021


The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=677cb9722a64d3f944d3e374e0ef1bb0e45644b5

commit 677cb9722a64d3f944d3e374e0ef1bb0e45644b5
Author:     John Baldwin <jhb at FreeBSD.org>
AuthorDate: 2021-05-21 00:16:23 +0000
Commit:     John Baldwin <jhb at FreeBSD.org>
CommitDate: 2021-05-28 23:47:31 +0000

    cxgbe tom: Free pending iSCSI mbufs on connection shutdown.
    
    If an iSCSI connection is shutdown abruptly (e.g. by a RST from the
    peer), pending iSCSI PDUs and page pod work requests can be in the
    ulp_pduq when the final CPL is received indicating the death of the
    connection.
    
    Reported by:    Jithesh Arakkan @ Chelsio
---
 sys/dev/cxgbe/tom/t4_tom.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/dev/cxgbe/tom/t4_tom.c b/sys/dev/cxgbe/tom/t4_tom.c
index 97693ab74000..1c9999be339d 100644
--- a/sys/dev/cxgbe/tom/t4_tom.c
+++ b/sys/dev/cxgbe/tom/t4_tom.c
@@ -1024,6 +1024,7 @@ final_cpl_received(struct toepcb *toep)
 		tls_detach(toep);
 	toep->inp = NULL;
 	toep->flags &= ~TPF_CPL_PENDING;
+	mbufq_drain(&toep->ulp_pduq);
 	mbufq_drain(&toep->ulp_pdu_reclaimq);
 
 	if (!(toep->flags & TPF_ATTACHED))


More information about the dev-commits-src-main mailing list