• Mike Anderson's avatar
    [PATCH] scsi_debug new scan fix · 534a4bf2
    Mike Anderson authored
    If you use scsi_debug the patch below fixes a problem that has existed
    since the updated scan code was merged in. scsi_debug previously assumed
    that the scsi_device used to probe and the device permanently added to the
    host_queue would be the same. This caused scsi_debug to allocate some
    internal data and key it off the scsi_device pointer for later use.  This
    resulted in scsi_debug failing all IO post scanning. This patch corrects
    this problem.
    
    Note:
    	Douglas Gilbert is the maintainer of this driver.
    	dougg@gear.torque.net
    	http://www.torque.net/sg/
    
    	During Douglas Gilbert's time-off he connects when he can so it
    	maybe a bit until he can address this.
    
    	In the interim this patch makes scsi_debug functional.
    
    
    The full patch is available at:
    http://www-124.ibm.com/storageio/patches/2.5/scsi-debug
    -andmike
    --
    Michael Anderson
    andmike@us.ibm.com
    
     scsi_debug.c |   59 +++++++++++++++++++++++++++++++----------------------------
     1 files changed, 31 insertions(+), 28 deletions(-)
    534a4bf2
scsi_debug.c 37.6 KB