Skip to content
  • Douglas Gilbert's avatar
    [SCSI] scsi_debug: error processing · 6f3cbf55
    Douglas Gilbert authored
    
    
    After discussions in the thread titled:
        [PATCH] scsi_debug: illegal blocking memory allocation
    here is a patch containing the discussed fix and some other
    fixes and additions. The patch is against lk 2.6.20-rc3 .
    The version is bumped to 1.81 .
    
    ChangeLog:
      - Change several GFP_KERNEL allocations to GFP_ATOMIC
        as they can be called from queuecommand() context
      - check above allocation returns and if out of memory
        report DID_REQUEUE in two cases, DID_NO_CONNECT in
        another, and fail slave configure() in another
      - add support for WRITE BUFFER command
      - add aborted_command error injection support
        (opts mask 0x10), similar mechanism to
        recovered_error injection.
    
    Signed-off-by: default avatarDouglas Gilbert <dougg@torque.net>
    Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
    6f3cbf55