diff options
Diffstat (limited to 'drivers/s390/scsi/zfcp_scsi.c')
-rw-r--r-- | drivers/s390/scsi/zfcp_scsi.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/s390/scsi/zfcp_scsi.c b/drivers/s390/scsi/zfcp_scsi.c index 7b353647cb90..b5dfa51f396f 100644 --- a/drivers/s390/scsi/zfcp_scsi.c +++ b/drivers/s390/scsi/zfcp_scsi.c | |||
@@ -37,13 +37,13 @@ static int zfcp_scsi_change_queue_depth(struct scsi_device *sdev, int depth, | |||
37 | { | 37 | { |
38 | switch (reason) { | 38 | switch (reason) { |
39 | case SCSI_QDEPTH_DEFAULT: | 39 | case SCSI_QDEPTH_DEFAULT: |
40 | scsi_adjust_queue_depth(sdev, scsi_get_tag_type(sdev), depth); | 40 | scsi_adjust_queue_depth(sdev, depth); |
41 | break; | 41 | break; |
42 | case SCSI_QDEPTH_QFULL: | 42 | case SCSI_QDEPTH_QFULL: |
43 | scsi_track_queue_full(sdev, depth); | 43 | scsi_track_queue_full(sdev, depth); |
44 | break; | 44 | break; |
45 | case SCSI_QDEPTH_RAMP_UP: | 45 | case SCSI_QDEPTH_RAMP_UP: |
46 | scsi_adjust_queue_depth(sdev, scsi_get_tag_type(sdev), depth); | 46 | scsi_adjust_queue_depth(sdev, depth); |
47 | break; | 47 | break; |
48 | default: | 48 | default: |
49 | return -EOPNOTSUPP; | 49 | return -EOPNOTSUPP; |
@@ -66,9 +66,7 @@ static void zfcp_scsi_slave_destroy(struct scsi_device *sdev) | |||
66 | static int zfcp_scsi_slave_configure(struct scsi_device *sdp) | 66 | static int zfcp_scsi_slave_configure(struct scsi_device *sdp) |
67 | { | 67 | { |
68 | if (sdp->tagged_supported) | 68 | if (sdp->tagged_supported) |
69 | scsi_adjust_queue_depth(sdp, MSG_SIMPLE_TAG, default_depth); | 69 | scsi_adjust_queue_depth(sdp, default_depth); |
70 | else | ||
71 | scsi_adjust_queue_depth(sdp, 0, 1); | ||
72 | return 0; | 70 | return 0; |
73 | } | 71 | } |
74 | 72 | ||