linux/drivers/scsi/osd
Boaz Harrosh aa9fffbe2c [SCSI] libosd: Error handling revamped
Administer some love to the osd_req_decode_sense function

* Fix a bad bug with osd_req_decode_sense(). If there was no scsi
  residual, .i.e the request never reached the target, then all the
  osd_sense_info members where garbage.

* Add grossly missing in/out_resid to osd_sense_info and fill them in
  properly.

* Define an osd_err_priority enum which divides the possible errors into
  7 categories in ascending severity. Each category is also assigned a
  Linux return code translation.

  Analyze the different osd/scsi/block returned errors and set the
  proper osd_err_priority and Linux return code accordingly.

* extra check a few situations so not to get stuck with inconsistent
  error view. Example an empty residual with an error code, and other
  places ...

Lots of libosd's osd_req_decode_sense clients had this logic in some
form or another. Consolidate all these into one place that should
actually know about osd returns. Thous translating it to a more
abstract error.

Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
2009-12-04 12:01:47 -06:00
..
Kbuild [SCSI] osd: Remove out-of-tree left overs 2009-06-10 09:00:41 -05:00
Kconfig [SCSI] osd: Kconfig file for in-tree builds 2009-03-12 12:58:09 -05:00
osd_debug.h [SCSI] libosd: OSDv1 preliminary implementation 2009-03-12 12:58:06 -05:00
osd_initiator.c [SCSI] libosd: Error handling revamped 2009-12-04 12:01:47 -06:00
osd_uld.c [SCSI] libosd: osd_dev_info: Unique Identification of an OSD device 2009-12-04 12:01:46 -06:00