• Mike Anderson's avatar
    [PATCH] scsi_error handler update. (1/4) · 65893cf6
    Mike Anderson authored
    This patch series is against scsi-misc-2.5.
    
    These patches modify the scsi error handler to process cmds needing
    recovery off a list. The error handler policy has been altered to do the
    following:
    	1.) Check for legacy behavior of requesting sense.
    	2.) Abort commands marked needing to be canceled.
    	3.) Ready devices through tur and eh handlers.
    	4.) disposition each command on the list to be retried or
    	finished.
    
    00_serror-cmd-list-1.diff:
    	- Add per host eh_cmd_list list head.
    	- Add per cmd eh_list list head.
    
    01_serror-scmd-add-1.diff:
    	- Add scsi_eh_scmd_add function.
    
    02_serror-hndlr-1.diff:
    	- Change to using eh_cmd_list.
    	- Change scsi_unjam_host to get sense, abort cmds, ready
    	  devices, and disposition cmds for retry or finish.
    	- Moved retries outside of eh.
    
    03_serror-dev-offline-1.diff:
    	- Add scsi_set_device_offline interface.
    
    I have tested both the timeout and offline cases with the scsi_debug. I
    have ran some other testing, but my machine stability is causing it to
    oops in other areas.
    
    -andmike
    --
    Michael Anderson
    andmike@us.ibm.com
    
     hosts.c |   16 +---------------
     hosts.h |    2 +-
     scsi.h  |    9 +++++----
     3 files changed, 7 insertions(+), 20 deletions(-)
    65893cf6
hosts.c 15.6 KB