]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0827606f58a4d50760eeb1f83fb14f91352b3113
tree2fa14c89ce38c2fa963dc330f682689b9d9d6c9b
parent8c0a2b41b113e305fa5a50b5e0582336eaaf0331
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