Skip to content

blk-mq: don't allocate driver tag beforehand for flush rq

Ming Lei linux-block lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest7 patches 3 repliesIn review
  2. v2 posting 2/20 of 7 patches 1 replySuperseded
  3. v2 posting 1/27 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v16 patches5 repliesSuperseded

Changes in v3 from the cover letter

- rebase on the latest for-next of block tree
- clean up commit log and comment
- include Jianchao's fix on put driver tag

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7blk-mq: put the driver tag of nxt rq before first one is requeuedblock/blk-mq.c+9 -100 replies
2/7blk-flush: don't run queue for requests of bypassing flushblock/blk-flush.c+1 -10 replies
3/7block: pass 'run_queue' to blk_mq_request_bypass_insertblock/blk-core.c block/blk-mq.c block/blk-mq.h+5 -40 replies
4/7blk-flush: use blk_mq_request_bypass_insert()block/blk-flush.c+1 -10 replies
5/7blk-mq-sched: decide how to handle flush rq via RQF_FLUSH_SEQblock/blk-mq-sched.c+16 -130 replies
6/7blk-mq: move blk_mq_put_driver_tag*() into blk-mq.hblock/blk-mq.c block/blk-mq.h+33 -320 replies
7/7blk-mq: don't allocate driver tag beforehand for flush rqblock/blk-flush.c block/blk-mq-sched.c block/blk-mq.c+37 -810 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH V3 0/7] blk-mq: don't allocate driver tag beforehand for flush rq

Hi Jens,

This patchset avoids to allocate driver tag beforehand for flush rq in case of I/O scheduler, then flush rq isn't treated specially wrt. get/put driver tag, code gets cleanup much, such as, reorder_tags_to_front() is removed, and we needn't to worry about request order in dispatch list for avoiding I/O deadlock.

'dbench -t 30 -s 64' has been run on different devices(shared tag, multi-queue, singele queue, ...), and no issues are observed, even very low queue depth test are run, debench still works well.

Please consider it for V4.15, thanks!

V3:
- rebase on the latest for-next of block tree
- clean up commit log and comment
- include Jianchao's fix on put driver tag

V2:
- release driver tag before requeue
- warning on inserting a req with driver tag

Jianchao Wang (1):
blk-mq: put the driver tag of nxt rq before first one is requeued

Ming Lei (6):
blk-flush: don't run queue for requests of bypassing flush
block: pass 'run_queue' to blk_mq_request_bypass_insert
blk-flush: use blk_mq_request_bypass_insert()
blk-mq-sched: decide how to handle flush rq via RQF_FLUSH_SEQ
blk-mq: move blk_mq_put_driver_tag*() into blk-mq.h
blk-mq: don't allocate driver tag beforehand for flush rq

 block/blk-core.c     |  2 +-
 block/blk-flush.c    | 37 ++++++++++++++------
 block/blk-mq-sched.c | 63 +++++++++-------------------------
 block/blk-mq.c       | 97 ++++++++++------------------------------------------
 block/blk-mq.h       | 35 ++++++++++++++++++-
 5 files changed, 97 insertions(+), 137 deletions(-)
Signature · 1 line
2.9.5