ata_scmd_need_defer(9)

NAME

ata_scmd_need_defer - Check whether we need to defer scmd

SYNOPSIS

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

DESCRIPTION

NCQ and non-NCQ commands cannot run together. As upper
layer only knows the queue depth, we are responsible for main
taining 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.

COPYRIGHT

Copyright © 2010-2025 Platon Technologies, s.r.o.           Index | Man stránky | tLDP | Dokumenty | Utilitky | O projekte
Design by styleshout