From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2551D19CD19; Sun, 1 Mar 2026 01:37:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772329039; cv=none; b=NdFWx3BaLZy0WP7ywrNLWYzrYBREd/qGABxfZqbo5B7L9QRmOfqFFcLhs6OXom3dHfIGBbXOBRVIaw8XAJXySUiiklfVgxHD08ftCo+3AWF0+wcd/OGh4KZ6eJqyzjDAFfsCC7O1S+mCKY2xlrqwJGSmVx4OGhbyHZ6nl8HGOTY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772329039; c=relaxed/simple; bh=X5FYOhKq8to+yckdIbSoPPf8RnGT7mrca0paDZsCTwM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Uepjo9+tzlIIRgWzmGC2rM398cD0lq9KwhjzVCs454nnEh5h+X+MJXXEU9VPVAujecN++WxU+MVd50mT3YE/3cIi1eLQ746Y0GyvpebKUri0SoqC+ivkTQrgiA95aUNLYbsL8pFbE3mNaJARnjOh3YBj4KbgWgSVjMkWI8gXX04= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=VIYh1IZl; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="VIYh1IZl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 19F20C19421; Sun, 1 Mar 2026 01:37:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772329039; bh=X5FYOhKq8to+yckdIbSoPPf8RnGT7mrca0paDZsCTwM=; h=From:To:Cc:Subject:Date:From; b=VIYh1IZlstRLo8S6xagSuDT3VgZLI9I1GvXxztD8PIYXCHJm3dMxYDYDsJoO3ggqY 1c54Uo9tFDJiwnOUEGyPRWE0vrZVhQTidCzRCD6S+pspOvPY4IodZaR8PL2E3mHZM9 4OLkpBnEwGrWkjblD33MASub9LRm6a9KdcUjTDg0XCh1fpytiGT2llADIvsl1ZOVLQ lZocPzQZFCeRImaz3gEb30DyGDKedg8qAH+DvhVIpaTWRiCmqE5L2H3ol/spLFGacJ f8Zzb4l8vvKi7OyGHfpX1z41Htf+t63yCdTRHK6sUY/qYTmT2Re7xylP8hh2vS9FE8 d0CEt1kVS3nxA== From: Sasha Levin To: stable@vger.kernel.org, metze@samba.org Cc: Steve French , Tom Talpey , Long Li , Namjae Jeon , linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, Steve French Subject: FAILED: Patch "smb: client: let smbd_post_send() make use of request->wr" failed to apply to 6.6-stable tree Date: Sat, 28 Feb 2026 20:37:16 -0500 Message-ID: <20260301013716.1697495-1-sashal@kernel.org> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Hint: ignore X-stable: review Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.6-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . Thanks, Sasha ------------------ original commit in Linus's tree ------------------ >From bf1656e12a9db2add716c7fb57b56967f69599fa Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 22 Jan 2026 18:16:50 +0100 Subject: [PATCH] smb: client: let smbd_post_send() make use of request->wr We don't need a stack variable in addition. Cc: # 6.18.x Cc: Steve French Cc: Tom Talpey Cc: Long Li Cc: Namjae Jeon Cc: linux-cifs@vger.kernel.org Cc: samba-technical@lists.samba.org Signed-off-by: Stefan Metzmacher Signed-off-by: Steve French --- fs/smb/client/smbdirect.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/fs/smb/client/smbdirect.c b/fs/smb/client/smbdirect.c index 61693b4a83fce..f2ae35a9f047f 100644 --- a/fs/smb/client/smbdirect.c +++ b/fs/smb/client/smbdirect.c @@ -1105,7 +1105,6 @@ static int manage_keep_alive_before_sending(struct smbdirect_socket *sc) static int smbd_post_send(struct smbdirect_socket *sc, struct smbdirect_send_io *request) { - struct ib_send_wr send_wr; int rc, i; for (i = 0; i < request->num_sge; i++) { @@ -1121,14 +1120,14 @@ static int smbd_post_send(struct smbdirect_socket *sc, request->cqe.done = send_done; - send_wr.next = NULL; - send_wr.wr_cqe = &request->cqe; - send_wr.sg_list = request->sge; - send_wr.num_sge = request->num_sge; - send_wr.opcode = IB_WR_SEND; - send_wr.send_flags = IB_SEND_SIGNALED; + request->wr.next = NULL; + request->wr.wr_cqe = &request->cqe; + request->wr.sg_list = request->sge; + request->wr.num_sge = request->num_sge; + request->wr.opcode = IB_WR_SEND; + request->wr.send_flags = IB_SEND_SIGNALED; - rc = ib_post_send(sc->ib.qp, &send_wr, NULL); + rc = ib_post_send(sc->ib.qp, &request->wr, NULL); if (rc) { log_rdma_send(ERR, "ib_post_send failed rc=%d\n", rc); smbd_disconnect_rdma_connection(sc); -- 2.51.0