[SCSI] libfc: add queue_depth ramp up
authorVasu Dev <vasu.dev@intel.com>
Fri, 16 Oct 2009 00:47:06 +0000 (17:47 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Fri, 4 Dec 2009 18:00:44 +0000 (12:00 -0600)
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>
drivers/scsi/libfc/fc_fcp.c

index 48de805eb193247f53031ba7fb7d11ac72c9272d..479af9352a4279ba59380f62b9fb6b02eaa3e4a8 100644 (file)
@@ -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;
        }