Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp11173541ybi; Thu, 25 Jul 2019 11:14:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqypT627wcL58NWhi6jClhW+85H2HHSk4MiKwOOmrREPDtHRjiV0aWrfMkDjnJpQWhG3YPEy X-Received: by 2002:a65:4103:: with SMTP id w3mr71687364pgp.1.1564078496039; Thu, 25 Jul 2019 11:14:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564078496; cv=none; d=google.com; s=arc-20160816; b=RZGeBEMDdwYMF9boLDj/0HiqQEanR4eyTy4gHh9dUgJ/C+EYnH2B0SW3NIYBn0D2fh Dlq6EBGRDIdL+wy1TqwLbAiRUKBp10EnAuQ0OZPAx0JqYz1HukidAQsFuh6j34y1WfGP 8cWxymC3XASzEnfOiDWufmkk0Ckvg3mKBGtj01W6n1fzyErywJgQTEr1S/zbFYJFIoyk QkvLKn75PAxDVFDpwSwqtZUu89z/4MHsmyMVkEtnmg17VIYCgCkLOmnIV2jigVmrC4Bi 9Qs9eIXeUSz4oAn3ngWCPgd4vYSkD3+E/kLFvYR+fSY43uIkvIu0JvmCuwGFG8SymoI1 DBuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=JGFd5gD+D54ekG/+FjE/z2wJyNJ4rxvwosJUX9O/LQA=; b=KpWEXU1oppqER7PyrYZilNuu2wLNBv+rg6PI89IbwMADPUC4cyhA+sfrYZea0TLEuq YShw+rfleVnujxHKDYPL80vOq8PmjmYZovomUEj8S3h9fVSMU5Rn4hPYOVLSEO/FjXcW sJTTsxYiattJDWCScEDAZbIwZqwiZ+FJSfF67g3zcoG7p3rEgAxRiKR73w2UQkjaLKCN zg5NdHvagyanvfirphKkLuUIfNxyWjPdSiWfDf9F0iyqCdBFbaDIj3ALskLWtZ4qV2pg FOgQL5/n3dHUIfi+wtqkn6lH9sGN8nf9LkUMNJDIlJjDfqxo7GRAaPC7NVaU0zdCfCK2 HsUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=cf0Nrbzx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s23si17126364pgm.345.2019.07.25.11.14.41; Thu, 25 Jul 2019 11:14:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=cf0Nrbzx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729786AbfGYRkg (ORCPT + 99 others); Thu, 25 Jul 2019 13:40:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:43362 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725774AbfGYRkg (ORCPT ); Thu, 25 Jul 2019 13:40:36 -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 79AF422BE8; Thu, 25 Jul 2019 17:40:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564076435; bh=v5yXlm0ySbjH9KYVN6Nqcko2ymh4rZfsF2TdFPmyY7A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cf0NrbzxwN1M9j7L43mP+u3u8SJKAyjDsM0cOYEdgJvIpWskctistAzocLZjDHkEN ba/45n2CQ0Z0Vu5YE8bZ1WQSq7k3lFsVvFslO0EgJItOxPoN3cpbF0XLhnLZMiHACv SqahQYWRTwQbD+2RwOPjk7Yu0qf8B7tBjUz8+4cA= Date: Thu, 25 Jul 2019 19:40:32 +0200 From: Greg Kroah-Hartman To: Logan Gunthorpe Cc: linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, Christoph Hellwig , Sagi Grimberg , Keith Busch , Jens Axboe , Chaitanya Kulkarni , Max Gurtovoy , Stephen Bates , Alexander Viro Subject: Re: [PATCH v6 02/16] chardev: introduce cdev_get_by_path() Message-ID: <20190725174032.GA27818@kroah.com> References: <20190725172335.6825-1-logang@deltatee.com> <20190725172335.6825-3-logang@deltatee.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190725172335.6825-3-logang@deltatee.com> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 25, 2019 at 11:23:21AM -0600, Logan Gunthorpe wrote: > cdev_get_by_path() attempts to retrieve a struct cdev from > a path name. It is analagous to blkdev_get_by_path(). > > This will be necessary to create a nvme_ctrl_get_by_path()to > support NVMe-OF passthru. Ick, why? Why would a cdev have a "pathname"? What is "NVMe-OF passthru"? Why does a char device node have anything to do with NVMe? We have way too many ways to abuse cdevs today, my long-term-wish has always been to clean this interface up to make it more sane and unified, and get rid of the "outliers" (all created at the time for a good reason, that's not the problem.) But to add "just one more" seems really odd to me. thanks, greg k-h