Skip to content

blk-mq: three misc patches

Ming Lei linux-block 3 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 2 repliesApplied
  2. v23 patches 2 repliesSuperseded
  3. v13 patches 3 repliesSuperseded

Changes in v3 from the cover letter

- clear QUEUE_FLAG_SQ_SCHED for none & kyber explicitly

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/3blk-mq: protect q->elevator by ->sysfs_lock in blk_mq_elv_switch_noneblock/blk-mq.c+3 -10 replies
2/3blk-mq: avoid to touch q->elevator without any protectionblock/bfq-iosched.c block/blk-mq-sched.c block/blk-mq.c +3 more+13 -191 reply
3/3blk-mq: don't clear flush_rq from tags->rqs[]block/blk-mq.c+3 -20 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchChristoph Hellwig
1/3R-b
2/3R-b
3/3R-b

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

Read the v3 thread

Cover letter [PATCH V3 0/3] blk-mq: three misc patches

Hello Guys,

The 1st two patches make referring to q->elevator more reliable, and avoid potential use-after-free on q->elevator in two code paths.

The 3rd patch improves boot time for scsi host with lots of hw queues.

V3:
- clear QUEUE_FLAG_SQ_SCHED for none & kyber explicitly

V2:
- follow Christoph's suggestion to set QUEUE_FLAG_SQ_SCHED inside mq-deadline and bfq directly

Ming Lei (3):
blk-mq: protect q->elevator by ->sysfs_lock in blk_mq_elv_switch_none
blk-mq: avoid to touch q->elevator without any protection
blk-mq: don't clear flush_rq from tags->rqs[]

 block/bfq-iosched.c    |  3 +++
 block/blk-mq-sched.c   |  1 +
 block/blk-mq.c         | 27 ++++++++-------------------
 block/kyber-iosched.c  |  3 ++-
 block/mq-deadline.c    |  3 +++
 include/linux/blkdev.h |  4 ++--
 6 files changed, 19 insertions(+), 22 deletions(-)
Signature · 1 line
2.31.1