Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5398381rwl; Tue, 21 Mar 2023 18:37:24 -0700 (PDT) X-Google-Smtp-Source: AK7set/xyKnr0kiuZFbVXdyiKvXUuqwa55qQLZtrHI5B1HDsW0EuGoIlgvPSa7SG+HWzcVJsBuXz X-Received: by 2002:a17:902:a509:b0:19d:2a3:f019 with SMTP id s9-20020a170902a50900b0019d02a3f019mr3746413plq.1.1679449044215; Tue, 21 Mar 2023 18:37:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679449044; cv=none; d=google.com; s=arc-20160816; b=zy68RTxgVUsg5J1//s0qageLjipIPDl8OXc8TLU5BkgQaZh3WUVa5AHa6IIChULn7a ruVfshND5OFv/oiJ0X0pPi24GF2Xmj4SnZP8ONkOm1hKSRqTwlNQ914wG0Wg+D3Jgzyx lD4ZcwWbQtVAqE43jlBFsDpVIvoEnmDnJHXuVmx8uxu/5LMEYPdjrGgjkkOmOiTXZ1dj rmxaBw2upAa/ZHFPLeh1NeO0kubfST6YtOlNMDc2FOj8O8anRCZgh//ho9MIgIB+Iluq +RoTrto2yuuR/AsUoQIO02ZCc75PrplcSoGJZ/mpEmtikdq+t3E0pMqdKRx/2rSD9c9g cdJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=cLkdy2H+ruuA4UL25SaUZEhvU4tJRBpVJAsfKLpml+U=; b=1JiBSetFsJNj2dPU7xlnjQMT4+wEMq7jZwxxGiRCwCTM57caLoze0Zy7uAHZJRXLai pfjpbdr6K3Oq+GbXWJjUC8wFmcujt8vLAZFzD2op09FqzPEKcl3O6YE2HwvKyJxHk3Am k16HXfb/4E2I5UkcmVMWGFWN/M2HTur03kF+o69BoL7f2tWTqaRjG24Qltj3aO+InxZB kicUQsocBX3K6Pr+owe85chg5v5xalOuZNzmPMvw30pwXJGyGvaQKoNujgI8+oFaij6S mB3vB9YM3IZYVldmsykma/nrW2fJsD8y+85SF/+fFPzQuWJY/zLfE/YKEc3rqPMZ2EWu e8aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BFmEdz7B; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f9-20020a170902ce8900b0019cf49415dcsi15345929plg.632.2023.03.21.18.37.12; Tue, 21 Mar 2023 18:37:24 -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=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BFmEdz7B; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230174AbjCVBfh (ORCPT + 99 others); Tue, 21 Mar 2023 21:35:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230167AbjCVBfW (ORCPT ); Tue, 21 Mar 2023 21:35:22 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E78F92E820 for ; Tue, 21 Mar 2023 18:34:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1679448873; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cLkdy2H+ruuA4UL25SaUZEhvU4tJRBpVJAsfKLpml+U=; b=BFmEdz7BDYFn0X+4oZANoDyKB/pjY5swHKAmwkUYQ3BxphcyBPWsDDoT6aYyR7DisVxd1G K8OYB1yASQ9rVHmxe82NcbE50I5a+Vyw9KDqLCbPdFzFMzPsbS7IkLlT99a/WDBuLOE8zb KZ68Qjt6SeLPYKaft5Ak+Sbbjqvsx2k= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-582-TwrdUqlOP3qyDEKJ_lEd2g-1; Tue, 21 Mar 2023 21:34:29 -0400 X-MC-Unique: TwrdUqlOP3qyDEKJ_lEd2g-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 396543C0F18C; Wed, 22 Mar 2023 01:34:29 +0000 (UTC) Received: from ovpn-8-18.pek2.redhat.com (ovpn-8-17.pek2.redhat.com [10.72.8.17]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 29D772166B29; Wed, 22 Mar 2023 01:34:21 +0000 (UTC) Date: Wed, 22 Mar 2023 09:34:16 +0800 From: Ming Lei To: Yu Kuai Cc: jack@suse.cz, hare@suse.de, hch@infradead.org, axboe@kernel.dk, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, yi.zhang@huawei.com, yangerkun@huawei.com, "yukuai (C)" , Changhui Zhong Subject: Re: [PATCH -next 0/2] block: fix scan partition for exclusively open device again Message-ID: References: <20230217022200.3092987-1-yukuai1@huaweicloud.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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 Wed, Mar 22, 2023 at 09:26:07AM +0800, Yu Kuai wrote: > Hi, > > 在 2023/03/21 19:43, Ming Lei 写道: > > On Fri, Feb 17, 2023 at 10:21:58AM +0800, Yu Kuai wrote: > > > From: Yu Kuai > > > > > > Changes from RFC: > > > - remove the patch to factor out GD_NEED_PART_SCAN > > > > > > Yu Kuai (2): > > > block: Revert "block: Do not reread partition table on exclusively > > > open device" > > > block: fix scan partition for exclusively open device again > > > > Hi Yu kuai, > > > > Looks the original issue starts to re-appear now with the two patches: > > > > https://lore.kernel.org/linux-block/20221130135344.2ul4cyfstfs3znxg@quack3/ > > > > And underlying disk partition and raid partition can be observed at the > > same time. > > > > Can you take a look? > Yes, thanks for the report. I realize that sda1 adn sdb1 is created > while raid open sda and sdb excl, and I think this problem should exist > before this patchset. Looks not reproduced before applying your two patches, that is exactly what Jan tried to fix with 36369f46e917 ("block: Do not reread partition table on exclusively open device"). The issue is reported by Changhui's block regression test. Thanks, Ming