From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030271AbWFUUjG (ORCPT ); Wed, 21 Jun 2006 16:39:06 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030274AbWFUUjG (ORCPT ); Wed, 21 Jun 2006 16:39:06 -0400 Received: from mail-in-03.arcor-online.net ([151.189.21.43]:24965 "EHLO mail-in-03.arcor-online.net") by vger.kernel.org with ESMTP id S1030271AbWFUUjE (ORCPT ); Wed, 21 Jun 2006 16:39:04 -0400 Date: Wed, 21 Jun 2006 22:38:34 +0200 (CEST) From: Bodo Eggert <7eggert@gmx.de> To: andi@lisas.de cc: Alan Stern , Bodo Eggert <7eggert@gmx.de>, Andrew Morton , linux-usb-devel@lists.sourceforge.net, gregkh@suse.de, linux-kernel@vger.kernel.org, hal@lists.freedesktop.org, Alan Cox Subject: Re: [linux-usb-devel] USB/hal: USB open() broken? (USB CD burner underruns, USB HDD hard resets) In-Reply-To: <20060621191640.GA8596@rhlx01.fht-esslingen.de> Message-ID: References: <20060621163410.GA22736@rhlx01.fht-esslingen.de> <20060621191640.GA8596@rhlx01.fht-esslingen.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-be10.7eggert.dyndns.org-MailScanner-Information: See www.mailscanner.info for information X-be10.7eggert.dyndns.org-MailScanner: Found to be clean X-be10.7eggert.dyndns.org-MailScanner-From: 7eggert@web.de Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 21 Jun 2006, Andreas Mohr wrote: [...] > And the obvious question would be whether the sdkp->openers++ thingy > could somehow be extended to enclose all hardware device users so that > e.g. sr.c wouldn't send ALLOW_MEDIUM_REMOVAL on a device already locked > by e.g. the sd.c driver. > Difficult question, though, since the group of drivers possible to use > with a certain device is not a static set: > it could be via > - sr.c > - sd.c > - IDE (in the case of ATA devices mapped via ide-scsi) > Is it possible to have such a per-*hardware*-device instance in the kernel > to keep track of various things such as number of device openers? > I'll do some investigation myself, too... The sg part should be implemented by each SCSI device, reducing the current sg device to a mostly empty shell. Then you can prevent that empty shell from binding to devices having more specific drivers. -- Top 100 things you don't want the sysadmin to say: 30. And what does it mean 'rm: .o: No such file or directory'?