Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4348759pxf; Tue, 23 Mar 2021 08:32:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVnijgbKKwQg3cMX6VE01QAYEj3qVzJ4tCAdTUMwb54pQCuCnSSQrMJL4akSLFj4t/ZkPs X-Received: by 2002:aa7:d954:: with SMTP id l20mr5148422eds.1.1616513579602; Tue, 23 Mar 2021 08:32:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616513579; cv=none; d=google.com; s=arc-20160816; b=iHpWrvsHd+Hpd4joJCy6ISz4PRO0qykaoolIefY2zgcIgVxhjZw31xikWzRahcU2pu olgJvhrgDVSKG0u2f3cr30tmetqTNe50X82lI7aYw8ZuDbBALPC1vW4KenYZsxHFCOV0 po5h20pg4Yc39frS5lZJoZEn3NCd3+z5j3Jfl2dIntoKtVE12hrWDSZ2iwRCtc1okuL2 BM4neNcdJsLYACMRwT8ZvqJwTwgf/MeMDFpG2Ssa96+34Dk1HPMRAvcc7ib+bLxp1kWe Kk9Y7CvDNmMzcmXW9+3gxHAp4E1lAkycQalG/ddfSrDumFx4u8qIL1MPD+7kKVXNBCMc SbVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:reply-to; bh=Ne0CKj+jGcTwC2OOm4Hs9pCYEgPZP9IiY0djzpNFhEY=; b=DD49AL0FfZEdleyKS4svAsvInfKSMUQke8YNQpkf8jY4LWgyRoIBo9DfzrfDavK2ew WFlRIc7b3bIKeGrtsre8UjRKCEQzbEvF5DHNxV99UilF2A94svPlzlPS6nd7k1MqlJfA 6wInO6fr91oiuCtM0VX91S0/Ijq2fhoYVd8hbGjyapLsPBWqEvwGF4WxRXJL9Q29S8ss 99XssqoHPXBeGtCxwHRLTtJSvP0l/LO6vWG2tlTFvRybWHfi9xnNctFVBtIZH7yLm8fL OukUu5ACu3DqyYEgfLVqSKcx+GsfCupu9EyWKR+Lrb0SxzEo5VBUSCbi85VMA/SxU15/ Tpvg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m9si13525263ejr.535.2021.03.23.08.32.36; Tue, 23 Mar 2021 08:32:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232816AbhCWPaF (ORCPT + 99 others); Tue, 23 Mar 2021 11:30:05 -0400 Received: from mail-1.ca.inter.net ([208.85.220.69]:57012 "EHLO mail-1.ca.inter.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232308AbhCWP3i (ORCPT ); Tue, 23 Mar 2021 11:29:38 -0400 Received: from localhost (offload-3.ca.inter.net [208.85.220.70]) by mail-1.ca.inter.net (Postfix) with ESMTP id 342E82EA319; Tue, 23 Mar 2021 11:29:35 -0400 (EDT) Received: from mail-1.ca.inter.net ([208.85.220.69]) by localhost (offload-3.ca.inter.net [208.85.220.70]) (amavisd-new, port 10024) with ESMTP id DuPAF25aiZY6; Tue, 23 Mar 2021 11:11:45 -0400 (EDT) Received: from [192.168.48.23] (host-45-58-219-4.dyn.295.ca [45.58.219.4]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: dgilbert@interlog.com) by mail-1.ca.inter.net (Postfix) with ESMTPSA id 339422EA3B3; Tue, 23 Mar 2021 11:29:34 -0400 (EDT) Reply-To: dgilbert@interlog.com Subject: Re: [scsi_debug] 20b58d1e6b: blktests.block.001.fail To: kernel test robot Cc: 0day robot , LKML , lkp@lists.01.org, linux-scsi@vger.kernel.org, martin.petersen@oracle.com, mcgrof@kernel.org, hare@suse.de References: <20210323132620.GA23032@xsang-OptiPlex-9020> From: Douglas Gilbert Message-ID: Date: Tue, 23 Mar 2021 11:29:33 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20210323132620.GA23032@xsang-OptiPlex-9020> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-CA Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-03-23 9:26 a.m., kernel test robot wrote: > > > Greeting, > > FYI, we noticed the following commit (built with gcc-9): > > commit: 20b58d1e6b9cda142cd142a0a2f94c0d04b0a5a0 ("[RFC] scsi_debug: add hosts initialization --> worker") > url: https://github.com/0day-ci/linux/commits/Douglas-Gilbert/scsi_debug-add-hosts-initialization-worker/20210319-230817 > base: https://git.kernel.org/cgit/linux/kernel/git/jejb/scsi.git for-next > > in testcase: blktests > version: blktests-x86_64-a210761-1_20210124 > with following parameters: > > disk: 1SSD > test: block-group-00 > ucode: 0xe2 > > > > on test machine: 4 threads Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz with 32G memory > > caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): This RFC was proposed for Luis Chamberlain to consider for this report: https://bugzilla.kernel.org/show_bug.cgi?id=212337 Luis predicted that this change would trip up some blktests which is exactly what has happened here. The question here is whether it is reasonable (i.e. a correct simulation of what real hardware does) to assume that as soon as the loading of the scsi_debug is complete, that _all_ LUNs (devices) specified in its parameters are ready for media access? If yes then this RFC can be dropped or relegated to only occur when a driver parameter is set to a non-default value. If no then those blktest scripts need to be fixed to reflect that after a HBA is loaded, all the targets and LUNs connected to it do _not_ immediately become available. Doug Gilbert > If you fix the issue, kindly add following tag > Reported-by: kernel test robot > > 2021-03-21 02:40:23 sed "s:^:block/:" /lkp/benchmarks/blktests/tests/block-group-00 > 2021-03-21 02:40:23 ./check block/001 > block/001 (stress device hotplugging) > block/001 (stress device hotplugging) [failed] > runtime ... 30.370s > --- tests/block/001.out 2021-01-24 06:04:08.000000000 +0000 > +++ /lkp/benchmarks/blktests/results/nodev/block/001.out.bad 2021-03-21 02:40:53.652003261 +0000 > @@ -1,4 +1,7 @@ > Running block/001 > Stressing sd > +ls: cannot access '/sys/class/scsi_device/4:0:0:0/device/block': No such file or directory > +ls: cannot access '/sys/class/scsi_device/5:0:0:0/device/block': No such file or directory > Stressing sr > +ls: cannot access '/sys/class/scsi_device/4:0:0:0/device/block': No such file or directory > Test complete > > > > To reproduce: > > git clone https://github.com/intel/lkp-tests.git > cd lkp-tests > bin/lkp install job.yaml # job file is attached in this email > bin/lkp split-job --compatible job.yaml > bin/lkp run compatible-job.yaml > > > > --- > 0DAY/LKP+ Test Infrastructure Open Source Technology Center > https://lists.01.org/hyperkitty/list/lkp@lists.01.org Intel Corporation > > Thanks, > Oliver Sang >