- }Since this is now not actually allocating a tag, I would rename this
- return -1;
+ return scmd->budget_token;
}
something like ata_sas_get_tag(). Or even better, simply open code this
in ata_qc_new_init() since that is the only caller.
void ata_sas_free_tag(unsigned int tag, struct ata_port *ap)This is called only in ata_qc_free(). With this change, the function is
{
- clear_bit(tag, &ap->sas_tag_allocated);
}
empty, so let's completely remove it.
/**
diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c
index ed8be585a98f..45d63a2ba3ee 100644
--- a/drivers/ata/libata-scsi.c
+++ b/drivers/ata/libata-scsi.c
@@ -640,7 +640,7 @@ static struct ata_queued_cmd *ata_scsi_qc_new(struct ata_device *dev,
{