From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795960723; b=VSo8ZCKeMgoqkR0s5nq0PJ+N4nrIjhukyTwQo03nfjxJB1MaKsoF7QNI3bJz/rH8BeKN 3xvcTvRSitwEQoh6QiDVF8NwER4MYMlo1DcknqTOA6xsTy23gq0SIH30TVVcVqzl/zKjm xWT3zn9BplttvuR+gnGO/vjd5RnHqzj5JDnFYBDoYvj78YSp3N/vrvtvC4mtyU7ayqW/o 9wo/cUsgQP9rS97Dt2LGiED+Bvmc3DpzOZmpEzZyBaU/rV5kTJL/KfEWzPI2D3f2/129k aU0SrA/nkKRZiinx5sVXlpjg4zVKsVUDCMofJWfZtpx5+SnzrMqAuQ0iPBKulFXqvYA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795960723; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=0DLnVXOWtso33USBPAHBWsu0Q3TGLMdYr9GzRre9n/A=; b=TKkRLPX+gc82Z4IAqoLYqn5Gj3XBLvclaEnQbDGUUNKTPJi1AOKirmCcgNLU5Y/WjT5N gxEM6ayEZOAayNoCZzSHRBT5kk1ICa1+PdaFuv9/CCSfXNxHKUUUje9YlWnD+u8eQOPha b5RMvmwPFxd5mfQtVsrnPjmOGvL4aTm2DejJ4WF1z9deEzDFQgxNwH0lW1WQrFdUKE6f3 bjJa2NoUB1ezzBwTVQ2csLz0EluZJcgtNEvKmTgFicmnMUDyjOvesluu0WllUlE3uPTPC +2gWmZHFFGHAf/0THQ8i7ru3ayCdslwNlozUR6KnyN01u2Oh5jIoPehXSCv+snbRQ7Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=DYLpQLSu; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AD324606A31C for ; Sun, 29 Nov 2026 13:58:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=DYLpQLSu Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2AD1B1F0089C; Sun, 29 Nov 2026 13:58:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795960723; bh=0DLnVXOWtso33USBPAHBWsu0Q3TGLMdYr9GzRre9n/A=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=DYLpQLSu0AiCws7sS7JVko1IVI8yeiuNeuubFSW91iru/axiYNpMFX9bpeFLa08Y7 Sd1dhG5cKsc0W+/3+ve0cIjdB8xeg5RhonV33NmjJodgFRNTRYjIz5pLPsthf3Mrbt 8wLRoMFmMcmgZY3dqeFeAPooIVKjwLjlMGh0Ae8rmj24kRR0COsM2N2KVUhyLEDIZa q+8oOk07wyBybD8dgoKprBLowU/ZNeM++rcbNETW/Pn99mgJHPXth6ZvR0SraITHOe eWgR9FLD5MZD/leyjhNGhBa6xtWFTsM06B/NMNZaDCrBm6rJtURJZsaCHz4SbrIeVv /EJKlDBcty3YA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH rdma-rc] RDMA/siw: Flush the ORQ when CLOSING or TERMINATE moves to ERROR Reply-To: sashiko-reviews@lists.linux.dev To: "Andrew Stellman" Cc: linux-rdma@vger.kernel.org In-Reply-To: <20261129135301.80788-1-bugs@stellman-greene.com> References: <20261129135301.80788-1-bugs@stellman-greene.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sun, 29 Nov 2026 13:58:42 +0000 X-Mailing-List: linux-rdma@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list > From: Andrew Stellman >=20 > A sent RDMA READ stays in the ORQ until its Read Response arrives, > while its TX WQE goes back to SIW_WR_IDLE. On the move to ERROR, > siw_qp_nextstate_from_close() and siw_qp_nextstate_from_term() call > siw_sq_flush() only if the TX WQE is not idle. That guard treats an > idle TX WQE as nothing to flush and ignores the ORQ, so the READ gets > no flush completion from that transition. >=20 > Call siw_sq_flush() unconditionally in both paths, as the RTS to ERROR > path already does. siw_sq_flush() flushes the ORQ first and skips an > idle TX WQE. From reading the source (not tested), it then also > flushes any SQ entries not yet sent and raises IB_EVENT_SQ_DRAINED if > there were any, which these two paths skipped when the TX WQE was > idle. > [ ... ] > The fix was drafted with OpenAI GPT-6 (Codex) and this changelog with > Claude Opus 5.5, and both were reviewed by me. >=20 > Fixes: f29dd55b0236 ("rdma/siw: queue pair methods") > Signed-off-by: Andrew Stellman Sashiko has reviewed this patch and found no issues. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261129135301.8078= 8-1-bugs@stellman-greene.com?part=3D1