• James Bottomley's avatar
    scsi_scan: fix queue depth initialisation problem · ef10b169
    James Bottomley authored
    Currently we blindly use the value of cmd_per_lun as the initial setting for
    queue_depth.  This fails miserably (hangs the system) if it is zero, which is
    the default value for anything uninitialised in the template.  The net result
    is that every host template has to set a value for cmd_per_lun.  Instead, use
    a default value of 1 if the actual value is unset.  This should pave the way
    for removing cmd_per_lun from all the templates and eventually from SCSI
    itself.
    Signed-off-by: default avatarJames Bottomley <JBottomley@Odin.com>
    ef10b169
scsi_scan.c 55.6 KB