All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hannes Reinecke <hare@suse.de>
To: Christoph Hellwig <hch@infradead.org>
Cc: linux-scsi@vger.kernel.org, James.Bottomley@steeleye.com,
	Andrew Morton <akpm@osdl.org>
Subject: Re: [Patch] Fix oops on rmmod usb-storage
Date: Wed, 29 Sep 2004 14:31:11 +0200	[thread overview]
Message-ID: <415AAB0F.2080802@suse.de> (raw)
In-Reply-To: <20040929130332.A11785@infradead.org>

Christoph Hellwig wrote:
> [please send scsi issues to linux-scsi, thanks]
> 
> 
>>It turned out that in drivers/scsi/hosts.c:scsi_remove_host()
>>first the host is removed with scsi_forget_host() and _then_ all 
>>outstanding I/O to this host is cancelled with scsi_host_cancel(). 
>>Sounds a bit fishy as scsi_host_cancel() tries to talk to a host which 
>>we just have deleted ...
>>(Incidentally, this is most likely the same bug as Bug #2752 and #3480 
>>from bugme.osdl.org :-).
>>(And also #133249 from bugzilla.redhat.com :-).
>>
>>The attached patch corrects this.
>>Please apply.
> 
> 
> I'ts not that easy.  If we cancel the host first we won't get our write
> caches flushed because the drivers don't accept the SYNCRHONIZE_CACHE.
> command in cancelled state.  Mike just changed the order to what it is
> now a short while ago.
> 
Yeah, Jens Axboe just pointed that out.

> So we'll have to find a way to send a SYNCHRNOZIE_CACHE command even
> in canncelled state.
> 
> In fact I can't see how these problems could happen, and that they only
> happen with usb-storage seems strange.
Well, the thing is: When usb-storage calls scsi_remove_host() the device 
is already gone; whether or not we can synchronize the cache is a moot 
point there.

And if I understood the comment to the Changeset properly, the patch was 
just to remove the 'Synchronizing SCSI cache' message.
I can live with that. Kernel Oops is much worse.

Cheers,

Hannes
-- 
Dr. Hannes Reinecke			hare@suse.de
SuSE Linux AG				S390 & zSeries
Maxfeldstraße 5				+49 911 74053 688
90409 Nürnberg				http://www.suse.de
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2004-09-29 12:31 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-29  7:43 [Patch] Fix oops on rmmod usb-storage Hannes Reinecke
2004-09-29 12:03 ` Christoph Hellwig
2004-09-29 12:31   ` Hannes Reinecke [this message]
2004-09-29 17:12     ` Mike Anderson
2004-09-29 17:19       ` James Bottomley
2004-09-29 17:22         ` Christoph Hellwig
2004-09-29 17:36           ` Mike Anderson
2004-09-29 17:38             ` Christoph Hellwig
2004-09-29 17:50               ` Alan Stern
2004-09-29 18:32                 ` Mike Anderson
2004-09-29 18:58                   ` Alan Stern
2004-09-30  8:09                     ` Hannes Reinecke
2004-09-30 18:14                       ` Alan Stern
2004-10-01  7:11                         ` Hannes Reinecke
2004-10-01 16:07                           ` Alan Stern
2004-09-29 17:52               ` Mike Anderson
2004-09-29 12:04 ` Alan Cox
2004-09-29 13:56 ` James Bottomley
2004-09-29 13:17   ` Alan Cox
2004-09-29 14:24     ` James Bottomley
2004-09-29 14:44       ` Hannes Reinecke
2004-09-29 15:15         ` James Bottomley
2004-09-29 15:15           ` James Bottomley
2004-09-29 15:28           ` Matthew Wilcox
2004-09-29 15:35             ` James Bottomley

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=415AAB0F.2080802@suse.de \
    --to=hare@suse.de \
    --cc=James.Bottomley@steeleye.com \
    --cc=akpm@osdl.org \
    --cc=hch@infradead.org \
    --cc=linux-scsi@vger.kernel.org \
    /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.