Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp771266rwd; Wed, 7 Jun 2023 06:46:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5p6D3EBsTkroTup6Zfvl9YkC24ulbkf8mjdW7mcPTGILSVXPr0UpBA4Hwj2XTNA9wHaL+d X-Received: by 2002:a05:6a21:3983:b0:101:1951:d491 with SMTP id ad3-20020a056a21398300b001011951d491mr1923705pzc.6.1686145585029; Wed, 07 Jun 2023 06:46:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686145585; cv=none; d=google.com; s=arc-20160816; b=rB4yylUBqJwY+1Yy2de6o7mfDSkktgU+7VC++ijsAbuQmUIAxwWIodzepR6+b0OPf9 9aD17isawDboIa6YiOaDlMVXsGT/Zk1ZjdoPj3mnu6hjw0Bsu1fuJ1RTiZN3ccF9cPkA RbdCwOx9/Zcn9jeCyuLdMMj3wTu1VExLRqQ8tuaxjcDZ60BgGaTfh1+NAfshffJ/ElOn N/yrn/k2MZZD+NrU3Iqam7AnCq27/vYL+IUFNyVIt4RMCjDLYzNyzE8HfpeUcD0k5Sy4 w3eMnrtssnBoLV9GyveHpKp6GhVvu5XYDdAhIiU0IJzdFzGUbsRmtHpvLzry3jyzTZ69 wkQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=5XFM10XQP5Fkge1ER2v/4O7n/+CHyACanf06loCTDEY=; b=kO7t1IcuWoWkL1MUCqQD09HAkxXiZaUTkaAdVeoU8bE31GzOEh/zTqwqMrwCC1CQXQ M8b9tpLxiJVUZiWrJf5FeJaI0OS5vMPW9Bg6QfrRhkHCPTwBQm8RvALeV2Fz+wSogSZc YYrXxiqL1vU4qAw3Tf8gsHKbiYzBve7edw8xN8LMgfJgg5xN6yUJ4zTYQZL9+3PhLtua 2uB/bZltMTLXxeApc6oSeNHERerrgiHhKKuICkwEZ1Po8dQim9b4NMTFU809yf2/1Wa4 50XAqJf98ipzUkup0qaMfMBP2KdzDnShLrJ3nMZ/z8o1KFwpzU4ZrxFfefJ1IXY4uq5i J/Tg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a4-20020a624d04000000b0064ca7ac8938si8583490pfb.166.2023.06.07.06.46.10; Wed, 07 Jun 2023 06:46:25 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238959AbjFGNhh (ORCPT + 99 others); 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) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,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 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)