]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - block/blk-mq.c
blk-mq: streamline blk_mq_make_request
authorChristoph Hellwig <hch@lst.de>
Wed, 22 Mar 2017 19:01:53 +0000 (15:01 -0400)
committerJens Axboe <axboe@fb.com>
Thu, 23 Mar 2017 02:17:03 +0000 (20:17 -0600)
commita4d907b6a33ba22adbbfc443e22eb3c1aa2c73f6
tree7cfa4b5728595103068b612d26cc0d15c0f905dd
parent2299722c4b117af867425d097e470c8566e0c82e
blk-mq: streamline blk_mq_make_request

Turn the different ways of merging or issuing I/O into a series of if/else
statements instead of the current maze of gotos.  Note that this means we
pin the CPU a little longer for some cases as the CTX put is moved to
common code at the end of the function.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c