linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V4 0/3] blk-mq: issue request directly for blk_insert_cloned_request
@ 2018-01-15 16:58 Ming Lei
  2018-01-15 16:58 ` [PATCH V4 1/3] blk-mq: move actual issue into one helper Ming Lei
                   ` (3 more replies)
  0 siblings, 4 replies; 22+ messages in thread
From: Ming Lei @ 2018-01-15 16:58 UTC (permalink / raw)
  To: Jens Axboe, linux-block; +Cc: Mike Snitzer, Christoph Hellwig, Ming Lei

Hi Guys,

The 3 paches changes the blk-mq part of blk_insert_cloned_request(),
in which we switch to blk_mq_try_issue_directly(), so that both dm-rq
and blk-mq can get the dispatch result of underlying queue, and with
this information, blk-mq can handle IO merge much better, then
sequential I/O performance is improved much.

In my dm-mpath over virtio-scsi test, this whole patchset improves
sequential IO by 3X ~ 5X.

V4:
	- remove dm patches which are in DM tree already
	- cleanup __blk_mq_issue_req as suggested by Jens

V3:
	- rebase on the latest for-4.16/block of block tree
	- add missed pg_init_all_paths() in patch 1, according to Bart's review

V2:
	- drop 'dm-mpath: cache ti->clone during requeue', which is a bit
	too complicated, and not see obvious performance improvement.
	- make change on blk-mq part cleaner

Ming Lei (3):
  blk-mq: move actual issue into one helper
  blk-mq: return dispatch result to caller in blk_mq_try_issue_directly
  blk-mq: issue request directly for blk_insert_cloned_request

 block/blk-mq.c | 85 +++++++++++++++++++++++++++++++++++++++++++---------------
 1 file changed, 64 insertions(+), 21 deletions(-)

-- 
2.9.5

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2018-01-16 18:16 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-15 16:58 [PATCH V4 0/3] blk-mq: issue request directly for blk_insert_cloned_request Ming Lei
2018-01-15 16:58 ` [PATCH V4 1/3] blk-mq: move actual issue into one helper Ming Lei
2018-01-15 17:15   ` Mike Snitzer
2018-01-16  1:36     ` Ming Lei
2018-01-15 17:29   ` Jens Axboe
2018-01-15 19:41     ` Mike Snitzer
2018-01-16  1:43       ` Ming Lei
2018-01-16  1:45         ` Mike Snitzer
2018-01-16  1:40     ` Ming Lei
2018-01-16  4:05       ` Ming Lei
2018-01-15 16:58 ` [PATCH V4 2/3] blk-mq: return dispatch result to caller in blk_mq_try_issue_directly Ming Lei
2018-01-15 16:58 ` [PATCH V4 3/3] blk-mq: issue request directly for blk_insert_cloned_request Ming Lei
2018-01-16  1:34   ` Mike Snitzer
2018-01-15 17:43 ` [PATCH V4 0/3] " Mike Snitzer
2018-01-16  1:57   ` Ming Lei
2018-01-16 15:01     ` [for-4.16 PATCH v4-mike 1/2] blk-mq: return dispatch result from blk_mq_try_issue_directly Mike Snitzer
2018-01-16 15:01     ` [for-4.16 PATCH v4-mike 2/2] blk-mq: issue request directly for blk_insert_cloned_request Mike Snitzer
2018-01-16 16:41       ` Mike Snitzer
2018-01-16 17:20       ` Jens Axboe
2018-01-16 17:38         ` Mike Snitzer
2018-01-16 17:41           ` Jens Axboe
2018-01-16 18:16             ` Mike Snitzer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).