mptsas: fix depth param in scsi_track_queue_full
authorTomas Henzl <thenzl@redhat.com>
Wed, 3 Jun 2015 15:37:02 +0000 (17:37 +0200)
committerJames Bottomley <JBottomley@Odin.com>
Sat, 13 Jun 2015 15:40:33 +0000 (08:40 -0700)
commit2865c073257eaf1ede043a4dbc77afc71b6de175
tree7ba32e5b8543aa0164e986159e5ce0db7de0a478
parent258c3af2b9309412d82e74b2ea87e8c140fe2072
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>
drivers/message/fusion/mptsas.c