Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755981AbaAFTX1 (ORCPT ); Mon, 6 Jan 2014 14:23:27 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:44997 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755070AbaAFTX0 (ORCPT ); Mon, 6 Jan 2014 14:23:26 -0500 Date: Mon, 6 Jan 2014 11:23:53 -0800 From: Greg Kroah-Hartman To: Mikulas Patocka Cc: Bart Van Assche , Jeff Mahoney , torvalds@linux-foundation.org, device-mapper development , paulmck@linux.vnet.ibm.com, tglx@linutronix.de, linux-kernel@vger.kernel.org, mingo@kernel.org Subject: Re: [dm-devel] [PATCH] kobject: provide kobject_put_wait to fix module unload race Message-ID: <20140106192353.GA32664@kroah.com> References: <52C98BCC.9040900@acm.org> <20140105182640.GA2522@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.22 (2013-10-16) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 06, 2014 at 01:55:11PM -0500, Mikulas Patocka wrote: > > > On Sun, 5 Jan 2014, Greg Kroah-Hartman wrote: > > > On Sun, Jan 05, 2014 at 05:43:56PM +0100, Bart Van Assche wrote: > > > On 01/04/14 19:06, Mikulas Patocka wrote: > > > > - if (t && !t->release) > > > > - pr_debug("kobject: '%s' (%p): does not have a release() " > > > > - "function, it is broken and must be fixed.\n", > > > > - kobject_name(kobj), kobj); > > > > - > > > > > > Has it been considered to issue a warning if no release function has > > > been defined and free_completion == NULL instead of removing the above > > > debug message entirely ? I think even with this patch applied it is > > > still wrong to invoke kobject_put() on an object without defining a > > > release function. > > > > This patch isn't going to be applied, and I've reverted the original > > commit, so there shouldn't be any issues anymore with this code. > > Why? This patch does the same thing as > eee031649707db3c9920d9498f8d03819b74fc23, but it's smaller. So why did you > accept eee031649707db3c9920d9498f8d03819b74fc23 and not this? I have now reverted that commit, it will not be in 3.14, so consider it rejected as well :) thanks, greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/