Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1584235imc; Mon, 11 Mar 2019 17:58:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqwgSQUXddnh1jjc7MFkewpDCr6ZQ4P27sfnLF3UD4yjC6lIC+JOJKfaLSyJ3COa23h5agm4 X-Received: by 2002:a17:902:6b81:: with SMTP id p1mr37455252plk.106.1552352327147; Mon, 11 Mar 2019 17:58:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552352327; cv=none; d=google.com; s=arc-20160816; b=UhQLtyoF2ZaNkJRZickoTrZpceTI1IkdPeJAlNyZg63g+3SRX+Vc64l2L/YFHllvPU jdBXnyLfOz7nKGAtEgPbKtEc+vSV0nX6aSYz4tuKzOGgVbHr6r1PGDKeFR7BN+nDC/AX bJYRGOgzPuiw8Prq8IQAdvAuGwDPcPyyHUjk74JYwySH5RKRWaS2oPNYQ889Id7yYGUx VGF9mY1icjJqOHE4E2o2RsxxBHU6fmrgOdXJ05yG8dqB4UZTPXNw6kwSsb0hSyxjN0Zi oiVE+FS7y7AgfhuZ3K+auFmH1SRyfGOSj4p+Rl0aFQck/MKIi51W5pyHOfAwUiNpQWLC aH1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=iXPhFPp71Hsjq465e+phJBR2wtYQVyLfSrnhruumVA8=; b=L3DgC/Akw+i0qqjA4gdZi+nAKpZSRSf0MwsGrbstVDGRcRex8q4gQM63KVpt/IC218 rH0GWywjfpg6qXB3XW7W1C9TAkquIOdzROZC7oRBgcdWL/v/xnSmVTIsZ5HDEySMz92g 7Or8AVCiMoVhUJKH27it6vZKQu2s+cyh6w14ILTVYceOsreoxywyCWzxZIJPKFqujsPy 2VkH/Aq2MdM1r/FvJG25ebtPNZSmweZnIEemlzu3xZvOb6Yw8ByRUvBrTK+QMrDbAT2Q BOwxBdna/VGwQQcJ+WRroKivDN59dY8v8uFbpEDIbw+SnAY5Wl0Q8Ng7UhuU/nWMKzfJ 6PUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=Gt4Y60Kk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w8si976501pll.164.2019.03.11.17.58.32; Mon, 11 Mar 2019 17:58:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=Gt4Y60Kk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726713AbfCLA5d (ORCPT + 99 others); Mon, 11 Mar 2019 20:57:33 -0400 Received: from aserp2130.oracle.com ([141.146.126.79]:52964 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726566AbfCLA5S (ORCPT ); Mon, 11 Mar 2019 20:57:18 -0400 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x2C0ndod127996; Tue, 12 Mar 2019 00:57:14 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references; s=corp-2018-07-02; bh=iXPhFPp71Hsjq465e+phJBR2wtYQVyLfSrnhruumVA8=; b=Gt4Y60Kkl3yBVsGnyGJqWQRqq+kL7LVs9f1Kw7FMpWVO4anbdgVDOm6HJ08peOhTYg0D h0il6lTWoGJir6fsS4N8nLJ4SVgjL9yltDluDHLNJAFwZdeTPevKY6naIdJyeUK4bZPh iaR6koQ0iUoB2ZmRs5+A5DdYULS9o2nr3V2KtEjCiAL1NbnOTSUjLMH2QeFfq8EmgB/v Sc1RdkumhtEpPAd6IPKabpia0R01gARL308S8JXTCJmtqelciBAZKYz0eY6R3UMrZs4x Hzm3rfhCiyfg0Y+42vIxdZ4lPEJde2A7IksGWFMShlOKxIUUWP8/fFZRRl1DE9Q4fPqk jw== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp2130.oracle.com with ESMTP id 2r430ej3jr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 12 Mar 2019 00:57:14 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id x2C0vCa1030703 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 12 Mar 2019 00:57:13 GMT Received: from abhmp0009.oracle.com (abhmp0009.oracle.com [141.146.116.15]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x2C0vC58028554; Tue, 12 Mar 2019 00:57:12 GMT Received: from linux.cn.oracle.com (/10.182.69.106) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 11 Mar 2019 17:57:12 -0700 From: Dongli Zhang To: linux-scsi@vger.kernel.org, qla2xxx-upstream@qlogic.com, linux-kernel@vger.kernel.org Cc: jejb@linux.ibm.com, martin.petersen@oracle.com, don.brace@microsemi.com, esc.storagedev@microsemi.com, dongli.zhang@oracle.com Subject: [PATCH 3/4] scsi: qla2xxx: replace 0 by HCTX_TYPE_DEFAULT to index blk_mq_tag_set->map Date: Tue, 12 Mar 2019 09:00:30 +0800 Message-Id: <1552352431-18821-4-git-send-email-dongli.zhang@oracle.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1552352431-18821-1-git-send-email-dongli.zhang@oracle.com> References: <1552352431-18821-1-git-send-email-dongli.zhang@oracle.com> X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9192 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=904 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1903120004 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use HCTX_TYPE_DEFAULT instead of 0 to avoid hardcoding. Signed-off-by: Dongli Zhang --- drivers/scsi/qla2xxx/qla_os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index 677f82f..9e22cfc 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c @@ -7179,7 +7179,7 @@ static int qla2xxx_map_queues(struct Scsi_Host *shost) { int rc; scsi_qla_host_t *vha = (scsi_qla_host_t *)shost->hostdata; - struct blk_mq_queue_map *qmap = &shost->tag_set.map[0]; + struct blk_mq_queue_map *qmap = &shost->tag_set.map[HCTX_TYPE_DEFAULT]; if (USER_CTRL_IRQ(vha->hw) || !vha->hw->mqiobase) rc = blk_mq_map_queues(qmap); -- 2.7.4