• Jens Axboe's avatar
    [PATCH] fix scsi oops on failed sg table allocation · 7dbe32be
    Jens Axboe authored
    This patch fixes the deliberate BUG_ON() on failed sgtable allocations.
    I left that in because I was too lazy to fix it at the time...
    
    Basically make scsi_init_io() return 0 on failure (like before) but this
    time allow us to recover. scsi_init_io() will end_request on a fatal
    condition. So now just mark the device/host as starved if needed, and
    leave the request at the front of the queue for next service.
    7dbe32be
scsi_merge.c 3.58 KB