aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libfc
diff options
context:
space:
mode:
authorVasu Dev <vasu.dev@intel.com>2009-10-15 20:47:06 -0400
committerJames Bottomley <James.Bottomley@suse.de>2009-12-04 13:00:44 -0500
commit229b8d72f3eccf97e8a9e22436e8fc303b3483cd (patch)
treef80ce8ad2655494f3faf41f01462c53926f282dd /drivers/scsi/libfc
parent4a84067dbfce436b81779e585bf712b02ceee552 (diff)
[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 <vasu.dev@intel.com> Acked-by: Robert Love <robert.w.love@intel.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/libfc')
-rw-r--r--drivers/scsi/libfc/fc_fcp.c3
1 files changed, 3 insertions, 0 deletions
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)
2056 case SCSI_QDEPTH_QFULL: 2056 case SCSI_QDEPTH_QFULL:
2057 scsi_track_queue_full(sdev, qdepth); 2057 scsi_track_queue_full(sdev, qdepth);
2058 break; 2058 break;
2059 case SCSI_QDEPTH_RAMP_UP:
2060 scsi_adjust_queue_depth(sdev, scsi_get_tag_type(sdev), qdepth);
2061 break;
2059 default: 2062 default:
2060 return -EOPNOTSUPP; 2063 return -EOPNOTSUPP;
2061 } 2064 }