diff options
author | Tomas Henzl <thenzl@redhat.com> | 2015-06-03 11:37:02 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Odin.com> | 2015-06-13 11:40:33 -0400 |
commit | 2865c073257eaf1ede043a4dbc77afc71b6de175 (patch) | |
tree | 7ba32e5b8543aa0164e986159e5ce0db7de0a478 /drivers/message | |
parent | 258c3af2b9309412d82e74b2ea87e8c140fe2072 (diff) |
mptsas: fix depth param in scsi_track_queue_full
A user of scsi_track_queue_full should pass to the function a constant value
untill the queue-depth changes, otherwise the internal logic in
scsi_track_queue_full rejects the change. Other users of this function use a
'sdev->queue_depth - 1' as depth parameter, let's do the same.
Signed-off-by: Tomas Henzl <thenzl@redhat.com>
Acked-by: "Sreekanth Reddy" <Sreekanth.reddy@avagotech.com>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
Diffstat (limited to 'drivers/message')
-rw-r--r-- | drivers/message/fusion/mptsas.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/message/fusion/mptsas.c b/drivers/message/fusion/mptsas.c index 5bdaae15a742..005a88b9f440 100644 --- a/drivers/message/fusion/mptsas.c +++ b/drivers/message/fusion/mptsas.c | |||
@@ -4090,7 +4090,7 @@ mptsas_handle_queue_full_event(struct fw_event_work *fw_event) | |||
4090 | continue; | 4090 | continue; |
4091 | } | 4091 | } |
4092 | depth = scsi_track_queue_full(sdev, | 4092 | depth = scsi_track_queue_full(sdev, |
4093 | current_depth - 1); | 4093 | sdev->queue_depth - 1); |
4094 | if (depth > 0) | 4094 | if (depth > 0) |
4095 | sdev_printk(KERN_INFO, sdev, | 4095 | sdev_printk(KERN_INFO, sdev, |
4096 | "Queue depth reduced to (%d)\n", | 4096 | "Queue depth reduced to (%d)\n", |
@@ -4100,7 +4100,7 @@ mptsas_handle_queue_full_event(struct fw_event_work *fw_event) | |||
4100 | "Tagged Command Queueing is being " | 4100 | "Tagged Command Queueing is being " |
4101 | "disabled\n"); | 4101 | "disabled\n"); |
4102 | else if (depth == 0) | 4102 | else if (depth == 0) |
4103 | sdev_printk(KERN_INFO, sdev, | 4103 | sdev_printk(KERN_DEBUG, sdev, |
4104 | "Queue depth not changed yet\n"); | 4104 | "Queue depth not changed yet\n"); |
4105 | } | 4105 | } |
4106 | } | 4106 | } |