ata_scmd_need_defer(9)

ata_scmd_need_defer9

Check whether we need to defer scmd

Usage

int ata_scmd_need_defer(struct ata_device * dev, int is_io);

Arguments

dev

ATA device to which the command is addressed

is_io

Is the command IO (and thus possibly NCQ)?

Overview

NCQ and non-NCQ commands cannot run together. As upper layer only knows the queue depth, we are responsible for maintaining exclusion. This function checks whether a new command can be issued to dev.

Locking

spin_lock_irqsave(host_set lock)

Returns

1 if deferring is needed, 0 otherwise.

Author

Jeff Garzik

Author.

From linux-manual-2.6.18 2.6.18.dfsg.1-26etch2 in Debian 4.0 (Etch). Parsed by carta from the page's man source.