Skip to content

block: remove unnecessary RESTART

Ming Lei linux-block 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 40 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2blk-mq: don't handle TAG_SHARED in restartblock/blk-mq-sched.c+4 -740 replies
2/2blk-mq: don't restart queue when .get_budget returns BLK_STS_RESOURCEblock/blk-mq-sched.c block/blk-mq-sched.h block/blk-mq.c+23 -320 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH V2 0/2] block: remove unnecessary RESTART

Hi Jens,

The 1st patch removes the RESTART for TAG-SHARED because SCSI handles it by itself, and not necessary to waste CPU to do the expensive RESTART. And Roman Pen reported that this RESTART cuts half of IOPS in his case.

The 2nd patch removes the RESTART when .get_budget returns BLK_STS_RESOURCE, and this RESTART is handled by SCSI's RESTART(scsi_end_request()) too.

Ming Lei (2):
blk-mq: don't handle TAG_SHARED in restart
blk-mq: don't restart queue when .get_budget returns BLK_STS_RESOURCE

 block/blk-mq-sched.c | 123 ++++-----------------------------------------
 block/blk-mq-sched.h |   2 +-
 block/blk-mq.c       |   8 +---
 3 files changed, 27 insertions(+), 106 deletions(-)
Signature · 1 line
2.9.5