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>
Fri, 28 Apr 2017 16:59:04 +0000 (10:59 -0600)
commit4905830ea551195dd0593ecdf2ca210177a8a627
treeae7d7c438482ac3acafd726b10bef2a86a7e8da4
parentbdfd3bfe03eb4ac4acabf35194e2d6b60036c120
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.

Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/mtip32xx/mtip32xx.c