Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 29430
b: refs/heads/master
c: 6cec4a3
h: refs/heads/master
v: v3
  • Loading branch information
Tejun Heo committed May 15, 2006
1 parent 3645c83 commit 4b042f9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2115ea94a2d11fbd228b049e667ec2d3e91ca371
refs/heads/master: 6cec4a3943bdfe46e2952bc246f17670f747be8d
6 changes: 3 additions & 3 deletions trunk/drivers/scsi/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,7 @@ unsigned ata_exec_internal(struct ata_device *dev,
else
tag = 0;

if (test_and_set_bit(tag, &ap->qactive))
if (test_and_set_bit(tag, &ap->qc_allocated))
BUG();
qc = __ata_qc_from_tag(ap, tag);

Expand Down Expand Up @@ -4207,7 +4207,7 @@ static struct ata_queued_cmd *ata_qc_new(struct ata_port *ap)

/* the last tag is reserved for internal command. */
for (i = 0; i < ATA_MAX_QUEUE - 1; i++)
if (!test_and_set_bit(i, &ap->qactive)) {
if (!test_and_set_bit(i, &ap->qc_allocated)) {
qc = __ata_qc_from_tag(ap, i);
break;
}
Expand Down Expand Up @@ -4264,7 +4264,7 @@ void ata_qc_free(struct ata_queued_cmd *qc)
tag = qc->tag;
if (likely(ata_tag_valid(tag))) {
qc->tag = ATA_TAG_POISON;
clear_bit(tag, &ap->qactive);
clear_bit(tag, &ap->qc_allocated);
}
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/include/linux/libata.h
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ struct ata_port {
struct ata_device device[ATA_MAX_DEVICES];

struct ata_queued_cmd qcmd[ATA_MAX_QUEUE];
unsigned long qactive;
unsigned long qc_allocated;
unsigned int active_tag;

struct ata_host_stats stats;
Expand Down

0 comments on commit 4b042f9

Please sign in to comment.