[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.44L0.1310151615160.1377-100000@iolanthe.rowland.org>
Date: Tue, 15 Oct 2013 16:22:03 -0400 (EDT)
From: Alan Stern <stern@...land.harvard.edu>
To: Vishal Annapurve <vannapurve@...dia.com>
cc: Ming Lei <tom.leiming@...il.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
linux-usb <linux-usb@...r.kernel.org>
Subject: RE: [PATCH] usb-storage: scsiglue: Changing the command result
On Tue, 15 Oct 2013, Vishal Annapurve wrote:
> Hi Alan,
>
> USB storage maybe just has to say that the abort occurred. By setting the
> US_FLIDX_TIMED_OUT bit USB storage is getting signaled that the reason was
> time out and the command is being aborted.
No. By setting the US_FLIDX_TIMED_OUT bit, usb-storage indicates that
the command was aborted. This doesn't indicate anything about the
reason for the abort. (Maybe this bit's name wasn't chosen very well.)
> Now, it's arguable whether to change the implication of US_FLIDX_TIMED_OUT
> bit for scsi - USB storage bridge or for entire usb storage
I don't understand this. What's the difference between "scsi - USB
storage bridge" and "entire usb storage"? Aren't they the same thing?
> Or maybe scsi has
> decided to abort so it should override the result.
Of course the SCSI midlayer has decided to abort. That's the only way
this bit can get set. But usb-storage doesn't know why SCSI decided to
abort.
Alan Stern
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists