<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/scsi/constants.c, branch linux-2.6.33.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.33.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.33.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2009-12-04T18:00:15Z</updated>
<entry>
<title>[SCSI] scsi: Add missing command definitions</title>
<updated>2009-12-04T18:00:15Z</updated>
<author>
<name>Martin K. Petersen</name>
</author>
<published>2009-10-15T18:43:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f57e4502cea471c69782d4790c71d8414ab49a9d'/>
<id>urn:sha1:f57e4502cea471c69782d4790c71d8414ab49a9d</id>
<content type='text'>
Add definitions for UNMAP, WRITE SAME{16,32} and GET LBA STATUS
commands.

Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
Signed-off-by: James Bottomley &lt;James.Bottomley@suse.de&gt;
</content>
</entry>
<entry>
<title>[SCSI] update scsi/constants.c</title>
<updated>2009-08-22T22:51:50Z</updated>
<author>
<name>Douglas Gilbert</name>
</author>
<published>2009-06-25T19:43:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b4567ca6304a9b31cb2eae62f812e9eb9badcb60'/>
<id>urn:sha1:b4567ca6304a9b31cb2eae62f812e9eb9badcb60</id>
<content type='text'>
It has been 3 years since this file was sync-ed with
www.t10.org . Information taken from the last bunch
of drafts released in May 2009. More asc/ascq codes
are coming for thin provisioning; when approved and
allocated another patch could add them prior to this
patch going live.

Changelog:
   - add some new command names and rename two commands
   - sync asc/ascq table with www.t10.org/lists/asc-num.txt
   - correct bug in scsi_extd_sense_format() [second
     for loop]

Signed-off-by: Douglas Gilbert &lt;dgilbert@interlog.com&gt;
Signed-off-by: James Bottomley &lt;James.Bottomley@HansenPartnership.com&gt;
Signed-off-by: James Bottomley &lt;James.Bottomley@suse.de&gt;
</content>
</entry>
<entry>
<title>[SCSI] Remove SUGGEST flags</title>
<updated>2009-03-12T17:58:02Z</updated>
<author>
<name>Martin K. Petersen</name>
</author>
<published>2009-01-04T08:14:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1c9fbafc8c629c89183d6dccec67a8415513b0d1'/>
<id>urn:sha1:1c9fbafc8c629c89183d6dccec67a8415513b0d1</id>
<content type='text'>
The SUGGEST_* flags in the SCSI command result have been out of fashion
for a while and we don't actually use them in the error handling.
Remove the remaining occurrences.

Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
Signed-off-by: James Bottomley &lt;James.Bottomley@HansenPartnership.com&gt;
</content>
</entry>
<entry>
<title>[SCSI] scsi: add transport host byte errors (v3)</title>
<updated>2008-10-13T13:28:48Z</updated>
<author>
<name>Mike Christie</name>
</author>
<published>2008-08-19T23:45:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a4dfaa6f2e55b736adf2719133996f7e7dc309bc'/>
<id>urn:sha1:a4dfaa6f2e55b736adf2719133996f7e7dc309bc</id>
<content type='text'>
Currently, if there is a transport problem the iscsi drivers will return
outstanding commands (commands being exeucted by the driver/fw/hw) with
DID_BUS_BUSY and block the session so no new commands can be queued.
Commands that are caught between the failure handling and blocking are
failed with DID_IMM_RETRY or one of the scsi ml queuecommand return values.
When the recovery_timeout fires, the iscsi drivers then fail IO with
DID_NO_CONNECT.

For fcp, some drivers will fail some outstanding IO (disk but possibly not
tape) with DID_BUS_BUSY or DID_ERROR or some other value that causes a retry
and hits the scsi_error.c failfast check, block the rport, and commands
caught in the race are failed with DID_IMM_RETRY. Other drivers, may
hold onto all IO and wait for the terminate_rport_io or dev_loss_tmo_callbk
to be called.

The following patches attempt to unify what upper layers will see drivers
like multipath can make a good guess. This relies on drivers being
hooked into their transport class.

This first patch just defines two new host byte errors so drivers can
return the same value for when a rport/session is blocked and for
when the fast_io_fail_tmo fires.

The idea is that if the LLD/class detects a problem and is going to block
a rport/session, then if the LLD wants or must return the command to scsi-ml,
then it can return it with DID_TRANSPORT_DISRUPTED. This will requeue
the IO into the same scsi queue it came from, until the fast io fail timer
fires and the class decides what to do.

When using multipath and the fast_io_fail_tmo fires then the class
can fail commands with DID_TRANSPORT_FAILFAST or drivers can use
DID_TRANSPORT_FAILFAST in their terminate_rport_io callbacks or
the equivlent in iscsi if we ever implement more advanced recovery methods.
A LLD, like lpfc, could continue to return DID_ERROR and then it will hit
the normal failfast path, so drivers do not have fully be ported to
work better. The point of the patches is that upper layers will
not see a failure that could be recovered from while the rport/session is
blocked until fast_io_fail_tmo/recovery_timeout fires.

V3
Remove some comments.
V2
Fixed patch/diff errors and renamed DID_TRANSPORT_BLOCKED to
DID_TRANSPORT_DISRUPTED.
V1
initial patch.

Signed-off-by: Mike Christie &lt;michaelc@cs.wisc.edu&gt;
Signed-off-by: James Bottomley &lt;James.Bottomley@HansenPartnership.com&gt;
</content>
</entry>
<entry>
<title>[SCSI] add support for variable length extended commands</title>
<updated>2008-05-02T16:33:25Z</updated>
<author>
<name>Boaz Harrosh</name>
</author>
<published>2008-04-30T08:27:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=db4742dd8f0aa9125b74f9b2516336a75f3d9106'/>
<id>urn:sha1:db4742dd8f0aa9125b74f9b2516336a75f3d9106</id>
<content type='text'>
Add support for variable-length, extended, and vendor specific
CDBs to scsi-ml. It is now possible for initiators and ULD's
to issue these types of commands. LLDs need not change much.
All they need is to raise the .max_cmd_len to the longest command
they support (see iscsi patch).

- clean-up some code paths that did not expect commands to be
  larger than 16, and change cmd_len members' type to short as
  char is not enough.

Signed-off-by: Boaz Harrosh &lt;bharrosh@panasas.com&gt;
Signed-off-by: Benny Halevy &lt;bhalevy@panasas.com&gt;
Signed-off-by: James Bottomley &lt;James.Bottomley@HansenPartnership.com&gt;
</content>
</entry>
<entry>
<title>[SCSI] Add Documentation and integrate into docbook build</title>
<updated>2008-01-12T00:22:40Z</updated>
<author>
<name>Rob Landley</name>
</author>
<published>2007-11-03T18:30:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=eb44820c28bc9a042e1157b41c677018a8fdfc74'/>
<id>urn:sha1:eb44820c28bc9a042e1157b41c677018a8fdfc74</id>
<content type='text'>
Add Documentation/DocBook/scsi_midlayer.tmpl, add to Makefile, and update
lots of kerneldoc comments in drivers/scsi/*.

Updated with comments from Stefan Richter, Stephen M. Cameron,
 James Bottomley and Randy Dunlap.

Signed-off-by: Rob Landley &lt;rob@landley.net&gt;
Signed-off-by: James Bottomley &lt;James.Bottomley@HansenPartnership.com&gt;
</content>
</entry>
<entry>
<title>[SCSI] add DID_REQUEUE string to scsi_show_result host table</title>
<updated>2008-01-12T00:22:34Z</updated>
<author>
<name>Mike Christie</name>
</author>
<published>2007-11-01T01:59:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=75a9a4e1476db705dbbcbd2e3a16b265ef8ec3e9'/>
<id>urn:sha1:75a9a4e1476db705dbbcbd2e3a16b265ef8ec3e9</id>
<content type='text'>
I was working on patches which add new transport error values, when I
noticed that DID_REQUEUE was not in the hostbyte_table. I do not think
there is any way to hit the code path where scsi_show_result is called
and where you return DID_REQUEUE, because DID_REQUEUE causes scsi-ml to
always requeue the command. However, for completeness and because I want
to one day send a patch that tries to add new host bytes values, I am
sending this patch.

Signed-off-by: Mike Christie &lt;michaelc@cs.wisc.edu&gt;
Signed-off-by: James Bottomley &lt;James.Bottomley@HansenPartnership.com&gt;
</content>
</entry>
<entry>
<title>[SCSI] Fix device not ready printk</title>
<updated>2007-10-12T18:51:56Z</updated>
<author>
<name>James Bottomley</name>
</author>
<published>2007-09-23T14:08:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=311b581e1d87be87f78e6e17fc50f468f2dec561'/>
<id>urn:sha1:311b581e1d87be87f78e6e17fc50f468f2dec561</id>
<content type='text'>
Because scsi_print_sense_hdr prefixes with KERN_INFO, the output from
scsi_io_completion looks like:

sd 0:0:0:0: [sdb] Device not ready: &lt;6&gt;: Sense Key : 0x2 [current]
: ASC=0x4 ASCQ=0x3

By using scsi_show_sense_hdr, we can get the much more appealing output:

sd 0:0:0:0: [sdb] Device not ready: Sense Key : 0x2 [current]
sd 0:0:0:0: [sdb] Device not ready: ASC=0x4 ASCQ=0x3

Acked-by: Matthew Wilcox &lt;willy@linux.intel.com&gt;
Signed-off-by: James Bottomley &lt;James.Bottomley@SteelEye.com&gt;
</content>
</entry>
<entry>
<title>[SCSI] make scsi_decode_sense_buffer and scsi_decode_sense_extras static</title>
<updated>2007-10-12T18:40:25Z</updated>
<author>
<name>Adrian Bunk</name>
</author>
<published>2007-08-10T21:50:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8f8bf7e64ef76e1de66eb5212cd50f6a294d459f'/>
<id>urn:sha1:8f8bf7e64ef76e1de66eb5212cd50f6a294d459f</id>
<content type='text'>
Signed-off-by: Adrian Bunk &lt;bunk@stusta.de&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: James Bottomley &lt;James.Bottomley@SteelEye.com&gt;
</content>
</entry>
<entry>
<title>[SCSI] constants.c: Update ASC list and make it const</title>
<updated>2007-03-11T16:21:25Z</updated>
<author>
<name>Martin K. Petersen</name>
</author>
<published>2007-02-28T17:37:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=62d42a62770dd66da2d3df693e70f4e5fae1716a'/>
<id>urn:sha1:62d42a62770dd66da2d3df693e70f4e5fae1716a</id>
<content type='text'>
Add missing additional sense code and provide pointer to upstream
reference (from Doug Gilbert).

Add missing const (from Michael Tokarev).

Signed-off-by: Martin K. Petersen &lt;martin.petersen@oracle.com&gt;
Signed-off-by: James Bottomley &lt;James.Bottomley@SteelEye.com&gt;
</content>
</entry>
</feed>
