Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp4521314rwb; Tue, 20 Sep 2022 15:30:49 -0700 (PDT) X-Google-Smtp-Source: AMsMyM65I/X6v004b4RO6rtxkI8hoG54ejwZj7RW31vBoh49q3LTViSdO9u8VSob8lsoD7Itj/4A X-Received: by 2002:a05:6402:289a:b0:453:ff16:1a8f with SMTP id eg26-20020a056402289a00b00453ff161a8fmr11907058edb.330.1663713049243; Tue, 20 Sep 2022 15:30:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663713049; cv=none; d=google.com; s=arc-20160816; b=YOmCQSqxEYUOmfsGWzQvADtn/6oltZxBGh3tyPznIvKU0eElCUKe4KHZK600QOftn5 f1XCapL+a6YRealI6uV0KxqBCifxiYIEQShF05b/DCLxBs55fBLtTDm4jbtwmxt/peGI CMETX8Bjl2YG/h22aQIGzJmhnYLbn7Lu+QrjW4zwaM8TcKD8kg4YSGwNVwtnls+MaOoV V9IWxN+YxAL0JYi7UKltuRxbVApetQkkM414XVSwF/lBxsa8djxxtVFFL9b5xA4F7ytS WnEW20pd9t13JHmXctIwHgaJbYD+JhU2ul5UGacU2Fn9gn8zno6AwXsv9mADzDEhOpmz /7JA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature :wdcironportexception:ironport-sdr:ironport-sdr:dkim-signature; bh=5z27awGeIdg8U/Or7rmx3C3tCzVn0OBtqmg3C7Tlpjs=; b=bUoh+qEhvZVG+C7rDvs3D+r4AJ6MzKZfmJDJvknDis0+p7/gUWJwLIw+9iTTuFwXV9 Cm0xwxJlv+O0EYB//BdUsMhILxrfN8hyP6IdGyYKz5K84jA2QfmPWv0NxOp2GTo/k0Ip 6KQ7yFctq0qXwrpfHQ/S3/DEuHgoCyQZ2rzateBVZOtlEf5HfBTi0t9TMyT0SotMA91D tVSikkponKW0MhxLY6ThlFUAJmSGDAaKvkozW8zWvbHbC4gYPVTUOccYYdXPKmeg5zjy VBg6BEKJRyklLLyqlALqZ1ST7phVmro0kNz31jg+8JtXkrxnPYU7sFome05zzBpNvn1I /q2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b="MNIl2A/n"; dkim=pass header.i=@opensource.wdc.com header.s=dkim header.b=RlpUBSmg; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=opensource.wdc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y11-20020a056402270b00b0044f0dc2cbd6si1098970edd.378.2022.09.20.15.30.23; Tue, 20 Sep 2022 15:30:49 -0700 (PDT) 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=fail header.i=@wdc.com header.s=dkim.wdc.com header.b="MNIl2A/n"; dkim=pass header.i=@opensource.wdc.com header.s=dkim header.b=RlpUBSmg; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=opensource.wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230154AbiITWDo (ORCPT + 99 others); Tue, 20 Sep 2022 18:03:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230146AbiITWDm (ORCPT ); Tue, 20 Sep 2022 18:03:42 -0400 Received: from esa3.hgst.iphmx.com (esa3.hgst.iphmx.com [216.71.153.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F787760D9 for ; Tue, 20 Sep 2022 15:03:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1663711420; x=1695247420; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=+hPpgbC5aTpEknoMOIocfRrMBJmIwKssPL6d+jJ3i58=; b=MNIl2A/nkU7KWxq7UhIxsrBAPHPgo1GoJ+0Q0ZSUiWO3DH7AZMhYHFUf nPQVRodbufg5O2aL1Tlb53i3Lv/HKCHU7mm0cqT1h+2DZlrCssudOWxJN SdiRUKjAMZUCFO9Pr8sseAuo4vKsE6nbxhBYGcfZhF7jpDejd7q1YMXoK XfWhC04oWq1oHDHYvWIXnBf7nhUXELhplIpnQr1HrouV2J6YzwMsckcyF x88oiRTbj9qglxbDqu7hlrKHXUfg2IH1Oadd2ZzyJxTHNGfM8Bh6hArrj yX3/cf7dTVeQRZx8LSBw6HQ7jzPnxJ1J2ancqomNCnIscX/RUtbnjuNC4 A==; X-IronPort-AV: E=Sophos;i="5.93,331,1654531200"; d="scan'208";a="217030195" Received: from uls-op-cesaip02.wdc.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 21 Sep 2022 06:03:39 +0800 IronPort-SDR: b52gPdzIWvL7eXF7zPPq9tXun54L0CmSPx/ieq8MNwfGvACAgMZABORZbWI6GZ7UOMAvm23Y/j QDQZjzgQcLq/cNvKtr/6l3+zLfAKzx8C9qPF8QIin2m7Eoiy2QM6s/6jGfFcQLs16cFZdTsr9V qTmNh9hHPe7OMz25x3UWdtsLq8KNiA1sf2szWcGgRlE8S+6LreL40r2DuSmMsqQW2UDDNmsqxP gwFmd9t4Q7C1sVAKsXQalGTuEhDc0UBSVptAZYU7UVNGBoTR+34hG+6KeVjb3ErQNqvwNAI6vr h2c3QNCLXnt0JIHh9/qDkjOa Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep02.wdc.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 20 Sep 2022 14:18:15 -0700 IronPort-SDR: KSMTrrCySjebUuryG1VPGpFalH9S1GfYe/eDO9rL6dnMT4dEWMWbSPiDYAdV3rAD03c6uOKVZT BUI/sUzaBzFaHxuI2Jx7T8japJvaoVUr+oopfZdfeuNzG6ZO8L9r4dOIxaA0rLelUscJlGuRKE 02HLH5DGqTvdSDm4IWr0JxxpzsoCtknXZCPnkodL+Q2aMEADzYw+UBMZ6p3hBQWbi6ETu4/2dF NhDTiVOt/5a9dTAJl0tUXtkPOHvwm3hoGxRzQcMdBkhdxH4ejnbI3go3ZNHR+yk5OZliLNuHBj +vE= WDCIronportException: Internal Received: from usg-ed-osssrv.wdc.com ([10.3.10.180]) by uls-op-cesaip02.wdc.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 20 Sep 2022 15:03:40 -0700 Received: from usg-ed-osssrv.wdc.com (usg-ed-osssrv.wdc.com [127.0.0.1]) by usg-ed-osssrv.wdc.com (Postfix) with ESMTP id 4MXFtM3STQz1Rwtm for ; Tue, 20 Sep 2022 15:03:39 -0700 (PDT) Authentication-Results: usg-ed-osssrv.wdc.com (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=opensource.wdc.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d= opensource.wdc.com; h=content-transfer-encoding:content-type :in-reply-to:organization:from:references:to:content-language :subject:user-agent:mime-version:date:message-id; s=dkim; t= 1663711418; x=1666303419; bh=+hPpgbC5aTpEknoMOIocfRrMBJmIwKssPL6 d+jJ3i58=; b=RlpUBSmgP2MlKTyHdrVMvy2qbkj0Lc/Bti0ZF3d+/hbaUkGAfnk QjhquYKhKYvkpZeSmmUlIG4wEmXCo+09kSc1ebtRKQCxQXaF1k7twbLYAnq0Qc2Q kfdUPzWmLH0gNwM6cUpBiVIE5wVWUONHnJJpUMpuWhf2E2zyqV8L6KYx0kOh7OL6 CtOudvjp1J1YV536kRmzaYiABTZdCe1jPDkscPd8RbxhzR9oqqSdfuYPXTPH45Fr n6FGHPzGSAjSyAAYd2Z5WpNzdKAmZb0yInrtgUxWyRzYZGtUiU1+ZDFKyTt0sfbJ t9eI8JWRTtPuHKhADdyiAdQamcznsN0Psdw== X-Virus-Scanned: amavisd-new at usg-ed-osssrv.wdc.com Received: from usg-ed-osssrv.wdc.com ([127.0.0.1]) by usg-ed-osssrv.wdc.com (usg-ed-osssrv.wdc.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Wsg5gtuHIWpl for ; Tue, 20 Sep 2022 15:03:38 -0700 (PDT) Received: from [10.149.53.254] (washi.fujisawa.hgst.com [10.149.53.254]) by usg-ed-osssrv.wdc.com (Postfix) with ESMTPSA id 4MXFtH54PRz1RvLy; Tue, 20 Sep 2022 15:03:35 -0700 (PDT) Message-ID: <67b11e85-3e4e-beb7-4a2b-ef856207b227@opensource.wdc.com> Date: Wed, 21 Sep 2022 07:03:33 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.1 Subject: Re: [PATCH 1/6] scsi: core: Use SCSI_SCAN_RESCAN in __scsi_add_device() Content-Language: en-US To: John Garry , jejb@linux.ibm.com, martin.petersen@oracle.com, hare@suse.de, hch@lst.de Cc: linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, brking@us.ibm.com References: <1663669630-21333-1-git-send-email-john.garry@huawei.com> <1663669630-21333-2-git-send-email-john.garry@huawei.com> From: Damien Le Moal Organization: Western Digital Research In-Reply-To: <1663669630-21333-2-git-send-email-john.garry@huawei.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS autolearn=unavailable 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: X-Mailing-List: linux-kernel@vger.kernel.org On 9/20/22 19:27, John Garry wrote: > Instead of using hardcoded '1' as the __scsi_add_device() -> > scsi_probe_and_add_lun() rescan arg, use proper macro SCSI_SCAN_RESCAN. > > Signed-off-by: John Garry > --- > drivers/scsi/scsi_scan.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/scsi/scsi_scan.c b/drivers/scsi/scsi_scan.c > index ac6059702d13..3759b1a77504 100644 > --- a/drivers/scsi/scsi_scan.c > +++ b/drivers/scsi/scsi_scan.c > @@ -1588,7 +1588,8 @@ struct scsi_device *__scsi_add_device(struct Scsi_Host *shost, uint channel, > scsi_complete_async_scans(); > > if (scsi_host_scan_allowed(shost) && scsi_autopm_get_host(shost) == 0) { > - scsi_probe_and_add_lun(starget, lun, NULL, &sdev, 1, hostdata); > + scsi_probe_and_add_lun(starget, lun, NULL, &sdev, > + SCSI_SCAN_RESCAN, hostdata); > scsi_autopm_put_host(shost); > } > mutex_unlock(&shost->scan_mutex); Looks good. Reviewed-by: Damien Le Moal -- Damien Le Moal Western Digital Research