diff options
author | Tejun Heo <htejun@gmail.com> | 2006-05-15 08:03:41 -0400 |
---|---|---|
committer | Tejun Heo <htejun@gmail.com> | 2006-05-15 08:03:41 -0400 |
commit | 6cec4a3943bdfe46e2952bc246f17670f747be8d (patch) | |
tree | 46fa642814683174b6da21c992ef6f672cec3ab5 /drivers/scsi/libata-core.c | |
parent | 2115ea94a2d11fbd228b049e667ec2d3e91ca371 (diff) |
[PATCH] libata-ncq: rename ap->qactive to ap->qc_allocated
Rename ap->qactive to ap->qc_allocated. This is to accomodate
addition of ap->qc_active, mask of active qcs.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Diffstat (limited to 'drivers/scsi/libata-core.c')
-rw-r--r-- | drivers/scsi/libata-core.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c index 487b8f22981f..f8401800dc1a 100644 --- a/drivers/scsi/libata-core.c +++ b/drivers/scsi/libata-core.c | |||
@@ -1006,7 +1006,7 @@ unsigned ata_exec_internal(struct ata_device *dev, | |||
1006 | else | 1006 | else |
1007 | tag = 0; | 1007 | tag = 0; |
1008 | 1008 | ||
1009 | if (test_and_set_bit(tag, &ap->qactive)) | 1009 | if (test_and_set_bit(tag, &ap->qc_allocated)) |
1010 | BUG(); | 1010 | BUG(); |
1011 | qc = __ata_qc_from_tag(ap, tag); | 1011 | qc = __ata_qc_from_tag(ap, tag); |
1012 | 1012 | ||
@@ -4207,7 +4207,7 @@ static struct ata_queued_cmd *ata_qc_new(struct ata_port *ap) | |||
4207 | 4207 | ||
4208 | /* the last tag is reserved for internal command. */ | 4208 | /* the last tag is reserved for internal command. */ |
4209 | for (i = 0; i < ATA_MAX_QUEUE - 1; i++) | 4209 | for (i = 0; i < ATA_MAX_QUEUE - 1; i++) |
4210 | if (!test_and_set_bit(i, &ap->qactive)) { | 4210 | if (!test_and_set_bit(i, &ap->qc_allocated)) { |
4211 | qc = __ata_qc_from_tag(ap, i); | 4211 | qc = __ata_qc_from_tag(ap, i); |
4212 | break; | 4212 | break; |
4213 | } | 4213 | } |
@@ -4264,7 +4264,7 @@ void ata_qc_free(struct ata_queued_cmd *qc) | |||
4264 | tag = qc->tag; | 4264 | tag = qc->tag; |
4265 | if (likely(ata_tag_valid(tag))) { | 4265 | if (likely(ata_tag_valid(tag))) { |
4266 | qc->tag = ATA_TAG_POISON; | 4266 | qc->tag = ATA_TAG_POISON; |
4267 | clear_bit(tag, &ap->qactive); | 4267 | clear_bit(tag, &ap->qc_allocated); |
4268 | } | 4268 | } |
4269 | } | 4269 | } |
4270 | 4270 | ||