Skip to content

blk-mq: dispatch related cleanup, fix and optimization

Ming Lei linux-block 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5blk-mq: cleanup blk_mq_get_driver_tag()block/blk-mq.c block/blk-mq.h+8 -141 reply
2/5blk-mq: don't pass **hctx to blk_mq_mark_tag_wait()block/blk-mq.c+11 -121 reply
3/5blk-mq: introduce new lock for protecting hctx->dispatch_waitblock/blk-mq.c include/linux/blk-mq.h+18 -90 replies
4/5blk-mq: remove synchronize_rcu() from blk_mq_del_queue_tag_set()block/blk-mq-sched.c block/blk-mq.c include/linux/blkdev.h+7 -900 replies
5/5blk-mq: avoid to synchronize rcu inside blk_cleanup_queue()block/blk-core.c+6 -20 replies

Reviews trailers per patch

2 of 5 patches have a Reviewed-by or Acked-by.

PatchAndrew JonesOmar Sandoval
SeriesT-b
1/5R-b
2/5R-b
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] blk-mq: dispatch related cleanup, fix and optimization

Hi,

The 1st two patches cleanes up blk_mq_get_driver_tag() and blk_mq_mark_tag_wait().

The 3rd patch fixes one race between adding hctx->dispatch_wait to wq and removing it from wq.

The 4th patch avoids to iterate on all queues which share same tags after completing one request, so that we can kill the synchronize_rcu() in patch of queue cleanup, then long delay can be avoided during SCSI LUN probe. Meantime IO performance can be improved.

The 5th patch avoids to synchronizing rcu in blk_cleanup_queue() when queue isn't initialized, so long delay can be avoided during SCSI LUN probe too.

Ming Lei (5):
blk-mq: cleanup blk_mq_get_driver_tag()
blk-mq: don't pass **hctx to blk_mq_mark_tag_wait()
blk-mq: introduce new lock for protecting hctx->dispatch_wait
blk-mq: remove synchronize_rcu() from blk_mq_del_queue_tag_set()
blk-mq: avoid to synchronize rcu inside blk_cleanup_queue()

 block/blk-core.c       |  8 +++--
 block/blk-mq-sched.c   | 85 +++-----------------------------------------------
 block/blk-mq.c         | 68 +++++++++++++++++++---------------------
 block/blk-mq.h         |  3 +-
 include/linux/blk-mq.h |  1 +
 include/linux/blkdev.h |  2 --
 6 files changed, 45 insertions(+), 122 deletions(-)
Cc Omar Sandoval <[email protected]>
Cc Andrew Jones <[email protected]>
Cc Bart Van Assche <[email protected]>
Cc "Martin K. Petersen" <[email protected]>
Cc Christoph Hellwig <[email protected]>
Signature · 1 line
2.9.5