]> git.baikalelectronics.ru Git - kernel.git/commit
mtip32xx: convert internal command issue to block IO path
authorJens Axboe <axboe@fb.com>
Fri, 28 Apr 2017 16:45:08 +0000 (10:45 -0600)
committerJens Axboe <axboe@fb.com>
Tue, 2 May 2017 13:52:08 +0000 (07:52 -0600)
commit5f9582d0f4ce0a29eec8c713d8b73d41a9c595e4
treecbeaac6a62d43fbee2ee12badb3e00a7d8cf7fdc
parentc6f99c947f8386ed5ae6dde155cbed450dde9f5b
mtip32xx: convert internal command issue to block IO path

The driver special cases certain things for command issue, depending
on whether it's an internal command or not. Make the internal commands
use the regular infrastructure for issuing IO.

Since this is an 8-group souped up AHCI variant, we have to deal
with NCQ vs non-queueable commands. Do this from the queue_rq
handler, by backing off unless the drive is idle.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Tested-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/mtip32xx/mtip32xx.c