From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DA041C7EE25 for ; Wed, 7 Jun 2023 13:37:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238224AbjFGNhh (ORCPT ); Wed, 7 Jun 2023 09:37:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235696AbjFGNhf (ORCPT ); Wed, 7 Jun 2023 09:37:35 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A000B19BF for ; Wed, 7 Jun 2023 06:37:34 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id CFEA968BEB; Wed, 7 Jun 2023 15:37:30 +0200 (CEST) Date: Wed, 7 Jun 2023 15:37:30 +0200 From: Christoph Hellwig To: Fabio Estevam Cc: Christoph Hellwig , Jens Axboe , linux-kernel Subject: Re: rootwait regression in linux-next Message-ID: <20230607133730.GA21195@lst.de> References: <20230607053758.GA20425@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Fabio, I guess we need an ENODEV for that last case as well. Please try this patch: diff --git a/block/early-lookup.c b/block/early-lookup.c index 3ff0d2e4dcbfb8..48ea3e982419cc 100644 --- a/block/early-lookup.c +++ b/block/early-lookup.c @@ -181,7 +181,7 @@ static int __init devt_from_devname(const char *name, dev_t *devt) *p = '\0'; *devt = blk_lookup_devt(s, part); if (*devt) - return 0; + return -ENODEV; /* try disk name without p */ if (p < s + 2 || !isdigit(p[-2]) || p[-1] != 'p') @@ -190,7 +190,7 @@ static int __init devt_from_devname(const char *name, dev_t *devt) *devt = blk_lookup_devt(s, part); if (*devt) return 0; - return -EINVAL; + return -ENODEV; } static int __init devt_from_devnum(const char *name, dev_t *devt)