diff options
author | Christof Schmitt <christof.schmitt@de.ibm.com> | 2009-10-15 20:47:11 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2009-12-04 13:00:45 -0500 |
commit | 42e62a74377bcbb526565a31aa18da8f712b93ee (patch) | |
tree | 61692fdff92370cb58fbe3fe7a82162ee58de831 /drivers/s390 | |
parent | 229b8d72f3eccf97e8a9e22436e8fc303b3483cd (diff) |
[SCSI] zfcp: Adapt change_queue_depth for queue full tracking
Adapt the change_queue_depth callback in zfcp for the new reason
parameter. Simply pass each call back to the SCSI midlayer, there are
no resource adjustments necessary for zfcp.
Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Removes check for (depth <= default_depth) in case of
SCSI_QDEPTH_RAMP_UP call back, not needed after added
max_queue_depth per sdev.
Signed-off-by: Vasu Dev <vasu.dev@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/scsi/zfcp_scsi.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/drivers/s390/scsi/zfcp_scsi.c b/drivers/s390/scsi/zfcp_scsi.c index ad1154701729..f54655998bd5 100644 --- a/drivers/s390/scsi/zfcp_scsi.c +++ b/drivers/s390/scsi/zfcp_scsi.c | |||
@@ -32,10 +32,19 @@ char *zfcp_get_fcp_sns_info_ptr(struct fcp_rsp_iu *fcp_rsp_iu) | |||
32 | static int zfcp_scsi_change_queue_depth(struct scsi_device *sdev, int depth, | 32 | static int zfcp_scsi_change_queue_depth(struct scsi_device *sdev, int depth, |
33 | int reason) | 33 | int reason) |
34 | { | 34 | { |
35 | if (reason != SCSI_QDEPTH_DEFAULT) | 35 | switch (reason) { |
36 | case SCSI_QDEPTH_DEFAULT: | ||
37 | scsi_adjust_queue_depth(sdev, scsi_get_tag_type(sdev), depth); | ||
38 | break; | ||
39 | case SCSI_QDEPTH_QFULL: | ||
40 | scsi_track_queue_full(sdev, depth); | ||
41 | break; | ||
42 | case SCSI_QDEPTH_RAMP_UP: | ||
43 | scsi_adjust_queue_depth(sdev, scsi_get_tag_type(sdev), depth); | ||
44 | break; | ||
45 | default: | ||
36 | return -EOPNOTSUPP; | 46 | return -EOPNOTSUPP; |
37 | 47 | } | |
38 | scsi_adjust_queue_depth(sdev, scsi_get_tag_type(sdev), depth); | ||
39 | return sdev->queue_depth; | 48 | return sdev->queue_depth; |
40 | } | 49 | } |
41 | 50 | ||