]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2c81f5d95a21ee40ba766b5eefcbea6ada085816
tree7cfa4b5728595103068b612d26cc0d15c0f905dd
parent7b33ee2309196124f76e7319bea9534596bf362f
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