---
name: "ata_std_qc_defer"
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_std_qc_defer"
---

# ata\_std\_qc\_defer(9)

Check whether a qc needs to be deferred

## NAME

ata\_std\_qc\_defer - Check whether a qc needs to be deferred

## SYNOPSIS

**int ata\_std\_qc\_defer(struct ata\_queued\_cmd \*** *qc***);**

## ARGUMENTS

*qc*

ATA command in question

## DESCRIPTION

Non-NCQ commands cannot run with any other command, NCQ or not. As upper layer only knows the queue depth, we are responsible for maintaining exclusion. This function checks whether a new command *qc* can be issued.

LOCKING: spin\_lock\_irqsave(host lock)

## RETURN

ATA\_DEFER\_\* if deferring is needed, 0 otherwise.

## AUTHOR

**Jeff Garzik**

Author.

## COPYRIGHT
