Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750934AbWBOWwE (ORCPT ); Wed, 15 Feb 2006 17:52:04 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751172AbWBOWwD (ORCPT ); Wed, 15 Feb 2006 17:52:03 -0500 Received: from iolanthe.rowland.org ([192.131.102.54]:60626 "HELO iolanthe.rowland.org") by vger.kernel.org with SMTP id S1750934AbWBOWwB (ORCPT ); Wed, 15 Feb 2006 17:52:01 -0500 Date: Wed, 15 Feb 2006 17:51:59 -0500 (EST) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: Greg KH cc: Arjan van de Ven , James Bottomley , Kernel development list Subject: Re: [linux-usb-devel] Re: Linux 2.6.16-rc3 In-Reply-To: <20060215223712.GA28956@kroah.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 974 Lines: 24 On Wed, 15 Feb 2006, Greg KH wrote: > > > It would only go on the list if the "put" was the last one. Otherwise > > > it would not make any sense to put it on any list. > > > > There's no way to know whether or not any particular "put" is the last > > one. So you have to assume they all are. > > The underlying kobject can "know" that the put was the last one, and > handle it differently if needed. Yes, it would not use a kref anymore, > but that might be needed here. You would need a kref variant, something which would include room for the list header and a pointer to the release routine. Okay, that does involve less time overhead than what I proposed (although the same amount of space overhead). Alan Stern - 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/