From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263723AbTLJQUe (ORCPT ); Wed, 10 Dec 2003 11:20:34 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263728AbTLJQUe (ORCPT ); Wed, 10 Dec 2003 11:20:34 -0500 Received: from mail1.kontent.de ([81.88.34.36]:8686 "EHLO Mail1.KONTENT.De") by vger.kernel.org with ESMTP id S263723AbTLJQUd (ORCPT ); Wed, 10 Dec 2003 11:20:33 -0500 From: Oliver Neukum To: Duncan Sands , Alan Stern Subject: Re: [linux-usb-devel] Re: [OOPS, usbcore, releaseintf] 2.6.0-test10-mm1 Date: Wed, 10 Dec 2003 17:20:22 +0100 User-Agent: KMail/1.5.1 Cc: David Brownell , Vince , "Randy.Dunlap" , , , , USB development list References: <200312101422.40088.baldrick@free.fr> In-Reply-To: <200312101422.40088.baldrick@free.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200312101720.22731.oliver@neukum.org> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Am Mittwoch, 10. Dezember 2003 14:22 schrieb Duncan Sands: > > That leads to the question of how to assure that the device doesn't go > > away before usb_set_configuration is called. Perhaps > > usb_set_configuration and usb_unbind_interface should be changed to > > require the caller to hold the serialize lock. > > How about > > __usb_set_configuration - lockless version > usb_set_configuration - locked version Partially done. That's what the _physical version of usb_reset_device() is about. Regards Oliver