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 7C39FC7EE2F for ; Tue, 23 May 2023 16:58:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237879AbjEWQ6V (ORCPT ); Tue, 23 May 2023 12:58:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237870AbjEWQ6S (ORCPT ); Tue, 23 May 2023 12:58:18 -0400 Received: from mail-qt1-f177.google.com (mail-qt1-f177.google.com [209.85.160.177]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1AE4119D for ; Tue, 23 May 2023 09:57:27 -0700 (PDT) Received: by mail-qt1-f177.google.com with SMTP id d75a77b69052e-3f4f47336bcso37131921cf.3 for ; Tue, 23 May 2023 09:57:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684861046; x=1687453046; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=6cIpc2hkpfcX9ytnNlNra4xHWCIbNM5n2UygyBIAgU8=; b=WHGK2NEuq9oQEVEnhOnX2zJpT9WwVOy0LvVRYmpj2zywQNTnp3WqTQANVvya2QJuX3 aILaqyz2nTJDgqurVE8BuxSTDsM0We6KetU5UdrSw4VMG0pbSBh98V9utNTS3pDuVeV5 cTSSQUagd0Dx+0PtCKpb7QLnnJBIUpefzfL07l1TqMkdGclRgE6Rk4OdycMLLNBJY9Sv iuPf0AO26G9+/+KnrtC2i1kM6GAKBywamJk+f/glH7bXDK7cNBliMhQ2jPSNwt3xbBv8 nH+yI03p1p4xM4pkJntE8vJXYEbXS9uEQflxPtTuZGo/iMIXIpVvGb3u2MeglrM+yUcs 1l9A== X-Gm-Message-State: AC+VfDz46R2iKwAzHjL3fvYIcJJNQQZUbMGAUBij/UcJV8W1dtYWSr8m kfdpLp5Hjzp7avCJCea6aIgl X-Google-Smtp-Source: ACHHUZ6FTUIWRZ17w4sgstUiGYRBur4Ios77FwtNmNA/oETp74y448b9irsL1KV98Bhgct8ETOyo4g== X-Received: by 2002:a05:622a:112:b0:3f5:3a79:f863 with SMTP id u18-20020a05622a011200b003f53a79f863mr23323837qtw.25.1684861046295; Tue, 23 May 2023 09:57:26 -0700 (PDT) Received: from localhost (pool-68-160-166-30.bstnma.fios.verizon.net. [68.160.166.30]) by smtp.gmail.com with ESMTPSA id y14-20020a0ceace000000b0062120b054ebsm2930934qvp.19.2023.05.23.09.57.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 May 2023 09:57:25 -0700 (PDT) Date: Tue, 23 May 2023 12:57:24 -0400 From: Mike Snitzer To: Christoph Hellwig Cc: Jens Axboe , Greg Kroah-Hartman , "Rafael J. Wysocki" , Joern Engel , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Pavel Machek , dm-devel@redhat.com, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, linux-mtd@lists.infradead.org, linux-pm@vger.kernel.org Subject: Re: [PATCH 18/24] dm: open code dm_get_dev_t in dm_init_init Message-ID: References: <20230523074535.249802-1-hch@lst.de> <20230523074535.249802-19-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230523074535.249802-19-hch@lst.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 23 2023 at 3:45P -0400, Christoph Hellwig wrote: > dm_init_init is called from early boot code, and thus lookup_bdev > will never succeed. Just open code that call to early_lookup_bdev > instead. > > Signed-off-by: Christoph Hellwig Reviewed-by: Mike Snitzer