scsi: scsi_decide_disposition update
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest13 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/13 | scsi: Move wait_for checkdrivers/ | +9 | 0 replies | |
| 2/13 | scsi: Move retries checkdrivers/ drivers/ | +9 | 0 replies | |
| 3/13 | scsi: Move blk_noretry_requestdrivers/ drivers/ | +3 | 0 replies | |
| 4/13 | scsi: remove maybe_retrydrivers/ | +3 | 0 replies | |
| 5/13 | scsi: change return codes in scsi_decide_dispositiondrivers/ drivers/ include/ | +88 | 0 replies | |
| 6/13 | scsi: rename scsi_queue_insert to scsi_attempt_requeue_commanddrivers/ drivers/ drivers/ +1 more | +19 | 0 replies | |
| 7/13 | scsi: have device handlers return SCSI_MLQUEUE error valuedrivers/ drivers/ drivers/ +1 more | +22 | 0 replies | |
| 8/13 | scsi: convert other scsi_check_sense users to new error codesdrivers/ | +12 | 0 replies | |
| 9/13 | scsi: fix up SCSI_MLQUEUE defintions and add driver, device and transport onesdrivers/ drivers/ include/ | +57 | 0 replies | |
| 10/13 | scsi: move device online check to scsi_attempt_requeue_commanddrivers/ drivers/ | +12 | 0 replies | |
| 11/13 | scsi: remove scsi_device_online from scsi_decide_dispositiondrivers/ | +0 | 0 replies | |
| 12/13 | scsi: update scsi_log_completion disposition decodingdrivers/ include/ | +23 | 0 replies | |
| 13/13 | scsi: remove scsi_noretry_cmddrivers/ drivers/ drivers/ | +1 | 0 replies |
Reviews trailers per patch
8 of 13 patches have a Reviewed-by or Acked-by.
| Patch | Mike Christie |
|---|---|
| 1/13 | A-b |
| 2/13 | A-b |
| 3/13 | A-b |
| 4/13 | A-b |
| 5/13 | A-b |
| 6/13 | |
| 7/13 | |
| 8/13 | |
| 9/13 | |
| 10/13 | A-b |
| 11/13 | A-b |
| 12/13 | A-b |
| 13/13 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/13] scsi: scsi_decide_disposition update
This is a re-post of the scsi_decide_disposition_update against scsi-post-merge-2.6 with corrections to the sign off lines.
This patch series has been tested against the scsi-post-merge-2.6 git tree plus the latest updates from the linux-2.6-block for-2.6.28 branch.
Previous post url:
http://thread.gmane.org/gmane.linux.scsi/44412/focus=44463
Previous cover email:
This patch series is an update to a previous set of patches posted by Mike Christie in the thread referenced below.
http://thread.gmane.org/gmane.linux.scsi/44058/focus=4405
This patch series creates new return codes for scsi_decide_disposition and scsi_check_sense so that retry restrictions and disposition can be implied directly from the return code. Retry restrictions have also been moved into the requeue function.
Mike C and I have tested a few of the return code types, but it would be good to have other return types check with different hardware.
Change in behavior.
- dm-mp fast fail on transport errors.
- device busy and host busy limited by wait_for check.
- A few more error cases will return DRIVER_TIMEOUT. Possibly should add more DRIVER_ error codes.
A summary of the current disposition is shown below.
1.) Current disposition policy.
2.6.27 policy + DID_TRANSPORT patches
==============================================================================scsi_queue_insert
==============================================================================
SCSI_MLQUEUE_EH_RETRY retry
SCSI_MLQUEUE_DEVICE_BUSY retry, set device_blocked
SCSI_MLQUEUE_HOST_BUSY retry, set host_blocked
==============================================================================scsi_softirq_done
==============================================================================
disposition SUCCESS:
scsi_finish_command
disposition NEEDS_RETRY:
scsi_queue_insert SCSI_MLQUEUE_EH_RETRY
disposition ADD_TO_MLQUEUE:
scsi_queue_insert SCSI_MLQUEUE_DEVICE_BUSY
default:
scsi_eh_scmd_add
==============================================================================host_byte
==============================================================================
DID_OK goto status_byteDID_NO_CONNECT SUCCESSDID_BUS_BUSY allowed && !blk_noretryDID_TIME_OUT SUCCESS (TUR/INQ) / FAILEDDID_BAD_TARGET SUCCESSDID_ABORT SUCCESSDID_PARITY allowed && !blk_noretryDID_ERROR allowed && !blk_noretry (status for RES)DID_RESET SUCCESSDID_BAD_INTR defaultDID_PASSTHROUGH SUCCESSDID_SOFT_ERROR allowed && !blk_noretryDID_IMM_RETRY NEEDS_RETRYDID_REQUEUE ADD_TO_MLQUEUEDID_TRANSPORT_DISRUPTED ADD_TO_MLQUEUEDID_TRANSPORT_FAILFAST SUCCESS
default FAILED
==============================================================================status_byte
==============================================================================
QUEUE_FULL ADD_TO_MLQUEUE
BUSY ADD_TO_MLQUEUE
GOOD SUCCESSCOMMAND_TERMINATED SUCCESSTASK_ABORTED SUCCESSCHECK_CONDITION SEE SENSECONDITION_GOOD SUCCESSINTERMEDIATE_GOOD SUCCESSINTERMEDIATE_C_GOOD SUCCESSACA_ACTIVE SUCCESSRESERVATION_CONFLICT SUCCESS
default FAILED
==============================================================================
sense
==============================================================================
!normalize_sense FAILEDscsi_sense_is_deferred NEEDS_RETRY (allowed && !blk_noretry)
scsi_dh->check_sense handler return
FILEMARK, EOM or ILI SUCCESS
NO_SENSE SUCCESSRECOVERED_ERROR SUCCESSABORTED_COMMAND SUCCESS (DIF) / NEEDS_RETRYNOT_READY NEEDS_RETRY (ua, bc rdy) / FAILED (restart) / SUCCESSUNIT_ATTENTION NEEDS_RETRY (ua, bc rdy) / FAILED (restart) / SUCCESSCOPY_ABORTED SUCCESSVOLUME_OVERFLOW SUCCESS
MISCOMPARE SUCCESSMEDIUM_ERROR SUCCESS (0x11, 0x13, 0x14) / NEEDS_RETRYHARDWARE_ERROR ADD_TO_MLQUEUE (retry_hwerror) / SUCCESSILLEGAL_REQUEST SUCCESSBLANK_CHECK SUCCESSDATA_PROTECT SUCCESS
default SUCCESS