diff options
author | Tejun Heo <htejun@gmail.com> | 2006-04-02 11:51:53 +0200 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-04-02 16:09:20 +0200 |
commit | 2719736779da2c7fbb17d3de16c817b429bfeb9c (patch) | |
tree | f65b910e990cc59805faefc33fbb84cd419572c4 /drivers/scsi/libata-scsi.c | |
parent | [PATCH] libata: clear ATA_DFLAG_PIO before setting it (diff) | |
download | linux-2719736779da2c7fbb17d3de16c817b429bfeb9c.tar.xz linux-2719736779da2c7fbb17d3de16c817b429bfeb9c.zip |
[PATCH] libata: add ATA_QCFLAG_IO
Add a new qc flag ATA_QCFLAG_IO. This flag gets set for normal IO
commands originating from SCSI midlayer. This information will be
used by EH to determine transfer speed reconfiguration.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/scsi/libata-scsi.c')
-rw-r--r-- | drivers/scsi/libata-scsi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/libata-scsi.c b/drivers/scsi/libata-scsi.c index 096bdffbde11..234e1cadb070 100644 --- a/drivers/scsi/libata-scsi.c +++ b/drivers/scsi/libata-scsi.c @@ -1188,6 +1188,7 @@ static unsigned int ata_scsi_rw_xlat(struct ata_queued_cmd *qc, const u8 *scsicm u64 block; u32 n_block; + qc->flags |= ATA_QCFLAG_IO; tf->flags |= ATA_TFLAG_ISADDR | ATA_TFLAG_DEVICE; if (scsicmd[0] == WRITE_10 || scsicmd[0] == WRITE_6 || |