Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3319885ybt; Mon, 22 Jun 2020 22:24:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyB7ahjJ1wqofN3+wxpJY+NnHeIR+o1hFmgAYBvGv8KKga8fkc4EHLDYmtQriJRXmMtM8Cv X-Received: by 2002:a50:aacc:: with SMTP id r12mr20120041edc.219.1592889882835; Mon, 22 Jun 2020 22:24:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592889882; cv=none; d=google.com; s=arc-20160816; b=Vw+Nn3AFr6AOgcBYyvuuoATqyF3LIxHxfKmS2udCao53W/xYwtXhTeWQJty5WiV0m0 ffYaBao16V0ctSpHTr/h/0tOyP8p7A+Pdc6EjbWP/O4kuJKffkEz/DoGyWzfy+AO6S07 c6NQ1zt3r1gjqbqx9cStGxmmgKeANknvCJDWei+F1fbXLzfbsVYV7tU+n1fFm8YMiraD kYaPI1tTfKu06tvkj4BXRRx51DHsc1Q+mqBWK1XdYKz48YZ6ozzCxU1ddBQ4gqp3/rrV h9z2BsEXIraBcKg78loAY2sQbqM5LJXeTu1WJqANiU1FU4cQUjos7XDb9GchkO9ntFUD /HMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=So09dztJSt2l+3EBEbari1YvE62JOy/3YGXC1SpIHcA=; b=E+uReurKtO0BNvGreT1lGGkILRQ/nNFfv7rDQY/lHxhWKbb6XsXezU/kRyMhIvxI+H kNqa8ebXCFUf6ypEOG5+jHS82cFXstmriQoTrtdC5ne6OQqo7e8qAijP8dptcCqv/SAC vXtgy5cAgGnsnoolbgfUmsEbT2cfgfr4MIGa9k37fuo+PAlv0aA264PAKLSGXpF3sZjA ugyF/Mxogc/lUvx8p2RMJKXHVjXp4iBwLV0bMtrJy1Q/sJq8bj63BQVOwhowtYS5pDGw AXMh9C8+syOlvXSlnD46HNbaoMaHXWY48jb6vzJVuk0nOOXAX9Ttsx+Ft8il5NCr8L8u ++9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Fyh2tiws; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b12si14494581edz.444.2020.06.22.22.24.20; Mon, 22 Jun 2020 22:24: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=@kernel.org header.s=default header.b=Fyh2tiws; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730412AbgFWFVg (ORCPT + 99 others); Tue, 23 Jun 2020 01:21:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:51682 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728866AbgFWFVf (ORCPT ); Tue, 23 Jun 2020 01:21:35 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2C63D20716; Tue, 23 Jun 2020 05:21:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592889694; bh=qcj1oy+YsTeJkEmfabJGHIuEEm8lk09hF25nMTjyERE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Fyh2tiwsePA0O2LLe0TAZc+hz15iln34sieHfLaAeUJuVmnxM5OJ5Ux62qJQVhgi7 VLlObODIYUGEZzx2goMBOCcqTUEQIcTnrBvCw/5PWvijhG2/f8dC43vODx5FzKVxhv gK13FqhYguejHu8T5BiIQ4l1Da6EVs6xTtnmNrcc= Date: Tue, 23 Jun 2020 07:21:28 +0200 From: Greg Kroah-Hartman To: Rick Lindsley Cc: Tejun Heo , Ian Kent , Stephen Rothwell , Andrew Morton , Al Viro , David Howells , Miklos Szeredi , linux-fsdevel , Kernel Mailing List Subject: Re: [PATCH v2 0/6] kernfs: proposed locking and concurrency improvement Message-ID: <20200623052128.GB2252466@kroah.com> References: <159237905950.89469.6559073274338175600.stgit@mickey.themaw.net> <20200619153833.GA5749@mtj.thefacebook.com> <16d9d5aa-a996-d41d-cbff-9a5937863893@linux.vnet.ibm.com> <20200619222356.GA13061@mtj.duckdns.org> <429696e9fa0957279a7065f7d8503cb965842f58.camel@themaw.net> <20200622174845.GB13061@mtj.duckdns.org> <20200622180306.GA1917323@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 22, 2020 at 02:27:38PM -0700, Rick Lindsley wrote: > > On Mon, Jun 22, 2020 at 01:48:45PM -0400, Tejun Heo wrote: > > > It should be obvious that representing each consecutive memory range with a > > separate directory entry is far from an optimal way of representing > > something like this. It's outright silly. > > On 6/22/20 11:03 AM, Greg Kroah-Hartman wrote: > > > I agree. And again, Ian, you are just "kicking the problem down the > > road" if we accept these patches. Please fix this up properly so that > > this interface is correctly fixed to not do looney things like this. > > Given that we cannot change the underlying machine representation of > this hardware, what do you (all, not just you Greg) consider to be > "properly"? Change the userspace representation of the hardware then. Why does userspace care about so many individual blocks, what happens if you provide them a larger granularity? I can't imagine userspace really wants to see 20k devices and manage them individually, where is the code that does that? What happens if you delay adding the devices until after booting? Userspace should be event driven and only handle things after it sees the devices being present, so try delaying and seeing what happens to prevent this from keeping boot from progressing. thanks, greg k-h