Request an available ata command, for queueing
struct ata_queued_cmd * ata_qc_new(struct ata_port * ap);
ap
target port
Some ATA host controllers may implement a queue depth which is less than ATA_MAX_QUEUE. So we shouldn't allocate a tag which is beyond the hardware limitation.
None.
Jeff Garzik
Author.