Message ID | 20221121121725.1910795-3-john.g.garry@oracle.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1551611wrr; Mon, 21 Nov 2022 04:23:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf6j1JfDmW+SO9yKj/lVx4z0H7/LtmlTZAGoy8AqbjbOTX5w8RF1LE6mEL+ALhXnrCxKnh1B X-Received: by 2002:a63:d143:0:b0:476:c8c5:ba85 with SMTP id c3-20020a63d143000000b00476c8c5ba85mr16862935pgj.182.1669033414795; Mon, 21 Nov 2022 04:23:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1669033414; cv=pass; d=google.com; s=arc-20160816; b=y7HEhMlLEU9VyZ6ndynVnySrVFo99ken3w9GmE7LTT790RFDo4agAN/RBupu/kmtL5 e91rZXKn3ehj22adu6i1mx1wQjNs75BzQA/NuAqrO2v9HZ6gsMkZCWyW6KEpPqNzhL75 mSnCX7ASf0Ad3LTai++kIH1g+DxQNZaeA/LEPkduJpNAN06ho8MXb+qzSDf++lwUQZy4 aNW/kiEQ1C2lwbDN0EKWr4wyMDsAMosGjWlS71rD5bByyncNyxwq0w3ffpND6hhwUwJz z2nj8KcauCxPUoK9FetIiAX2B+JqWFhqBPY2H8sJAo6AOyIUYszLw461Skv43JjJ6U+B isFQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=H4WSoQsqAjhEuqlHSwV/Rr5EjmcEyVIOOM1Kx2rH8gg=; b=X/P+buZxXrmCxKayvzQaYacZ107zIi8QW/ku81ydefKYH5CL5q/Bumc2Vkv5OdacI+ kKZkwz5GRPW1b2iHmAWngY1wA4ex1+2sOymdaEtzOVa5XOmzEdLL+fcMBfx5U+cw4REU 8uLkRVzFTmbxjjDqOvXAxgds6zIuBf7ErlEgK5FFf8Wb+IxrZEG0msltLNE1Q6GzL+Yo e6I/6eyEsMDafNIvSSwRk+c2vXbqqbEbhXouEBCwK/IVGuZdA5mvC/7d9FHsm0fA8En+ KCWPUUqCXXQwRWWYWaFkT1Na4pU58b0Xd5RSf05se/2NAj1dz+uY9xNtGu/dlff06GHg Y9Mg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2022-7-12 header.b=zKIJyvon; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=zbp427Jl; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l186-20020a6388c3000000b004778fed8063si268377pgd.239.2022.11.21.04.23.15; Mon, 21 Nov 2022 04:23:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2022-7-12 header.b=zKIJyvon; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=zbp427Jl; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S231193AbiKUMSf (ORCPT <rfc822;cjcooper78@gmail.com> + 99 others); Mon, 21 Nov 2022 07:18:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230011AbiKUMSW (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 21 Nov 2022 07:18:22 -0500 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 894ED2C114; Mon, 21 Nov 2022 04:18:19 -0800 (PST) Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2ALBblqa018004; Mon, 21 Nov 2022 12:18:12 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 : content-transfer-encoding : content-type : mime-version; s=corp-2022-7-12; bh=H4WSoQsqAjhEuqlHSwV/Rr5EjmcEyVIOOM1Kx2rH8gg=; b=zKIJyvonYJxHKUGW9MokM6BTKBzjXPajSnHYyfdhivRVEaonJZMNXyMiOKaz7xq3Dztk 3Mklyl5foawoC8J5rxsOD+B+lDhnniWeU0lTsil5vuZOk5A9T2otFru1jM76FcXY5LQr PqwcpX9KIYGw6ifN01M3TWNLigWj1h+wlSM9+z4NzJhsoPzzRR4I3DBjCfwzVtBPCyJa GeQ0fa8GvjJQYgG1+2AapLnO7M9cOKikmPrY05FcAeS69cRDpVJB1uDs7+nA6Xmh8fu+ KjCkt7KLCxTvQpd/cfdQCuKKAMkr8nG4wi+7e/nOJQ9gXLiOAEp31jVlEHtvToZFZdVR dg== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3m08e5830p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 21 Nov 2022 12:18:12 +0000 Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 2ALBjMA8039675; Mon, 21 Nov 2022 12:18:11 GMT Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2170.outbound.protection.outlook.com [104.47.59.170]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3kxnk9wkrs-3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 21 Nov 2022 12:18:11 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VKwGJD9P7jGZqLJJd1Z+8ZTrhq+vIUJ61bCgS4azScNwcTbu8gTYwyg3oK1doLDAfIzXF5bqE72jmN26SBm6mKFIAo0I5/16kb1CXsDKNdKetfevGytRwPz68rC9dhy652F1EAgY2NAnbzDoVAR7v4SfgDPzZmunk+v0RiOtVOWvfe/jlMjK6l8ipP4+jbfVTIyf0uMzYRZVdShGpWIl93G12/M3vxwBh5mpH31FTIWjUKrraWZkmZFABKdWaFoJeLcIJuxWzg3HusAPyALbmIJx9F2fXlpwdtIAT4GlkceezAF0SDIzTWTrGA/DUyKPXicSncULs9gOTD5ToFCWAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=H4WSoQsqAjhEuqlHSwV/Rr5EjmcEyVIOOM1Kx2rH8gg=; b=K0vM5z9C/QyZ10HDJdn57XVZc4Evxb4Z7HC1nWUxVQsTMGCkaBmJST0wauHBwtTvvRHAzMcKrD2Scv3G1vd8GQTGi3o3RBUnx01Bd+3ZD9TJRA6KWMNH8oeJDRa+8PhloICZpK/uNfZxWBfdASiuUnXbis2n+anZSfQKWLEcVO0TED+I+q397GZ27l0M883Fz0H/+QeolcOtb4TvsamWupu6ylup1/5LpISCEBD+Emo66ghCMnPMkeajyTtImcjUr2T1MzR5YS7YHPlTOVa/+oGajOAZMkP85trel8VMyp1E7NjdAqAsaFuVMqA2L7ersez3HyrPvAF52lfXRbj+lg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=H4WSoQsqAjhEuqlHSwV/Rr5EjmcEyVIOOM1Kx2rH8gg=; b=zbp427JlyeBvQXAnRxXSrRrNa5jG5xmYtmh2yRLSboy+PhO+j7zdlQBhIRSl2GRD8c5z/9zWiDjo1Z+K3OYuj6vt0zR6/D9g+gAL2DB8plcWJXRv69epr1UOvCOfC20N/jN5JxxNstGnX1oni6gPRzKZrvQSvOn1DJJdT1ILEuQ= Received: from DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) by SA1PR10MB6496.namprd10.prod.outlook.com (2603:10b6:806:2b2::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5834.15; Mon, 21 Nov 2022 12:18:10 +0000 Received: from DM6PR10MB4313.namprd10.prod.outlook.com ([fe80::5984:a376:6e91:ac0d]) by DM6PR10MB4313.namprd10.prod.outlook.com ([fe80::5984:a376:6e91:ac0d%9]) with mapi id 15.20.5834.015; Mon, 21 Nov 2022 12:18:10 +0000 From: John Garry <john.g.garry@oracle.com> To: martin.petersen@oracle.com, jejb@linux.ibm.com Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, damien.lemoal@opensource.wdc.com, John Garry <john.g.garry@oracle.com> Subject: [PATCH 2/2] scsi: core: Use SCSI_SCAN_INITIAL in do_scsi_scan_host() Date: Mon, 21 Nov 2022 12:17:25 +0000 Message-Id: <20221121121725.1910795-3-john.g.garry@oracle.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20221121121725.1910795-1-john.g.garry@oracle.com> References: <20221121121725.1910795-1-john.g.garry@oracle.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: BL1PR13CA0215.namprd13.prod.outlook.com (2603:10b6:208:2bf::10) To DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR10MB4313:EE_|SA1PR10MB6496:EE_ X-MS-Office365-Filtering-Correlation-Id: a058ace0-3089-449d-e38c-08dacbba745f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xnrg/Sbmhv0yWBNmIoo1b8rLrn0+tuWGWu3bYqVDc8HXjt3gzgaDNV6qmbbuIba6bdrmsT/Z8yFyJfW4ty7KjpBJQLIljkV/mq3PvvdKRrli9cqz/lNtTURZcjAvxHC8j7lvJOL1Wpj62nuSqX8X6QY42m8RyHSRGWyiKIHtw6soRhwS+Z7iNqJN5gweoJm8QQ9mD222mPrP5uyrywuN6uOy13eg88tnxjg27uoAJNmIpqBXbAcjdUO7aHHN5YbQJ4nYsCOwcBRjc3hZOG4itSD2KQ6u9DywxxFLn7UWj2BYoG93tsTiQxkxIZPogL/KzkHQEn/3SxFXlptu4BrGbQUdMzFNdI4oqRNYvCSHr4UmyFu15OKElOfrFy/DAzb3m2yAWNFPRRM7UU5aLfmZg/fuIJZnVdLSbTZswxE0wkoQ4kdoJ+p6h+jM7ZzO0SArIByIpYFB5y9GLzMjWgPce5G3UG/h+NTVpInofl/baneU8qRbmh/dAjVjEv1s0SFaaypEPIQrqda4Ila1hzjxlD58TyCtv1rXdI19NDnP0eR0JlnG889k02+eb8CsEdbAlTnawHq2WT9dNAPWSkkcm4mw6cum4+p4hCAs4+TnP9AIFLntFluWGaw+ygsWrnaMt890PvcTVWnDxAedYBLHhg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR10MB4313.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(376002)(136003)(39860400002)(396003)(346002)(366004)(451199015)(2906002)(66476007)(8936002)(4326008)(103116003)(41300700001)(6512007)(6506007)(26005)(6666004)(8676002)(86362001)(66556008)(66946007)(4744005)(5660300002)(36756003)(316002)(478600001)(38100700002)(6486002)(83380400001)(1076003)(186003)(2616005)(107886003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: W9a1FGkT7RHLDfRcm9oWdc2+e8DyZBr0WIPEqA/DsN6aAzgTJn+xYXDC91QN/ooOOlO/4w2B+nl+TdIOp7xHcPFDwXTRsLDpVA9t2TCKm3S8ZsXpKJ3XMaBGOS0xoxFOwe+M4zDqwNntQFhMwMRRP+vIDTHloeIIzwWA9w82LqJgAV9VzRqNrvyPjvGmXHljO+WcBdmCIwr66t8oknA/BYx7tZDr8AttUAowVwLry6964nC+i7q1gXDUg2Dh2V2fciDYsP4JFITDMfIDf/W6tZ+5kuGeCoc7EivYANLwJ5mofGfTwmJ5jaNBLSY9dQUdOQnfbqYhkmNE9eMPhDK35hb81Mfb9RJkQfGJ5PHBYIZkmws7UW1iYFX83XH8ex4WSJxYfnsKBk2wKrLtheuH83KAJenTlDIQBtWpoUTFYpeEzEhHkpIyI+H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== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: a058ace0-3089-449d-e38c-08dacbba745f X-MS-Exchange-CrossTenant-AuthSource: DM6PR10MB4313.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Nov 2022 12:18:10.3925 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: hPGgKjgS//KXarZOBxNnFMtQ5abss6qRFiqbPxSpFg6fs/u21jzEncU1CqdnzKdvJDlfky0UW2X2CTj+lnfhlw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR10MB6496 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-21_13,2022-11-18_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 bulkscore=0 phishscore=0 adultscore=0 suspectscore=0 mlxscore=0 mlxlogscore=999 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211210096 X-Proofpoint-GUID: tkOax71cwHZmEfoQsdrxWb4A2qyIsxbf X-Proofpoint-ORIG-GUID: tkOax71cwHZmEfoQsdrxWb4A2qyIsxbf X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750108381820087925?= X-GMAIL-MSGID: =?utf-8?q?1750108381820087925?= |
Series |
scsi: Some minor scan improvements
|
|
Commit Message
John Garry
Nov. 21, 2022, 12:17 p.m. UTC
Instead of using hardcoded '0' as the do_scsi_scan_host() ->
scsi_scan_host_selected() rescan arg, use proper macro SCSI_SCAN_INITIAL.
Signed-off-by: John Garry <john.g.garry@oracle.com>
---
drivers/scsi/scsi_scan.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On 11/21/22 21:17, John Garry wrote: > Instead of using hardcoded '0' as the do_scsi_scan_host() -> > scsi_scan_host_selected() rescan arg, use proper macro SCSI_SCAN_INITIAL. > > Signed-off-by: John Garry <john.g.garry@oracle.com> Looks good. Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com> > --- > drivers/scsi/scsi_scan.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/scsi/scsi_scan.c b/drivers/scsi/scsi_scan.c > index 6cc974b382c1..920b145f80b7 100644 > --- a/drivers/scsi/scsi_scan.c > +++ b/drivers/scsi/scsi_scan.c > @@ -1920,7 +1920,7 @@ static void do_scsi_scan_host(struct Scsi_Host *shost) > msleep(10); > } else { > scsi_scan_host_selected(shost, SCAN_WILD_CARD, SCAN_WILD_CARD, > - SCAN_WILD_CARD, 0); > + SCAN_WILD_CARD, SCSI_SCAN_INITIAL); > } > } >
On 21/11/2022 12:33, Damien Le Moal wrote: > On 11/21/22 21:17, John Garry wrote: >> Instead of using hardcoded '0' as the do_scsi_scan_host() -> >> scsi_scan_host_selected() rescan arg, use proper macro SCSI_SCAN_INITIAL. >> >> Signed-off-by: John Garry<john.g.garry@oracle.com> > Looks good. > > Reviewed-by: Damien Le Moal<damien.lemoal@opensource.wdc.com> > cheers. As mentioned, I can combine these patches if people prefer. John
On 2022/11/21 20:17, John Garry wrote: > Instead of using hardcoded '0' as the do_scsi_scan_host() -> > scsi_scan_host_selected() rescan arg, use proper macro SCSI_SCAN_INITIAL. > > Signed-off-by: John Garry<john.g.garry@oracle.com> > --- > drivers/scsi/scsi_scan.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Looks good, Reviewed-by: Jason Yan <yanaijie@huawei.com>
On 11/21/22 05:48, John Garry wrote: > cheers. As mentioned, I can combine these patches if people prefer. I'm in favor of combining both patches. Whether or not these patches get combined, feel free to add: Reviewed-by: Bart Van Assche <bvanassche@acm.org>
diff --git a/drivers/scsi/scsi_scan.c b/drivers/scsi/scsi_scan.c index 6cc974b382c1..920b145f80b7 100644 --- a/drivers/scsi/scsi_scan.c +++ b/drivers/scsi/scsi_scan.c @@ -1920,7 +1920,7 @@ static void do_scsi_scan_host(struct Scsi_Host *shost) msleep(10); } else { scsi_scan_host_selected(shost, SCAN_WILD_CARD, SCAN_WILD_CARD, - SCAN_WILD_CARD, 0); + SCAN_WILD_CARD, SCSI_SCAN_INITIAL); } }