diff options
Diffstat (limited to 'drivers/scsi/scsi_error.c')
-rw-r--r-- | drivers/scsi/scsi_error.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c index 96627bae753c..e42fff6e8c10 100644 --- a/drivers/scsi/scsi_error.c +++ b/drivers/scsi/scsi_error.c | |||
@@ -610,7 +610,7 @@ static void scsi_handle_queue_ramp_up(struct scsi_device *sdev) | |||
610 | struct scsi_host_template *sht = sdev->host->hostt; | 610 | struct scsi_host_template *sht = sdev->host->hostt; |
611 | struct scsi_device *tmp_sdev; | 611 | struct scsi_device *tmp_sdev; |
612 | 612 | ||
613 | if (!sht->change_queue_depth || | 613 | if (!sht->track_queue_depth || |
614 | sdev->queue_depth >= sdev->max_queue_depth) | 614 | sdev->queue_depth >= sdev->max_queue_depth) |
615 | return; | 615 | return; |
616 | 616 | ||
@@ -631,12 +631,8 @@ static void scsi_handle_queue_ramp_up(struct scsi_device *sdev) | |||
631 | tmp_sdev->id != sdev->id || | 631 | tmp_sdev->id != sdev->id || |
632 | tmp_sdev->queue_depth == sdev->max_queue_depth) | 632 | tmp_sdev->queue_depth == sdev->max_queue_depth) |
633 | continue; | 633 | continue; |
634 | /* | 634 | |
635 | * call back into LLD to increase queue_depth by one | 635 | scsi_change_queue_depth(tmp_sdev, tmp_sdev->queue_depth + 1); |
636 | * with ramp up reason code. | ||
637 | */ | ||
638 | sht->change_queue_depth(tmp_sdev, tmp_sdev->queue_depth + 1, | ||
639 | SCSI_QDEPTH_RAMP_UP); | ||
640 | sdev->last_queue_ramp_up = jiffies; | 636 | sdev->last_queue_ramp_up = jiffies; |
641 | } | 637 | } |
642 | } | 638 | } |
@@ -646,7 +642,7 @@ static void scsi_handle_queue_full(struct scsi_device *sdev) | |||
646 | struct scsi_host_template *sht = sdev->host->hostt; | 642 | struct scsi_host_template *sht = sdev->host->hostt; |
647 | struct scsi_device *tmp_sdev; | 643 | struct scsi_device *tmp_sdev; |
648 | 644 | ||
649 | if (!sht->change_queue_depth) | 645 | if (!sht->track_queue_depth) |
650 | return; | 646 | return; |
651 | 647 | ||
652 | shost_for_each_device(tmp_sdev, sdev->host) { | 648 | shost_for_each_device(tmp_sdev, sdev->host) { |
@@ -658,8 +654,7 @@ static void scsi_handle_queue_full(struct scsi_device *sdev) | |||
658 | * the device when we got the queue full so we start | 654 | * the device when we got the queue full so we start |
659 | * from the highest possible value and work our way down. | 655 | * from the highest possible value and work our way down. |
660 | */ | 656 | */ |
661 | sht->change_queue_depth(tmp_sdev, tmp_sdev->queue_depth - 1, | 657 | scsi_track_queue_full(tmp_sdev, tmp_sdev->queue_depth - 1); |
662 | SCSI_QDEPTH_QFULL); | ||
663 | } | 658 | } |
664 | } | 659 | } |
665 | 660 | ||