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 CEA53213E99; Thu, 12 Dec 2024 16:31:56 +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=1734021116; cv=none; b=SBBAs0k5KT12iTPLxZcx/1+A0ww+oqZdq851x7odSlhNBOkknwFaH5OY3dqG1ZaLe3/qqxTkQpAL7eoSNp7AGX0BEvGIgaA+L/nazb185sDqJRjSkTdJyxTelMDbCsdlc+leqkxp8FXkP4LeB9QMsvquzWFPAOnLG+CIX/0PyJY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734021116; c=relaxed/simple; bh=vgSutnRKy/SUxU/WYo+0FBaSjEGimYINXLqvjxNMXwE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DknNgxCALzRw8oKxh2x3XMXH0+RJ6QKrQFpmAN3aA4xMJxTHwx+SoUuxdTl4GUV1jQaZW5XfvJbbVUl0x2SlycZpi+6+DzciqJP2dtnPoLMkfU2oqpERfCCXc3xSrxpbwfvzeGZHSPwrWHF4+HWEarZ6nyQOYzbf4g6njuaxvDo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Ve/M+sg4; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Ve/M+sg4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3C64CC4CECE; Thu, 12 Dec 2024 16:31:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1734021116; bh=vgSutnRKy/SUxU/WYo+0FBaSjEGimYINXLqvjxNMXwE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ve/M+sg4hlUpgKoI3HwLqz6Pv1P9D2ZfqjXeSeoku6o56+K0+HUjjbxYyDU3Rs1Li qgmx0MUPJBfp3FjraJZ0QXt6r8KRn662pOWPLgL7zvFKgNTqGcAdHacOuL8lgRR9ME U2zEOJPOQysPN24oXFcysemchXWdhRZ2wOBLFsgE= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Saurav Kashyap , Nilesh Javali , Himanshu Madhani , "Martin K. Petersen" Subject: [PATCH 6.1 620/772] scsi: qla2xxx: Remove check req_sg_cnt should be equal to rsp_sg_cnt Date: Thu, 12 Dec 2024 15:59:25 +0100 Message-ID: <20241212144415.543160940@linuxfoundation.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241212144349.797589255@linuxfoundation.org> References: <20241212144349.797589255@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Saurav Kashyap commit 833c70e212fc40d3e98da941796f4c7bcaecdf58 upstream. Firmware supports multiple sg_cnt for request and response for CT commands, so remove the redundant check. A check is there where sg_cnt for request and response should be same. This is not required as driver and FW have code to handle multiple and different sg_cnt on request and response. Cc: stable@vger.kernel.org Signed-off-by: Saurav Kashyap Signed-off-by: Nilesh Javali Link: https://lore.kernel.org/r/20241115130313.46826-5-njavali@marvell.com Reviewed-by: Himanshu Madhani Signed-off-by: Martin K. Petersen Signed-off-by: Greg Kroah-Hartman --- drivers/scsi/qla2xxx/qla_bsg.c | 10 ---------- 1 file changed, 10 deletions(-) --- a/drivers/scsi/qla2xxx/qla_bsg.c +++ b/drivers/scsi/qla2xxx/qla_bsg.c @@ -494,16 +494,6 @@ qla2x00_process_ct(struct bsg_job *bsg_j goto done; } - if ((req_sg_cnt != bsg_job->request_payload.sg_cnt) || - (rsp_sg_cnt != bsg_job->reply_payload.sg_cnt)) { - ql_log(ql_log_warn, vha, 0x7011, - "request_sg_cnt: %x dma_request_sg_cnt: %x reply_sg_cnt:%x " - "dma_reply_sg_cnt: %x\n", bsg_job->request_payload.sg_cnt, - req_sg_cnt, bsg_job->reply_payload.sg_cnt, rsp_sg_cnt); - rval = -EAGAIN; - goto done_unmap_sg; - } - if (!vha->flags.online) { ql_log(ql_log_warn, vha, 0x7012, "Host is not online.\n");