===== drivers/scsi/scsi_scan.c 1.24 vs edited ===== --- 1.24/drivers/scsi/scsi_scan.c Tue Oct 8 15:45:57 2002 +++ edited/drivers/scsi/scsi_scan.c Thu Oct 10 17:40:53 2002 @@ -1477,11 +1477,14 @@ if (sdt->detect) sdev->attached += (*sdt->detect) (sdev); - if (sdev->host->hostt->slave_attach != NULL) + if (sdev->host->hostt->slave_attach != NULL) { if (sdev->host->hostt->slave_attach(sdev) != 0) { printk(KERN_INFO "scsi_add_lun: failed low level driver attach, setting device offline"); sdev->online = FALSE; } + } else if(sdev->host->cmd_per_lun) { + scsi_adjust_queue_depth(sdev, 0, sdev->host->cmd_per_lun); + } if (sdevnew != NULL) *sdevnew = sdev;