From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932267AbdBJTqV (ORCPT ); Fri, 10 Feb 2017 14:46:21 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:34624 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932069AbdBJTqU (ORCPT ); Fri, 10 Feb 2017 14:46:20 -0500 Date: Fri, 10 Feb 2017 20:46:17 +0100 From: Greg Kroah-Hartman To: Logan Gunthorpe Cc: Dan Williams , Johannes Thumshirn , "Paul E. McKenney" , Sajjan Vikas C , Arnd Bergmann , Jan Kara , linux-kernel@vger.kernel.org, linux-nvdimm@ml01.01.org Subject: Re: [PATCH] device-dax: don't set kobj parent during cdev init Message-ID: <20170210194617.GA1803@kroah.com> References: <1486754370-3057-1-git-send-email-logang@deltatee.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1486754370-3057-1-git-send-email-logang@deltatee.com> User-Agent: Mutt/1.7.2 (2016-11-26) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 10, 2017 at 12:19:30PM -0700, Logan Gunthorpe wrote: > I copied this code and per feedback from Greg Kroah-Hartman [1] the > cdev's kobject's parent should not be set to the related device. > This should have minor consequences but isn't doing what anyone > expects it to. > > This patch then fixes device-dax so it doesn't make the same mistake. > > [1] https://lkml.org/lkml/2017/2/10/370 > > Signed-off-by: Logan Gunthorpe Acked-by: Greg Kroah-Hartman