From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751136AbdBLFmp (ORCPT ); Sun, 12 Feb 2017 00:42:45 -0500 Received: from ale.deltatee.com ([207.54.116.67]:43868 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750717AbdBLFmn (ORCPT ); Sun, 12 Feb 2017 00:42:43 -0500 To: Dan Williams References: <1486754370-3057-1-git-send-email-logang@deltatee.com> <20170210201737.GA15397@kroah.com> <20170211071619.GA1345@kroah.com> <2358f952-5376-dd34-0694-6a27bc54f072@deltatee.com> Cc: Greg Kroah-Hartman , Johannes Thumshirn , "Paul E. McKenney" , Sajjan Vikas C , Arnd Bergmann , Jan Kara , "linux-kernel@vger.kernel.org" , "linux-nvdimm@lists.01.org" From: Logan Gunthorpe Message-ID: Date: Sat, 11 Feb 2017 22:42:34 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 50.66.97.235 X-SA-Exim-Rcpt-To: linux-nvdimm@lists.01.org, linux-kernel@vger.kernel.org, jack@suse.cz, arnd@arndb.de, vikas.cha.sajjan@hpe.com, paulmck@linux.vnet.ibm.com, jthumshirn@suse.de, gregkh@linuxfoundation.org, dan.j.williams@intel.com X-SA-Exim-Mail-From: logang@deltatee.com Subject: Re: [PATCH] device-dax: don't set kobj parent during cdev init X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/02/17 11:58 AM, Dan Williams wrote: > Also when using an embedded cdev how would you recommend avoiding this problem? I don't know. Hopefully, Greg has a good idea. But it sounds like a general problem that a lot of cdev's actually suffer from without realizing. Perhaps we need a more general solution. Some way for the cdev to reference its containing structure in a way that it's designed for such that anyone writing a driver will do the right thing without needing to dive into the kobjects. Logan