summaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2008-07-22 15:34:38 -0500
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-07-26 15:14:59 -0400
commit6bd522f6a226f435508433d24e0de4619e016a9d (patch)
treeaf7e4a482bad316ce8fc3955f6da16615b564afb /drivers/scsi
parentb7b1a35ea563a8f1219dc3fdf12f37937cb83245 (diff)
downloadop-kernel-dev-6bd522f6a226f435508433d24e0de4619e016a9d.zip
op-kernel-dev-6bd522f6a226f435508433d24e0de4619e016a9d.tar.gz
[SCSI] scsi_lib: use blk_rq_tagged in scsi_request_fn
I goofed and did not see the macro for checking if a request is tagged. This patch has us use blk_rq_tagged instead of digging into the req->tag. Patch was made over scsi-misc. Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/scsi_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c
index a20730c..6d62be6 100644
--- a/drivers/scsi/scsi_lib.c
+++ b/drivers/scsi/scsi_lib.c
@@ -1533,7 +1533,7 @@ static void scsi_request_fn(struct request_queue *q)
* we add the dev to the starved list so it eventually gets
* a run when a tag is freed.
*/
- if (blk_queue_tagged(q) && (req->tag == -1)) {
+ if (blk_queue_tagged(q) && !blk_rq_tagged(req)) {
if (list_empty(&sdev->starved_entry))
list_add_tail(&sdev->starved_entry,
&shost->starved_list);
OpenPOWER on IntegriCloud