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>
Wed, 30 Apr 2014 19:43:56 +0000 (13:43 -0600)
commitc6d600c65ebfa10a2a10d3e9183a24527ebe2aa4
tree37fb918771c5048284da88170ecae051a221d94e
parent98bc1f272aba620d4222120853011d0ef026cf56
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