Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp4729688rwp; Sun, 16 Jul 2023 09:24:31 -0700 (PDT) X-Google-Smtp-Source: APBJJlFiPtH/sJXvg2Z1KltlUOK5RHk8HuCg3N7CJLc3NcwRuRwn+BiEhDW8e8sEzFcfp29w+NKx X-Received: by 2002:a2e:a9a5:0:b0:2b6:9969:d0ab with SMTP id x37-20020a2ea9a5000000b002b69969d0abmr3407193ljq.4.1689524670860; Sun, 16 Jul 2023 09:24:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689524670; cv=none; d=google.com; s=arc-20160816; b=wyH89CduT9g5lTU0qRtWEt1lr5nXQUoEIlQkO9WV0qbRhji7Epn2LXUT+XabQiySyM xvu8BgKxWOJHZ9doA2SiKkcwX6Aj5jLQGVEzQVhRim4gAWFyJyHiZPsuprUPZgCm55W/ IHbXhDBvHXwKna45bxNwf2AqDrgG9kgWmuPTReRpHX8lVs0n7YNa6hp5WHFvTo6mERF8 bGD7S/5zhU2CIYYphvyjuO80zJpXY2W4EnlAN92WU9Q1fWq6ysPMgdx0yHOfIx/oQz37 RaQkTKxq1hIf7JJoMeXETq2eSRjtzG8AxzXYkiOMUvmYmGyP73NO4o4v0YRX4ab5/LOo 8+sA== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=1LHEMA87hz0bPqq01aqffQrDTIU7RF1BFqZ+UOC0uVY=; fh=WbgRgHe+xuKGpY4JGl/WeEMMCEgih0QhgSubxHMY8Cs=; b=0xsY+v6aK3dtStA2cAutZumL5W4oLjBFm7mgD+uzNEdsIje9COVHSF4wEyDtFvQXvQ kjJ/5v4uBsdX1ZjuK8tNah6ef/FAXqhA4gDx+LLcUj2r5aB9bIfXiuvZ/0VBJE6tUf5S +sKmjyPX6/74PwrwqHG3Z6pc8aGTDM9un3N3K1Z7t1i4hP7mJP6p4i5YhvTMDmWAtpZJ OclcyZoQ4qaCYpbZc6n6Jk7587RlTBI0/GztbEP0Fxj/oBbGG74LG4k9P7YpCUDe2WQb FftgVgLYtJO7H7MfgDHlXdP4scmvrV4P9UXeXa9fVA1vNZq67H1vM4SLiJmnNJbofscy cGpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=WX63MLrQ; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s23-20020a1709066c9700b00993b3881eccsi11898054ejr.691.2023.07.16.09.24.03; Sun, 16 Jul 2023 09:24:30 -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=@linuxfoundation.org header.s=korg header.b=WX63MLrQ; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230121AbjGPPQ3 (ORCPT + 99 others); Sun, 16 Jul 2023 11:16:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229617AbjGPPQZ (ORCPT ); Sun, 16 Jul 2023 11:16:25 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E35981B7; Sun, 16 Jul 2023 08:16:24 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 80B6160D30; Sun, 16 Jul 2023 15:16:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 65317C433C8; Sun, 16 Jul 2023 15:16:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1689520583; bh=TBe9iDjVnkR+UmC0zth4fQ+GS4Xe/RGNJO67dRLKtQ4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WX63MLrQ7bxnNctMb3HgCh4i2qCHQ3M5ugI6ZOkweVwbjM8/NoILt5biY78yW57Jo nnE63fWeaDDp8rZpmuEAYBjbo1sIY89rs131GVe1z51rlH6jaF8OQSlzecqtRcljbi s2c+TVGlaZ1Cm4Rje4UEBQk0NPGaag2HG8lcAsxc= Date: Sun, 16 Jul 2023 17:16:21 +0200 From: Greg KH To: Mark-PK Tsai Cc: Alasdair Kergon , Mike Snitzer , dm-devel@redhat.com, Jonathan Corbet , Matthias Brugger , yj.chiang@mediatek.com, Peter Korsgaard , Mike Snitzer , stable@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH 5.15] dm init: add dm-mod.waitfor to wait for asynchronously probed block devices Message-ID: <2023071603-lustily-defraud-2149@gregkh> References: <20230713055841.24815-1-mark-pk.tsai@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230713055841.24815-1-mark-pk.tsai@mediatek.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 13, 2023 at 01:58:37PM +0800, Mark-PK Tsai wrote: > From: Peter Korsgaard > > Just calling wait_for_device_probe() is not enough to ensure that > asynchronously probed block devices are available (E.G. mmc, usb), so > add a "dm-mod.waitfor=[,..,]" parameter to get > dm-init to explicitly wait for specific block devices before > initializing the tables with logic similar to the rootwait logic that > was introduced with commit cc1ed7542c8c ("init: wait for > asynchronously scanned block devices"). > > E.G. with dm-verity on mmc using: > dm-mod.waitfor="PARTLABEL=hash-a,PARTLABEL=root-a" > > [ 0.671671] device-mapper: init: waiting for all devices to be available before creating mapped devices > [ 0.671679] device-mapper: init: waiting for device PARTLABEL=hash-a ... > [ 0.710695] mmc0: new HS200 MMC card at address 0001 > [ 0.711158] mmcblk0: mmc0:0001 004GA0 3.69 GiB > [ 0.715954] mmcblk0boot0: mmc0:0001 004GA0 partition 1 2.00 MiB > [ 0.722085] mmcblk0boot1: mmc0:0001 004GA0 partition 2 2.00 MiB > [ 0.728093] mmcblk0rpmb: mmc0:0001 004GA0 partition 3 512 KiB, chardev (249:0) > [ 0.738274] mmcblk0: p1 p2 p3 p4 p5 p6 p7 > [ 0.751282] device-mapper: init: waiting for device PARTLABEL=root-a ... > [ 0.751306] device-mapper: init: all devices available > [ 0.751683] device-mapper: verity: sha256 using implementation "sha256-generic" > [ 0.759344] device-mapper: ioctl: dm-0 (vroot) is ready > [ 0.766540] VFS: Mounted root (squashfs filesystem) readonly on device 254:0. > > Signed-off-by: Peter Korsgaard > Signed-off-by: Mike Snitzer > Cc: stable@vger.kernel.org > Signed-off-by: Mark-PK Tsai > --- > .../admin-guide/device-mapper/dm-init.rst | 8 +++++++ > drivers/md/dm-init.c | 22 ++++++++++++++++++- > 2 files changed, 29 insertions(+), 1 deletion(-) What is the git commit id of this change in Linus's tree? thanks, greg k-h