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)
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

diff --cc block/blk-mq.c
Simple merge