]> git.baikalelectronics.ru Git - kernel.git/commit
ata: Enabling ATA Command Priorities
authorAdam Manzanares <adam.manzanares@hgst.com>
Mon, 17 Oct 2016 18:27:29 +0000 (11:27 -0700)
committerTejun Heo <tj@kernel.org>
Wed, 19 Oct 2016 18:34:36 +0000 (14:34 -0400)
commitbcf5d6190311fca1b61f348eba1363927f701c1c
tree30d253d6d6a214f6514484bfe1d2c3b178fdf62e
parent0509e80f0af7ba862da6b5b91351f1bea70119fe
ata: Enabling ATA Command Priorities

This patch checks to see if an ATA device supports NCQ command priorities.
If so and the user has specified an iocontext that indicates
IO_PRIO_CLASS_RT then we build a tf with a high priority command.

This is done to improve the tail latency of commands that are high
priority by passing priority to the device.

tj: Removed trivial ata_ncq_prio_enabled() and open-coded the test.

Signed-off-by: Adam Manzanares <adam.manzanares@hgst.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/libata-core.c
drivers/ata/libata-scsi.c
drivers/ata/libata.h
include/linux/ata.h
include/linux/libata.h