From: Vasu Dev Date: Fri, 16 Oct 2009 00:47:06 +0000 (-0700) Subject: [SCSI] libfc: add queue_depth ramp up X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=229b8d72f3eccf97e8a9e22436e8fc303b3483cd;p=sagit-ice-cold%2Fkernel_xiaomi_msm8998.git [SCSI] libfc: add queue_depth ramp up Adjust queue_depth on fc_change_queue_depth call back with reason SCSI_QDEPTH_RAMP_UP, no additional resource adjustments necessary for libfc. Signed-off-by: Vasu Dev Acked-by: Robert Love Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/libfc/fc_fcp.c b/drivers/scsi/libfc/fc_fcp.c index 48de805eb193..479af9352a42 100644 --- a/drivers/scsi/libfc/fc_fcp.c +++ b/drivers/scsi/libfc/fc_fcp.c @@ -2056,6 +2056,9 @@ int fc_change_queue_depth(struct scsi_device *sdev, int qdepth, int reason) case SCSI_QDEPTH_QFULL: scsi_track_queue_full(sdev, qdepth); break; + case SCSI_QDEPTH_RAMP_UP: + scsi_adjust_queue_depth(sdev, scsi_get_tag_type(sdev), qdepth); + break; default: return -EOPNOTSUPP; }