]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf0d5dcf09c847d6332208021997431b1777de5ef
tree37fb918771c5048284da88170ecae051a221d94e
parent13b62d8b0c34a96b25069695c6af4ea3767d8561
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