LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Alan Stern <stern@rowland.harvard.edu>
To: Brian Kysela <brian.kysela@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
<linux-kernel@vger.kernel.org>,
Jens Axboe <jens.axboe@oracle.com>, <linux-usb@vger.kernel.org>,
<linux-scsi@vger.kernel.org>
Subject: Re: [BUG] usb-storage: Error in queuecommand: us->srb = ffff88006a338480
Date: Mon, 10 Nov 2008 15:18:16 -0500 (EST) [thread overview]
Message-ID: <Pine.LNX.4.44L0.0811101509040.2467-100000@iolanthe.rowland.org> (raw)
In-Reply-To: <20081110192403.GA605@ezra.hsd1.tn.comcast.net>
On Mon, 10 Nov 2008, Brian Kysela wrote:
> I tested with 2.6.27.5 and found that, although the process would hang as often
> as usual, it always recovered instead of needing to reboot. No kernel bug or
> system freeze, no climbing load avg, etc. Here is the usbmon output on a
> failed copy:
>
> http://www.kysela.org/pub/4.mon.out
>
> The syslog:
>
> [ 1003.736201] sd 6:0:0:0: [sdb] Assuming drive cache: write through
> [ 1003.738949] sd 6:0:0:0: [sdb] Assuming drive cache: write through
> [ 1003.741886] sdb1
> [ 1112.311917] end_request: I/O error, dev sdb, sector 667600
> [ 1112.311956] sd 6:0:0:0: rejecting I/O to offline device
> [ 1112.312038] sd 6:0:0:0: rejecting I/O to offline device
> [ 1112.312074] end_request: I/O error, dev sdb, sector 667840
> [ 1112.312121] sd 6:0:0:0: rejecting I/O to offline device
> [ 1112.312131] Buffer I/O error on device sdb1, logical block 512
> [ 1112.312137] lost page write due to I/O error on sdb1
> [ 1112.312159] sd 6:0:0:0: rejecting I/O to offline device
> [ 1112.312168] Buffer I/O error on device sdb1, logical block 576
> [ 1112.312172] lost page write due to I/O error on sdb1
> [ 1112.312181] Buffer I/O error on device sdb1, logical block 577
> [ 1112.312185] lost page write due to I/O error on sdb1
> [ 1112.312193] Buffer I/O error on device sdb1, logical block 578
> [ 1112.312198] lost page write due to I/O error on sdb1
> [ 1112.312211] sd 6:0:0:0: rejecting I/O to offline device
> [ 1112.312234] sd 6:0:0:0: rejecting I/O to offline device
> [ 1112.312247] sd 6:0:0:0: rejecting I/O to offline device
> [ 1112.379235] sd 6:0:0:0: rejecting I/O to offline device
> [ 1112.379640] FAT: unable to read inode block for updating (i_pos 9253)
This is essentially the same failure mechanism as before, but without
the timeout-related kernel bug.
There is a communications error during one of the reads. It takes the
same form in both logs: A transfer receives only 4051 bytes when it
should get 4096. Don't ask me why that happens; it's some sort of
hardware or firmware failure either in the drive or in your USB host
controller.
The kernel tries to recover, but it looks as though the drive is stuck
trying to send the remaining bytes. Resets don't help, so the drive
is taken off-line.
You _might_ be able to prevent these problems by reducing the drive's
max_sectors value, say to 128. See
http://www.linux-usb.org/FAQ.html#i5
No guarantees, though.
Alan Stern
next prev parent reply other threads:[~2008-11-10 20:18 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-30 21:35 Brian Kysela
2008-11-06 1:49 ` Andrew Morton
2008-11-06 15:36 ` Alan Stern
2008-11-06 17:57 ` Andrew Morton
2008-11-06 19:36 ` Alan Stern
2008-11-07 0:54 ` Brian Kysela
2008-11-07 15:00 ` Alan Stern
2008-11-10 19:24 ` Brian Kysela
2008-11-10 20:18 ` Alan Stern [this message]
2008-11-06 20:12 ` Brian Kysela
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=Pine.LNX.4.44L0.0811101509040.2467-100000@iolanthe.rowland.org \
--to=stern@rowland.harvard.edu \
--cc=akpm@linux-foundation.org \
--cc=brian.kysela@gmail.com \
--cc=jens.axboe@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--subject='Re: [BUG] usb-storage: Error in queuecommand: us->srb = ffff88006a338480' \
/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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).