Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 8 Oct 2002 18:28:31 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 8 Oct 2002 18:27:49 -0400 Received: from 12-231-242-11.client.attbi.com ([12.231.242.11]:34825 "HELO kroah.com") by vger.kernel.org with SMTP id ; Tue, 8 Oct 2002 18:27:22 -0400 Date: Tue, 8 Oct 2002 15:29:18 -0700 From: Greg KH To: Alexander Viro Cc: Linus Torvalds , Patrick Mochel , Alan Cox , andre@linux-ide.org, linux-kernel@vger.kernel.org Subject: Re: [RFC] embedded struct device Re: [patch] IDE driver model update Message-ID: <20021008222917.GA10837@kroah.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 756 Lines: 21 On Tue, Oct 08, 2002 at 05:42:25PM -0400, Alexander Viro wrote: > > _IF_ the last two steps were done by ->release(), your arguments would > work. Actually they are done by driver right after the put_device() call. Yes, and that's wrong :( > If you are willing to change that (== move all destruction into ->release()) - > yeah, then embedded struct device will work. It's a hell of a work though. It's not that much work, and I'll do it for USB, and for PCI, unless Pat beats me to it. 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/