mtip32xx: merge mtip_submit_request into mtip_queue_rq
authorChristoph Hellwig <hch@lst.de>
Fri, 9 Nov 2018 13:48:55 +0000 (14:48 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 9 Nov 2018 15:39:21 +0000 (08:39 -0700)
commit10966fa13855c5c64444bb01a97b86158e63267c
tree2fa14c89ce38c2fa963dc330f682689b9d9d6c9b
parentb5fa0e9ec997031083a76972d2ee0e8db671420a
mtip32xx: merge mtip_submit_request into mtip_queue_rq

Factor out a new is_stopped helper that matches the existing
is_se_active helper, and merge the trivial amount of remaining code
into the only caller.  This also allows better error handling by
returning a BLK_STS_* directly instead of explicitly calling
blk_mq_end_request, and moving blk_mq_start_request closer to the
actual issue to hardware.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/mtip32xx/mtip32xx.c