/* Enable allow_restart for a device if it is a disk. Adjust the queue_depth here also as is required by the documentation for struct scsi_host_template.  */
static int ibmvscsi_slave_configure(struct scsi_device *sdev)
/* Enable allow_restart for a device if it is a disk. Adjust the queue_depth here also as is required by the documentation for struct scsi_host_template.  */
static int ibmvscsi_slave_configure(struct scsi_device *sdev)
{
	struct Scsi_Host *shost = sdev->host;
	unsigned long lock_flags = 0;
	spin_lock_irqsave(shost->host_lock, lock_flags);
	if (sdev->type == TYPE_DISK) {
		sdev->allow_restart = 1;
		blk_queue_rq_timeout(sdev->request_queue, 120 * HZ);
	}
	scsi_adjust_queue_depth(sdev, 0, shost->cmd_per_lun);
	spin_unlock_irqrestore(shost->host_lock, lock_flags);
	return 0;
}