From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263102AbUB0UU6 (ORCPT ); Fri, 27 Feb 2004 15:20:58 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263092AbUB0UU6 (ORCPT ); Fri, 27 Feb 2004 15:20:58 -0500 Received: from mail.kroah.org ([65.200.24.183]:61136 "EHLO perch.kroah.org") by vger.kernel.org with ESMTP id S263102AbUB0USW (ORCPT ); Fri, 27 Feb 2004 15:18:22 -0500 Date: Fri, 27 Feb 2004 12:17:44 -0800 From: Greg KH To: Alan Stern Cc: Kernel development list Subject: Re: Question about (or bug in?) the kobject implementation Message-ID: <20040227201744.GA11291@kroah.com> References: <20040227194855.GB10864@kroah.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 27, 2004 at 03:06:32PM -0500, Alan Stern wrote: > On Fri, 27 Feb 2004, Greg KH wrote: > > Seriously, once kobject_del() is called, you can't safely call > > kobject_get() anymore on that object. > > Are you worried about the possibility of the refcount dropping to 0 and > the cleanup starting but then kobject_get() increasing the refcount again? Exactly, that is where the problem could happen. thanks, greg k-h