public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: James Bottomley <James.Bottomley@SteelEye.com>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Mike Anderson <andmike@us.ibm.com>, Greg KH <greg@kroah.com>,
	linux-usb-devel@lists.sourceforge.net,
	SCSI Mailing List <linux-scsi@vger.kernel.org>,
	mdharm-usb@one-eyed-alien.net
Subject: Re: [linux-usb-devel] oops on usb storage device disconnect with 2.6.14-rc1
Date: Sun, 18 Sep 2005 15:00:23 -0500	[thread overview]
Message-ID: <1127073623.4847.31.camel@mulgrave> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0509172225040.6834-100000@netrider.rowland.org>

On Sat, 2005-09-17 at 22:33 -0400, Alan Stern wrote:
> > OK, I looked at making this work while reaping the target correctly, but
> > I couldn't (basic problem is that the target list keeps the target until
> > it has no more devices, a condition that could be made untrue by
> > something as simple as an open of the sysfs file).
> 
> Sorry, I'm a bit slow tonight.  I thought you _wanted_ the target to hang
> around until it had no more devices.  (Wasn't that the whole point of
> scsi_target_reap?)  What's wrong with keeping the target until the sysfs
> file is closed?

nothing ... that happens regardless (with either patch).

> > So, rather than try that, I thought a better approach might be to make
> > the host state model work for us.  i.e. if we know the host is being
> > removed, there's no point allowing target or device removal because at
> > some point the host removal will do it for us.  This enforcement would
> > ensure we're the only legitimate removers of the target and device.
> 
> How does this make things any better?  You still face the problem that an 
> open sysfs file will delay device removal and target reaping, if all the 
> devices on that target are hot-unplugged and the host remains alive and 
> active.

Actually, since we don't need the target reaping in the host removal (it
would be reaped when the device is removed), I agree ... I'll put your
original patch in.

Thanks,

James


  reply	other threads:[~2005-09-18 20:00 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-15 19:03 oops on usb storage device disconnect with 2.6.14-rc1 Greg KH
2005-09-15 19:23 ` [linux-usb-devel] " Alan Stern
2005-09-15 19:29   ` Greg KH
2005-09-15 19:57     ` James Bottomley
2005-09-15 21:08       ` [linux-usb-devel] " James Bottomley
2005-09-15 22:19         ` Mike Anderson
2005-09-15 22:38           ` [linux-usb-devel] " James Bottomley
2005-09-15 23:55             ` Mike Anderson
2005-09-16  1:46               ` James Bottomley
2005-09-16  1:52             ` [linux-usb-devel] " Alan Stern
2005-09-16  2:27               ` James Bottomley
2005-09-18  0:36               ` James Bottomley
2005-09-18  2:33                 ` [linux-usb-devel] " Alan Stern
2005-09-18 20:00                   ` James Bottomley [this message]
2005-09-18  0:35             ` James Bottomley
2005-09-18 20:05               ` James Bottomley
2005-09-18 20:37                 ` Alan Stern
2005-09-18 22:01                 ` [linux-usb-devel] " Greg KH
2005-09-18 22:34                   ` Greg KH
2005-09-19 15:19                   ` [linux-usb-devel] " James Bottomley
2005-09-20 14:48                     ` Greg KH
2005-09-15 23:46         ` [linux-usb-devel] " Greg KH
2005-09-16  1:57           ` Alan Stern

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=1127073623.4847.31.camel@mulgrave \
    --to=james.bottomley@steeleye.com \
    --cc=andmike@us.ibm.com \
    --cc=greg@kroah.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=linux-usb-devel@lists.sourceforge.net \
    --cc=mdharm-usb@one-eyed-alien.net \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox