Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1584167imc; Mon, 11 Mar 2019 17:58:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqx4AbSCWWFwim9nzWIAq++LpBefvOuPDDknU56uefgyuAwxPpC3cNLXa5TqM5QBs21xfwKY X-Received: by 2002:a63:d706:: with SMTP id d6mr20044684pgg.367.1552352321109; Mon, 11 Mar 2019 17:58:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552352321; cv=none; d=google.com; s=arc-20160816; b=0Yb+d9A6Tkj9+09vURUNZInTresrGWNtFmx9itIZVDSMzaSPplYCkBgEK0o1AFE40p VmsCl7lO6kcjz4okoUSvpms0FuFTJzKM8QiLn3q6NhBR0mow3F4kVgumaNyEwDYhnpIy sbzilyIQb16TPpiylx0a68NzWyROa0ah86/yK1ab/FGoPqUXxmAePYsdgYmadSrXhxIr t6a6HAXTpH4a5oVhYgYtahBzH/SZ//IkCO4x8K8EsKqSvPWP6ZdhD1AJmTy5Ae/SlMXM bHHeU3lfYCuMgSbJ6XFVtuUEsjIM+rfTdut8QC5ablUYN9QWsi/XNhHnWLFv4iJKFCpc wghw== 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=1RhjuITrn9cox+8jXcbmFqWu9tAMKGSvxu5o3kklT1Q=; b=h78GdQqHx+fBj5ETzaKMU6ba7swQ5/yHBNW8DH+6Xcd5GFpP9MkkcqXzWTWwKqo+t5 AS6rUjVxm1HBLlDt3Pftv6aUDpugh/TQLnTdoTXKj2xE2unT5Q6BZrzqdJz+jhkf10AK vyK2YpR9gsLjxDY63QC56O8tlCB9vAgX5FMWfG3goMePQyXLOUwamLixX1qI0l6oAPiS rEO0vX0fqC383kv88oNpfByZBUtSXuk6G2Ep1PZEPzv/SkV2ijRtIdr2PTS05mke2qOV CiDaZLiCCVQBVr68G+dJSHpYfc32f5uoe1ZdmA2ny7kmCGInG566cIOdmF246hPMtBYm 6BOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=vyHi0SP2; 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 d195si3819092pga.309.2019.03.11.17.58.25; Mon, 11 Mar 2019 17:58:41 -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=vyHi0SP2; 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 S1726623AbfCLA5T (ORCPT + 99 others); Mon, 11 Mar 2019 20:57:19 -0400 Received: from aserp2130.oracle.com ([141.146.126.79]:52900 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726167AbfCLA5Q (ORCPT ); Mon, 11 Mar 2019 20:57:16 -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 x2C0o0jd128359; Tue, 12 Mar 2019 00:57:10 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=1RhjuITrn9cox+8jXcbmFqWu9tAMKGSvxu5o3kklT1Q=; b=vyHi0SP2bD8LMKlnkyO4Tn5LGeG+zNKM2VLU/iTWXrsQIJSwsToVvMIhh318+Oy8rwZr NEht6PaDDteyuF5AdtWelWn0O/BEsjhdpdm6t/4m9FrCbV4u1THIDFEwY0RFD390y/HT S4Sz/B6OvEqA/Xt++Jy/tWnyYLPZoJoOUkkZmmuCsjdugm6dXC2o2MHgtbFhZO4UY2Wc ue3XUJF4odn19pzvRbkX1DBn2/cR1nAbwQrxvHLnnulwdTvm/NJezut1ug1eahBEIF4o 6uCdvkQWGXLRjar763ea4OJ9Pmg1hAJwZYL2hy1aPildsUB8ZB8lZ+Pc37+10I10XvYF sA== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp2130.oracle.com with ESMTP id 2r430ej3jg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 12 Mar 2019 00:57:10 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id x2C0vAhs024671 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 12 Mar 2019 00:57:10 GMT Received: from abhmp0009.oracle.com (abhmp0009.oracle.com [141.146.116.15]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x2C0vAJC014183; Tue, 12 Mar 2019 00:57:10 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:09 -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 2/4] scsi: virtio_scsi: replace 0 by HCTX_TYPE_DEFAULT to index blk_mq_tag_set->map Date: Tue, 12 Mar 2019 09:00:29 +0800 Message-Id: <1552352431-18821-3-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=861 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/virtio_scsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/virtio_scsi.c b/drivers/scsi/virtio_scsi.c index 1a6f150..e5de26b 100644 --- a/drivers/scsi/virtio_scsi.c +++ b/drivers/scsi/virtio_scsi.c @@ -661,7 +661,7 @@ static int virtscsi_abort(struct scsi_cmnd *sc) static int virtscsi_map_queues(struct Scsi_Host *shost) { struct virtio_scsi *vscsi = shost_priv(shost); - struct blk_mq_queue_map *qmap = &shost->tag_set.map[0]; + struct blk_mq_queue_map *qmap = &shost->tag_set.map[HCTX_TYPE_DEFAULT]; return blk_mq_virtio_map_queues(qmap, vscsi->vdev, 2); } -- 2.7.4