Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1763263lqz; Mon, 1 Apr 2024 17:17:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVjXSdcMc/fIzLEPy5nB9qQDtm5hFHdEyuEx1joEaICndsaFBDsniYfR7ucCjGrsrY0X5uJi0wf6ubXdKy5WtAUu4yiXVytPAFrtJbJPg== X-Google-Smtp-Source: AGHT+IHD/kgiad+SBgBz1ZO5VbnFzubF0fSgaGtbgkt9mGfNfheHnBgdldaxcahqKiDqFQs9fCC4 X-Received: by 2002:a05:622a:1a96:b0:432:dd58:1313 with SMTP id s22-20020a05622a1a9600b00432dd581313mr8086243qtc.44.1712017073547; Mon, 01 Apr 2024 17:17:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712017073; cv=pass; d=google.com; s=arc-20160816; b=enAa0/GwhNTcTbamYOwHSXk3mIEQlH5nlFOBXdy2Kdvep6EHeECF1L+cbKVWF13eIt I4bNLCfjtHm3EWfKIofZ85TpFrWclNDRcFJSk2HKwWso3+zbIuLopCEwmWnp81aDAZH8 ClD+Rb8obcXPRleiYNT5KM09qqbXk41NcoozA4/sngJJDTRBRbaWBp2MyE8a5DdAim9i IAFBc1lq7DkgXZqhIvdZRUatfj0H6AWMtzsDCgj870VCtsnOvCJ5MqgYnXyCIrrXZ0nP XeDgNJwpHYazSxOZdaYcruWByIPByF8C0hbUoWBbB5Jaq9Sy1xGS7yra6W8iq26AmpBN 5ctg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:organization:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=yIxQFhDRLWLvePin1M3PHcy3c1XYBaQtJme88BD2Heg=; fh=pddEMfyOXz4Ona2gMJ/SG/+jyGl/p8NfnMM3Up44ZzQ=; b=NMyIENF6bafRIinK0ZIwqkU+24zobGoDsA00JdXDw6yZ8AakUZhARqbu26eaf4rip2 U8D+IVBnDjmdOqZ8yV3iHOX8M7imaIPsVXGByW7MwJ1zmshrWcRELXmDPynC6+OhzqRI 4/MPZfWVbZg5EcUnvsEv8dp4zrkON99TCM77QTTkfUr49ma7s24lxmWNN4SZd8qRW/aC 4p0dGjcrHexw0gLXCyqAZ/9BAduLtYk8W9eG8+SfkwvuL4YYmdF2hJqflWdWOyI8mebW UmY7xulym8+SR+s2JIGgui+MJ6jxej3vkz52/rYmjzb9NOOqae/e5YtH0cki0w141hRm qjMA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OQcHond6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-127231-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127231-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id f1-20020ac87f01000000b00432d0b9dfa9si6098864qtk.232.2024.04.01.17.17.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Apr 2024 17:17:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-127231-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OQcHond6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-127231-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127231-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 470661C22BDC for ; Tue, 2 Apr 2024 00:17:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6A8408F70; Tue, 2 Apr 2024 00:16:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OQcHond6" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8BA5A4C6E; Tue, 2 Apr 2024 00:16:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712016993; cv=none; b=tEL2ApyOb92zjlDxFVN1EsNk7j1KaF8LcbXFw14A16UmNqcD6zLAI9Tu8FdQF0C4DBtVY5KQODFMs3S9SyR3A4xsyJuIhycdtvoGqBZC1TTimg6iw5Ff2oQyU7IemERF38VhVFQSA/cZfAbmNDQOvOUM5MpZx/r6MSkUvwu5wak= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712016993; c=relaxed/simple; bh=HOZtlcs+tBZgNdNWUO+mWam6pkEhyoDsTLqIi26K4Ro=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=kw+Hl6liVTs0kIeFzKgGTi+tfv57aIaU4gCy5YPz3z65tbe+BIFvSFfy4Gep/+/tv4RAsvTuOvphJKqhpRLDYmlO2mbE95aXHizQCc2FcZS4NrxMefhQyz+8+k5E6gWewyvEe/KKOhG+lrlS0iTnMzB49SFpoXCkvr8c74G+iFE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OQcHond6; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 20942C433C7; Tue, 2 Apr 2024 00:16:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712016993; bh=HOZtlcs+tBZgNdNWUO+mWam6pkEhyoDsTLqIi26K4Ro=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=OQcHond6VoT/QHlH+j25KOnWxMzoV9Xb6nobz+34SL785iYoBhP/VRKsHlFt+gh+r /FUrFxDtqsmn2zN4Q8G6JlzINYpGTTVZcsrGNilYIVqi2Xq/OoRwSM5+3uLNtGSMD9 Y1j9jZotAzslnclpKYn3FZzJVN5NUdED9MSgqYrjjLEaDQSdj3JCTcuDFOqbLdBmvj 4mKLaRPR2Y67Zs1irrMmcrCaL0hk9VY3rniPC9bqJaidux46+GGUqJ6XInmiyWBEpb pb2BvDec8sxYTCkOYRf3ARHjIwHH+5Hz7j1SWesAyss/VGA6Q4Nzy9uPGqpS9Fzi/a xrV370UDlR5ig== Message-ID: Date: Tue, 2 Apr 2024 09:16:30 +0900 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] scsi: sd: unregister device if device_add_disk() failed in sd_probe() To: Bart Van Assche , Yu Kuai , linan666@huaweicloud.com, jejb@linux.ibm.com, martin.petersen@oracle.com, mcgrof@kernel.org, hch@lst.de, "yukuai (C)" Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, linan122@huawei.com, yi.zhang@huawei.com, houtao1@huawei.com, yangerkun@huawei.com References: <20231208082335.1754205-1-linan666@huaweicloud.com> <6066205b-bdc8-4434-cc2d-3ce06004ae47@huaweicloud.com> <2af548ae-8877-4e8d-8dc2-541b3d6e6330@acm.org> Content-Language: en-US From: Damien Le Moal Organization: Western Digital Research In-Reply-To: <2af548ae-8877-4e8d-8dc2-541b3d6e6330@acm.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 4/2/24 02:51, Bart Van Assche wrote: > On 3/31/24 18:31, Yu Kuai wrote: >> I was shocked that this patch is still there. This patch is easy and >> straightforward. >> >> LGTM >> Reviewed-by: Yu Kuai >> >> BTW, Nan, it will be better if you have a reporducer for this. > Agreed that a reproducer would help. No information is present in the > patch description about how this issue was detected nor about how it was > tested. That probably would have encouraged reviewers. May be submit the reproducer as a blktest case while at it ? > > Bart. > -- Damien Le Moal Western Digital Research