From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261368AbUAWRmP (ORCPT ); Fri, 23 Jan 2004 12:42:15 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S266592AbUAWRmP (ORCPT ); Fri, 23 Jan 2004 12:42:15 -0500 Received: from fw.osdl.org ([65.172.181.6]:20668 "EHLO mail.osdl.org") by vger.kernel.org with ESMTP id S261368AbUAWRmN (ORCPT ); Fri, 23 Jan 2004 12:42:13 -0500 Date: Fri, 23 Jan 2004 09:42:09 -0800 (PST) From: Linus Torvalds To: Alan Stern cc: Greg KH , Patrick Mochel , Kernel development list Subject: Re: PATCH: (as177) Add class_device_unregister_wait() and platform_device_unregister_wait() to the driver model core In-Reply-To: Message-ID: References: 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 On Fri, 23 Jan 2004, Alan Stern wrote: > > Since I haven't seen any progress towards implementing the > class_device_unregister_wait() and platform_device_unregister_wait() > functions, here is my attempt. So why would this not deadlock? The reason we don't wait on things like this is that it's basically impossible not to deadlock. There are damn good reasons why the kernel uses reference counting everywhere. Any other approach is broken. Linus