From: Vasu Dev Date: Fri, 16 Oct 2009 00:47:06 +0000 (-0700) Subject: [SCSI] libfc: add queue_depth ramp up X-Git-Tag: v2.6.33-rc1~344^2~134 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=229b8d72f3eccf97e8a9e22436e8fc303b3483cd;p=~emulex%2Finfiniband.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 48de805eb19..479af9352a4 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; }