Message ID | 20210810043720.1137-14-njavali@marvell.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-scsi-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 708A4C4338F for <linux-scsi@archiver.kernel.org>; Tue, 10 Aug 2021 04:40:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5892B60E76 for <linux-scsi@archiver.kernel.org>; Tue, 10 Aug 2021 04:40:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237102AbhHJEkb (ORCPT <rfc822;linux-scsi@archiver.kernel.org>); Tue, 10 Aug 2021 00:40:31 -0400 Received: from mx0a-0016f401.pphosted.com ([67.231.148.174]:14900 "EHLO mx0b-0016f401.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S234710AbhHJEka (ORCPT <rfc822;linux-scsi@vger.kernel.org>); Tue, 10 Aug 2021 00:40:30 -0400 Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 17A4aQag008600 for <linux-scsi@vger.kernel.org>; Mon, 9 Aug 2021 21:40:08 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type : content-transfer-encoding; s=pfpt0220; bh=4auV6LHa1HoIFbl4hgC0GwLsTt37L2WxZvNxjYFPBJ0=; b=Q8y+0uOuBZpQ9fs8jqI8oZqkgex4FpioWXqkq855YM4oDSMjqWKKp8GoePiAAkc+6qAp wX3SGKv32vqS1KjXDnH9uzknIrUb+iiyf6ysntED1Y4IMzG45VL+6QHoDgVlQ663xUkj rSyvN+FpN+2TCknGsMyhg0PKmI9oU35qqKMOPa6q/xCdaLBmhRuXC1r9o5gZxJlUmfcA 6Zggrof6kv/jGA9VFInlWcG7lnUwE3NYVBG6lf3+hmpBc6bK+fPbBI/g08YmzkukKfYN m5+x1ll9sjw1fSu33ALA7wWjGWXj+If5I49GjvIZbgfjyB6Q1A5oQhnve8DVgle6vtL+ pw== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com with ESMTP id 3abfu2gfb7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for <linux-scsi@vger.kernel.org>; Mon, 09 Aug 2021 21:40:08 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Mon, 9 Aug 2021 21:40:07 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.18 via Frontend Transport; Mon, 9 Aug 2021 21:40:07 -0700 Received: from dut1171.mv.qlogic.com (unknown [10.112.88.18]) by maili.marvell.com (Postfix) with ESMTP id 1C6925C6902; Mon, 9 Aug 2021 21:40:06 -0700 (PDT) Received: from dut1171.mv.qlogic.com (localhost [127.0.0.1]) by dut1171.mv.qlogic.com (8.14.7/8.14.7) with ESMTP id 17A4e5Ws001308; Mon, 9 Aug 2021 21:40:05 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id 17A4e5ZK001249; Mon, 9 Aug 2021 21:40:05 -0700 From: Nilesh Javali <njavali@marvell.com> To: <martin.petersen@oracle.com> CC: <linux-scsi@vger.kernel.org>, <GR-QLogic-Storage-Upstream@marvell.com> Subject: [PATCH v2 13/14] qla2xxx: Sync queue idx with queue_pair_map idx Date: Mon, 9 Aug 2021 21:37:19 -0700 Message-ID: <20210810043720.1137-14-njavali@marvell.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20210810043720.1137-1-njavali@marvell.com> References: <20210810043720.1137-1-njavali@marvell.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Proofpoint-ORIG-GUID: OP1w2qIZ30b7Qs8W19YuM6ih_y6iFSmb X-Proofpoint-GUID: OP1w2qIZ30b7Qs8W19YuM6ih_y6iFSmb X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790 definitions=2021-08-10_01:2021-08-06,2021-08-10 signatures=0 Precedence: bulk List-ID: <linux-scsi.vger.kernel.org> X-Mailing-List: linux-scsi@vger.kernel.org |
Series |
qla2xxx driver bug fixes
|
expand
|
diff --git a/drivers/scsi/qla2xxx/qla_nvme.c b/drivers/scsi/qla2xxx/qla_nvme.c index 94e350ef3028..04b766b8a471 100644 --- a/drivers/scsi/qla2xxx/qla_nvme.c +++ b/drivers/scsi/qla2xxx/qla_nvme.c @@ -91,8 +91,9 @@ static int qla_nvme_alloc_queue(struct nvme_fc_local_port *lport, struct qla_hw_data *ha; struct qla_qpair *qpair; - if (!qidx) - qidx++; + /* Map admin queue and 1st IO queue to index 0 */ + if (qidx) + qidx--; vha = (struct scsi_qla_host *)lport->private; ha = vha->hw;