diff options
author | Christoph Hellwig <hch@lst.de> | 2014-11-03 06:47:47 -0500 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2014-11-12 05:19:40 -0500 |
commit | 125c99bc8b6b108d251169a86324a7ed3c6f3cce (patch) | |
tree | 58c721993e8b2be80e2993ea864529923c904b29 /drivers/scsi/aic7xxx | |
parent | a62182f338b39a22035531c6afc0a8d2928b1df2 (diff) |
scsi: add new scsi-command flag for tagged commands
Currently scsi piggy backs on the block layer to define the concept
of a tagged command. But we want to be able to have block-level host-wide
tags assigned even for untagged commands like the initial INQUIRY, so add
a new SCSI-level flag for commands that are tagged at the scsi level, so
that even commands without that set can have tags assigned to them. Note
that this alredy is the case for the blk-mq code path, and this just lets
the old path catch up with it.
We also set this flag based upon sdev->simple_tags instead of the block
queue flag, so that it is entirely independent of the block layer tagging,
and thus always correct even if a driver doesn't use block level tagging
yet.
Also remove the old blk_rq_tagged; it was only used by SCSI drivers, and
removing it forces them to look for the proper replacement.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Diffstat (limited to 'drivers/scsi/aic7xxx')
-rw-r--r-- | drivers/scsi/aic7xxx/aic7xxx_osm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/aic7xxx/aic7xxx_osm.c b/drivers/scsi/aic7xxx/aic7xxx_osm.c index d2c9bf39033d..63bae7c65c9f 100644 --- a/drivers/scsi/aic7xxx/aic7xxx_osm.c +++ b/drivers/scsi/aic7xxx/aic7xxx_osm.c | |||
@@ -1447,7 +1447,7 @@ ahc_linux_run_command(struct ahc_softc *ahc, struct ahc_linux_device *dev, | |||
1447 | * we are storing a full busy target *lun* | 1447 | * we are storing a full busy target *lun* |
1448 | * table in SCB space. | 1448 | * table in SCB space. |
1449 | */ | 1449 | */ |
1450 | if (!blk_rq_tagged(cmd->request) | 1450 | if (!(cmd->flags & SCMD_TAGGED) |
1451 | && (ahc->features & AHC_SCB_BTT) == 0) { | 1451 | && (ahc->features & AHC_SCB_BTT) == 0) { |
1452 | int target_offset; | 1452 | int target_offset; |
1453 | 1453 | ||