Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 5 Jun 2002 17:08:40 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 5 Jun 2002 17:08:39 -0400 Received: from air-2.osdl.org ([65.201.151.6]:49545 "EHLO geena.pdx.osdl.net") by vger.kernel.org with ESMTP id ; Wed, 5 Jun 2002 17:08:38 -0400 Date: Wed, 5 Jun 2002 14:04:36 -0700 (PDT) From: Patrick Mochel X-X-Sender: To: Brian Gerst cc: "linux-kernel@vger.kernel.org" Subject: Re: Problem with new driver model? In-Reply-To: <3CFE7BFC.8EE5605@didntduck.org> 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 > Shouldn't the calls to __remove_driver be done inside the device_lock? No. If the driver needs to lock, it is free to use it. But, what the driver needs to do is up to the driver, and we don't want to force it not to sleep. But, the driver needs to be removed from the bus's list inside the lock, so if a device the driver supports gets inserted, we won't try and bind the two...Patch coming shortly. -pat - 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/