Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1089202pxj; Fri, 4 Jun 2021 05:58:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzV19QLJFFf/yq2j8Di88PBYWscx2PyU/5h9dYwAbdjC5/XqHUhS4XJDzFT/aAxWMIBUOPq X-Received: by 2002:a17:906:2c52:: with SMTP id f18mr4069951ejh.258.1622811522839; Fri, 04 Jun 2021 05:58:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622811522; cv=none; d=google.com; s=arc-20160816; b=GBR6oZeVTmtqbEUsWebc1VSjkIA+iqTvYmy63osCS8xif82tT5EmyNxSqjcGebFok+ D0YdwyvUakBRZ5wPeSGjBslJl7u4WbpCk/aXion1x01uJ4uDcS2G97wQiB5j/d923GUC EIVt7igk5kLc1nfkGNuGEmsvV/sIZIq0513ncoTYt6KEi6qijskFiovXgescH1KZNOJR y4Mdk02DRpJelI0JRgR7Z69nJIVsIV102Xsb+QkiFo7QK3Ifanvzq6WQl+85JNLKJHwB xFb/pCdpgEbKOhwY9ETldxBf0kt0x1lVVjPLtlVUXl01LcpfeMhhEgQ8oeMdJCoGadfP EDXA== 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=LP9uhc/Rwa/wbWvZXkd++010ewmWRXnMefbmPhOFJU0=; b=gY59SXd9dOMfyZg22jbg34U+jRuc5PmkuRHTR3K+nPMIvMcRYTAK1avveqiCXPwUO9 KBFILfSpQl3Cq4S1VZah1+R9zPgSine+mnLEuIqU1RqoDXLfDKeNOyqByVay9Q1E/ci6 755x6OXCCJw88CBSsf4oHbW5JcQMjEhFeEzCDibNDfNjmmXw1lgpRYAmbK/DAVIxL71O cOiekZ4htlF7SCUsBpQxZMf9XU0T73qfQ2unHiX4UChnF+AIbGJ9w+mqA3QFW5FE8E9z P2Ns03z0iEzBml/jYGudjMhHVYqrMMSAjZ+uf3V2FUedHQEW4w//3G+7JwJ+042WBSOO MErQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ZVsgwuhw; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id sb9si5352379ejb.411.2021.06.04.05.58.19; Fri, 04 Jun 2021 05:58:42 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ZVsgwuhw; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230198AbhFDM64 (ORCPT + 99 others); Fri, 4 Jun 2021 08:58:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:41870 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230039AbhFDM6z (ORCPT ); Fri, 4 Jun 2021 08:58:55 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id CABF361090; Fri, 4 Jun 2021 12:56:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622811414; bh=bXk9UiSEUzB+QZBXcKoOU1eQSq9uMgs4UN0fcnYBfPs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZVsgwuhwYuGSCN79OYnTdx6+D6U31F92849hdd5F+CYPeGVch/w616wnTxxXkeVfA lpwS9bmf7wQuGkUxJYpja0wLF8l4FZI+wedYvB9G6O9nkg1PoF1FLgy/l0K0cZovRA dMMxlSAm4nvw8IzqROib5XLpH/Z3fG7bPkd9gvts= Date: Fri, 4 Jun 2021 14:56:51 +0200 From: Greg Kroah-Hartman To: Adrian Ratiu Cc: "Rafael J. Wysocki" , Andrew Morton , kernel@collabora.com, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 0/1] Initialize debugfs/ksysfs earlier? Message-ID: References: <20210603125534.638672-1-adrian.ratiu@collabora.com> <87y2bqwwfz.fsf@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87y2bqwwfz.fsf@collabora.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 03, 2021 at 11:00:00PM +0300, Adrian Ratiu wrote: > Hi and thank you for the quick response! > > On Thu, 03 Jun 2021, Greg Kroah-Hartman wrote: > > On Thu, Jun 03, 2021 at 03:55:33PM +0300, Adrian Ratiu wrote: > > > Hi Greg & all, I would like to add a new debugfs file like in the > > > next patch but I'm having a problem with commit 56348560d495 > > > ("debugfs: do not attempt to create a new file before the filesystem > > > is initalized"). > > > > You should have had a problem before that commit happened as well, > > right? > > > > Actually no, it works without problems before commit 56348560d495 and also > works if I revert that commit or move the debugfs_init() and its dependency > ksysfs_init() before the driver core init. And the file shows up properly? How can that be? Is it ok to create a file before the superblock is created in the system? For some reason I thought these were just silently failing and no one noticed. Maybe we should revisit that commit... thanks, greg k-h