From: Stephen M. Cameron <scame...@beardog.cce.hp.com> Don't loop through all the devices even after finding the one we're looking for
Signed-off-by: Stephen M. Cameron <scame...@beardog.cce.hp.com> Reviewed-by: Robert Elliott <elli...@hp.com> --- drivers/scsi/scsi_error.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c index cbe38e5..db8a488 100644 --- a/drivers/scsi/scsi_error.c +++ b/drivers/scsi/scsi_error.c @@ -635,6 +635,7 @@ static void scsi_handle_queue_ramp_up(struct scsi_device *sdev) sht->change_queue_depth(tmp_sdev, tmp_sdev->queue_depth + 1, SCSI_QDEPTH_RAMP_UP); sdev->last_queue_ramp_up = jiffies; + break; } } @@ -657,6 +658,7 @@ static void scsi_handle_queue_full(struct scsi_device *sdev) */ sht->change_queue_depth(tmp_sdev, tmp_sdev->queue_depth - 1, SCSI_QDEPTH_QFULL); + break; } } -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html