Skip to content

blk-mq: issue request directly for blk_insert_cloned_request

Ming Lei dm-devel linux-block 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v4 Latest3 patches 11 repliesIn review

Changes in v4 from the cover letter

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

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3blk-mq: move actual issue into one helperblock/blk-mq.c+27 -128 replies
2/3blk-mq: return dispatch result to caller in blk_mq_try_issue_directlyblock/blk-mq.c+14 -90 replies
3/3blk-mq: issue request directly for blk_insert_cloned_requestblock/blk-mq.c+26 -31 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH V4 0/3] blk-mq: issue request directly for blk_insert_cloned_request

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(-)
Signature · 1 line
2.9.5