1. NAME

ata_std_qc_defer - Check whether a qc needs to be deferred

2. SYNOPSIS

int ata_std_qc_defer(struct ata_queued_cmd *  qc );

3. ARGUMENTS

qc
    ATA command in question

4. 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.

5. LOCKING

spin_lock_irqsave(host lock)

6. RETURNS

ATA_DEFER_* if deferring is needed, 0 otherwise.

7. AUTHOR

Jeff Garzik
    Author.

8. COPYRIGHT