Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp299834pxa; Thu, 27 Aug 2020 02:40:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPi88fK2NihITzEvpS4qG2ZmBZ1+V+y+s1mVB65v131SE6/ioiKlwIuDR9uUHrmU0QMbWx X-Received: by 2002:a17:906:f0c1:: with SMTP id dk1mr15749243ejb.44.1598521249676; Thu, 27 Aug 2020 02:40:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598521249; cv=none; d=google.com; s=arc-20160816; b=enaanre8kmFr7ApSk3RLWGHOB64iaUiaosikqD+OqJfCjplbwX+xkySEwHUCWxBb5h Y9AfChu6lnUBqUQQArn5gIYQhPzF/B9djVmHVeDsCsu8QWFQIHeZeTiZh4beRR21QuQH Zn5zD7DdIG2B2qNMMOlP3rVTcNVcULRPaxd/upni1CT6bqtjf2JbYxEwUozY6zeMnuuF FskMWG6ZB0L/FcrYTiYwk1CO/k3xrNWLaypZ0N/uAhMy5PRnFxLpnu3YFvE6dD23L3hL vYLEvfPHCy1NNfKycZF1A5J9IMN+3PVbIiaaD6z6cg6Ikqhqk3PPQLUXIho/FHSVyq5p BZPQ== 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; bh=xoCODeJU9+s7Cf/CtmFZCJAz62Y7PuQY+HVCrcl/xfA=; b=v42CH0EWahfXY+AkEyu92pZ/ybZdpVNzEw6Lku/+0zvgKNdSmiSk0LdpdkU/6LYFmR 5z+sHKqs1MS52wR4d+JNmnRW0TfVaY8rVOeGzK1nEXW/GxR59Cl/kvBkTA0r6yvBDOL6 ZaBD86PavOKvRQgJrsi0k2Zqs1p3v67k/xO6jcSmdpQuOosceKDiqRiD+Ro5ZLH+WuMk 3Hit/TgIl1YtH2707v3yg3PXBUam7zti0aRNcZSU4Qbz7GIRiKFYKZdq6cTzcs6o3cMI F9neuLLxAk0qFNyV6VjCvJPiEiOfowczE/NKA3tf+m6FOx8/4sIwyMO8AQE1nzJM/ZUd s1NA== ARC-Authentication-Results: i=1; mx.google.com; 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 i16si1160605edb.5.2020.08.27.02.40.26; Thu, 27 Aug 2020 02:40:49 -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; 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 S1728265AbgH0Jjx (ORCPT + 99 others); Thu, 27 Aug 2020 05:39:53 -0400 Received: from verein.lst.de ([213.95.11.211]:37505 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726157AbgH0Jjw (ORCPT ); Thu, 27 Aug 2020 05:39:52 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 386C568B02; Thu, 27 Aug 2020 11:39:48 +0200 (CEST) Date: Thu, 27 Aug 2020 11:39:48 +0200 From: Christoph Hellwig To: Greg Kroah-Hartman Cc: Christoph Hellwig , Jens Axboe , "Rafael J. Wysocki" , Denis Efremov , "David S. Miller" , Song Liu , Al Viro , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org, linux-raid@vger.kernel.org, linux-scsi@vger.kernel.org, linux-m68k@lists.linux-m68k.org Subject: Re: [PATCH 01/19] char_dev: replace cdev_map with an xarray Message-ID: <20200827093947.GA15976@lst.de> References: <20200826062446.31860-1-hch@lst.de> <20200826062446.31860-2-hch@lst.de> <20200826081905.GB1796103@kroah.com> <20200827085353.GA12111@lst.de> <20200827091859.GA393660@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200827091859.GA393660@kroah.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 27, 2020 at 11:18:59AM +0200, Greg Kroah-Hartman wrote: > > I looked at it, but it does get registered and shows up in sysfs. > > It does? Where does that happen? I see a bunch of kobject_init() > calls, but nothing that registers it in sysfs that I can see. Hmm, true. > > Note, this is not the kobject that shows up in /sys/dev/char/ as a > symlink, that comes from the driver core logic and is independent of the > cdev code. > > The kobject does handle the structure lifetime rules, but that should be > able to be replaced with a simple kref instead. Yeah. I'll let you handle this stuff, as you obviously know the area better than I do.