---
name: "ata_qc_complete"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/ata_qc_complete"
---

# ata\_qc\_complete(9)

Complete an active ATA command

## NAME

ata\_qc\_complete - Complete an active ATA command

## SYNOPSIS

**void ata\_qc\_complete(struct ata\_queued\_cmd \*** *qc***);**

## ARGUMENTS

*qc*

Command to complete

## DESCRIPTION

Indicate to the mid and upper layers that an ATA command has completed, with either an ok or not-ok status.

Refrain from calling this function multiple times when successfully completing multiple NCQ commands. **ata\_qc\_complete\_multiple** should be used instead, which will properly update IRQ expect state.

LOCKING: spin\_lock\_irqsave(host lock)

## AUTHOR

**Jeff Garzik**

Author.

## COPYRIGHT
