ata_std_qc_defer
Prev | Chapter 4. libata Library | Next

## 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)

## RETURNS

ATA_DEFER_* if deferring is needed, 0 otherwise.

Prev | Up | Next
ata_dev_set_feature | Home | ata_sg_init