From: James Bottomley <James.Bottomley@HansenPartnership.com>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Greg KH <greg@kroah.com>, USB list <linux-usb@vger.kernel.org>,
SCSI development list <linux-scsi@vger.kernel.org>
Subject: Re: [PATCH 7/8] SCSI: add a field to scsi_device to count open file references
Date: Wed, 05 Mar 2008 14:55:14 -0600 [thread overview]
Message-ID: <1204750514.3047.63.camel@localhost.localdomain> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0803041237440.4039-100000@iolanthe.rowland.org>
On Tue, 2008-03-04 at 12:43 -0500, Alan Stern wrote:
> On Tue, 4 Mar 2008, James Bottomley wrote:
>
> > If you want to see for yourself, it's fs/block_dev.c:do_open().
>
> Thanks for the pointer. I see the subroutine is not exactly loaded
> with comments...
>
> > > If you can suggest an alternative approach, I'll be glad to change the
> > > patch.
> >
> > Well, since this is the 7th patch of an eight patch series, I don't
> > really have the context for that. However, I assume it's all on the
> > linux-usb list? If so, I'll add it to my list of things to look at.
>
> The patches before it probably won't give you any additional useful
> context. The following patch might; that's the one affecting
> usb-storage.
OK, I looked through the patch series. It really looks like the
in-kernel thing is the wrong approach.
Why not export this want_persist flag via sysfs and then have hal and
udev update it when they see a filesystem on an underlying usb device
mounted (and zero it out on unmount)? That way you always have the
exactly correct state and there's no need to go fishing for information
in layers that are difficult to get to.
James
next prev parent reply other threads:[~2008-03-05 20:55 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-03 20:16 [PATCH 7/8] SCSI: add a field to scsi_device to count open file references Alan Stern
[not found] ` <Pine.LNX.4.44L0.0803031508490.7094-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org>
2008-03-03 22:01 ` James Bottomley
2008-03-03 23:04 ` Alan Stern
[not found] ` <Pine.LNX.4.44L0.0803031758310.8280-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org>
2008-03-03 23:13 ` James Bottomley
[not found] ` <1204585995.3043.85.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2008-03-04 16:16 ` Alan Stern
[not found] ` <Pine.LNX.4.44L0.0803041101200.4039-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org>
2008-03-04 16:50 ` Mike Anderson
2008-03-04 16:52 ` James Bottomley
[not found] ` <1204649571.3091.36.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2008-03-04 17:43 ` Alan Stern
2008-03-05 20:55 ` James Bottomley [this message]
2008-03-05 21:24 ` Alan Stern
[not found] ` <Pine.LNX.4.44L0.0803051608140.4161-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org>
2008-03-05 21:30 ` James Bottomley
2008-03-05 21:52 ` Alan Stern
2008-03-04 0:37 ` Stefan Richter
2008-03-04 17:00 ` Alan Stern
[not found] ` <Pine.LNX.4.44L0.0803041151510.4039-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org>
2008-03-04 17:26 ` Stefan Richter
2008-03-04 17:56 ` Stefan Richter
2008-03-04 20:04 ` Alan Stern
2008-03-05 18:04 ` Alan Stern
2008-03-05 19:28 ` Stefan Richter
2008-03-05 20:34 ` Alan Stern
2008-03-05 21:14 ` Stefan Richter
[not found] ` <47CF0D2E.7000607-MtYdepGKPcBMYopoZt5u/LNAH6kLmebB@public.gmane.org>
2008-03-05 21:27 ` Alan Stern
2008-03-05 21:47 ` Stefan Richter
2008-03-05 20:13 ` patch scsi-add-a-field-to-scsi_device-to-count-open-file-references.patch added to gregkh-2.6 tree gregkh-l3A5Bk7waGM
[not found] ` <1204748015695-4DuetyUvsWfYtjvyW6yDsg@public.gmane.org>
2008-03-05 20:36 ` James Bottomley
[not found] ` <1204749410.3047.57.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2008-03-05 20:41 ` Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1204750514.3047.63.camel@localhost.localdomain \
--to=james.bottomley@hansenpartnership.com \
--cc=greg@kroah.com \
--cc=linux-scsi@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=stern@rowland.harvard.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.