Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1224279pxb; Wed, 27 Oct 2021 22:52:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrP5I7VnXZETvoLdr77QWD9HnK+9Ff4iYItubvceEG4C9urPRoWwQZMKDKyNT3k8wCZGZI X-Received: by 2002:a17:907:1b1f:: with SMTP id mp31mr2691043ejc.319.1635400343928; Wed, 27 Oct 2021 22:52:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635400343; cv=none; d=google.com; s=arc-20160816; b=TDHLtjuf6LszHc5NvJxqs5HvDMWnrAmBxKr3MKlwptWrflJvGmItzozJ5UPgvZWaXR 06z1jZW/zokf436VIaeAEf/BS91rjoF+pMTs5DTC7q4FNrY+OG/1sL+EmO/xvWNQy/Xq N9G2xpOpZZ8OJ+hQlWHtf6BIbmXYqovuPI3OXaPg+exF2dVfdaV6GCLDigeYJb3PtUMu Lnk6P1fs7seBZ/K43Mq11hbi8JrsjHxuQZDQ1bVtUnvyQlzAOG4T2slrSZIpxL3FWOzC LMhQKnBexEabUAVjgawKdv498EKJwvj/dwgZ0ru5HC6hMupRZWPYqVI9L+RveRMBU6iT Y1gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=bJ/9L32gXikBj1dM019IqNKmeoK6AmEF5QWZXYXi16Y=; b=I5Z13SFi+fqCmG2j1ZVD1bA/k+5vZgAxT7qdWKebG76oOaWsMsFJcGC1JTRoM0QPCh iyZV3AWXJOfR9BF5UzPVoTXdTvAN9DGLvQQqA6T7tsfSdF8WjAavjLrJm3dqzdX/T3JR rVUrC02zeDPBJQEvyDw4ASRAQVpjV8KQFXfyRYutbUmP/tCNUErNSwDajkNz+fQtFPEa P5dRjLTZOeeEgIo1DARj8/6Eaw8/acuSI59h7D40NcdwvnUkKjrUJRXyfCEmkHcgTsFf D0LaaYmd+jQkUtJDL73e2hgx4cy8tfawEbh3VhwdfBZs25fA+gy1jW5C67AXtuEAiHdn c3dg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id sb15si3479774ejc.427.2021.10.27.22.51.58; Wed, 27 Oct 2021 22:52:23 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229705AbhJ1FwT (ORCPT + 99 others); Thu, 28 Oct 2021 01:52:19 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:60282 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229689AbhJ1FwS (ORCPT ); Thu, 28 Oct 2021 01:52:18 -0400 X-UUID: 0500a93a3b824aa4914b4f2b68f923ac-20211028 X-UUID: 0500a93a3b824aa4914b4f2b68f923ac-20211028 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1976393245; Thu, 28 Oct 2021 13:49:47 +0800 Received: from mtkmbs10n1.mediatek.inc (172.21.101.34) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Thu, 28 Oct 2021 13:49:46 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs10n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Thu, 28 Oct 2021 13:49:46 +0800 From: Mark-PK Tsai To: CC: , , , , , , , , , Subject: Re: [PATCH] dm: add module parameter bdev_wait Date: Thu, 28 Oct 2021 13:49:46 +0800 Message-ID: <20211028054946.1524-1-mark-pk.tsai@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > dm_early_create() fail if the target block device not found in > > the late init stage. > > The block device is created in mmc_rescan() which kernel do > > it async by queue it into system_freezable_wq. > > Add module param bdev_wait to support waiting the block device > > ready before dm_early_create() like prepare_namespace() does. > > This adds a busy loop. There is a reason why we usually set up > stacking drivers from userspace, in that we have a working event > system there. So the answer is not to add further hacks to the > in-kernel DM setup hack, but to stop using it. Thanks for your kind reply. But We want to use DM target as root device without adding an initramfs. Is there any other way to do so?