Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1583797imc; Mon, 11 Mar 2019 17:58:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqzebAN5eg+QLsvDpUKe7cQICiWs1AxBj9qIxo3Qudg12k9ZCVKgb1xYUoiD620twE3BnItM X-Received: by 2002:a17:902:8348:: with SMTP id z8mr37789493pln.151.1552352280400; Mon, 11 Mar 2019 17:58:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552352280; cv=none; d=google.com; s=arc-20160816; b=OHkmllHDDGgrz9imD7thGC8iE6+KtB948dSdQNtsgqTI5SqP6u0PL9svTYLVHqyfR9 XOXGwyr/xHsvaDKefWQxcjxlxTy4IGHSdbnIKPxshcctc6hqagNEK3gTvIreNhosSteW duVUBkUfpBxTFUCMClCCPrDB6prV7Qoy3eSzyPiNQ0bwGOt1WxbN3HjGpiAfYUeWfvfn TG0WQWjFi40exKaJkOannoBQ8twM6aYDQrahhmtmirZkmtQz6BAQlSIE+e/Voz/RfLVM qvnB/kK6dJnkZJT7tIWnypIYjp3vINX9Afdrou0p6hv1KfRtnAKoe6n6l1j401r6Tx51 moEA== 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=jmqg6cwuM9pF9cQJHAkY8+UNvfl1e0+MDGToL7DvFA8=; b=e2luW1JzdPBdiqtq1wIZL02RF0zEMDYed2gKnd60QRI8JfNlbLLzgPKpIz6cPE3iKp iZmbQnExTo9ArQ18ST93MMC14Y7zniYydLJ4SR/XFa9ZAS94X0dBrMb50HyAHuXiH7HP mBcArCvdm5h3XcHqv5y9LjbD18omPOPlPjUcHAbFtEFiNTHDVTdAPzbi4AvUlG60FUVx 58PqWqAxNdTsgu2H5pg21m9J03+gnlgwgxUd481h5+1THrJus7YpsAnrkqu7WBZU4BI2 GaAqTOPOj6Dkfoyy+1qdW4oBRE59oULH+aaFTZwDUUQQArD8LtwcjenV07dOMTBr3wWf DmyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=kd4PdPEk; 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 m6si6045737pgq.24.2019.03.11.17.57.45; Mon, 11 Mar 2019 17:58:00 -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=kd4PdPEk; 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 S1726664AbfCLA5U (ORCPT + 99 others); Mon, 11 Mar 2019 20:57:20 -0400 Received: from aserp2130.oracle.com ([141.146.126.79]:52972 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726597AbfCLA5T (ORCPT ); Mon, 11 Mar 2019 20:57:19 -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 x2C0nLb1127739; 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=jmqg6cwuM9pF9cQJHAkY8+UNvfl1e0+MDGToL7DvFA8=; b=kd4PdPEkxxrhLHjoFc5nLmbbwsAtE8amLO5EvtaJah+HLYOfzqOh9rKlmBZQPc7vB5Nd 5mQtpSgKRYquwnd0vo2P/rn3r48LoyN8eLXPYLv1RxO9gE6HYFKiVRy0vi0Nm96y2AON rjOFWZhKo2cxlVtPCE8/nk1AdXKjZICIgWEJ6KhPhWm4W3qD3tYaBnLtrMjYow+adYdQ OqkqAWFeu183i/DaXGqPoBsBhzxvQX9fe5UDpYrRBiLjAGCsxkDJjvOnOEM7V43HnDJ2 wvG67sZ77zcy6cbqeOZW84HPwLJ+XbaSuo/G2x3DCMATNKRMoMCaz/z6Q1ouDivMfGgQ cg== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp2130.oracle.com with ESMTP id 2r430ej3jt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 12 Mar 2019 00:57:14 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id x2C0v81R030623 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 12 Mar 2019 00:57:08 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 x2C0v7wE014168; Tue, 12 Mar 2019 00:57:07 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:07 -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 1/4] scsi: replace 0 by HCTX_TYPE_DEFAULT to index blk_mq_tag_set->map Date: Tue, 12 Mar 2019 09:00:28 +0800 Message-Id: <1552352431-18821-2-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=999 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/scsi_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index 2018967..985cfc2 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c @@ -1759,7 +1759,7 @@ static int scsi_map_queues(struct blk_mq_tag_set *set) if (shost->hostt->map_queues) return shost->hostt->map_queues(shost); - return blk_mq_map_queues(&set->map[0]); + return blk_mq_map_queues(&set->map[HCTX_TYPE_DEFAULT]); } void __scsi_init_queue(struct Scsi_Host *shost, struct request_queue *q) -- 2.7.4