blk-mq: refactor request insertion/merging
authorJens Axboe <axboe@fb.com>
Wed, 30 Apr 2014 19:43:56 +0000 (13:43 -0600)
committerJens Axboe <axboe@fb.com>
Mon, 30 Mar 2015 18:54:46 +0000 (12:54 -0600)
commitc163d13fbc9f8b914d25543e4e3284aec5e76e44
treee93d649237283f944d366d7c716dd22ff66940cc
parentce3d07856108e5d690cb1e11b14cb41e4b1adcda
blk-mq: refactor request insertion/merging

Refactor the logic around adding a new bio to a software queue,
so we nest the ctx->lock where we really need it (merge and
insertion) and don't hold it when we don't (init and IO start
accounting).

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