Skip to content

blk-mq: quiesce improvement

Ming Lei linux-block linux-nvme linux-scsi lkml llvm oe-kbuild-all oe-lkp 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 3 repliesIn review
  2. v15 patches 22 repliesSuperseded

Changes in v2 from the cover letter

- add patch of 'remove hctx_lock and hctx_unlock'
- replace ->alloc_srcu with queue flag, as suggested by Sagi

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5blk-mq: remove hctx_lock and hctx_unlockblock/blk-mq.c+31 -480 replies
2/5blk-mq: move srcu from blk_mq_hw_ctx to request_queueblock/blk-core.c block/blk-mq-sysfs.c block/blk-mq.c +5 more+53 -490 replies
3/5blk-mq: add helper of blk_mq_shared_quiesce_wait()include/linux/blk-mq.h+13 -00 replies
4/5nvme: quiesce namespace queue in paralleldrivers/nvme/host/core.c+6 -30 replies
5/5scsi: use blk-mq quiesce APIs to implement scsi_host_blockdrivers/scsi/scsi_lib.c+8 -80 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/5] blk-mq: quiesce improvement

Hi Guys,

The 1st patch removes hctx_lock and hctx_unlock, and optimize dispatch code path a bit.

The 2nd patch moves srcu from blk_mq_hw_ctx to request_queue.

The other patches add one new helper for supporting quiesce in parallel.

V2:
- add patch of 'remove hctx_lock and hctx_unlock'
- replace ->alloc_srcu with queue flag, as suggested by Sagi

Ming Lei (5):
blk-mq: remove hctx_lock and hctx_unlock
blk-mq: move srcu from blk_mq_hw_ctx to request_queue
blk-mq: add helper of blk_mq_shared_quiesce_wait()
nvme: quiesce namespace queue in parallel
scsi: use blk-mq quiesce APIs to implement scsi_host_block

 block/blk-core.c         |  27 +++++++--
 block/blk-mq-sysfs.c     |   2 -
 block/blk-mq.c           | 116 +++++++++++++--------------------------
 block/blk-sysfs.c        |   3 +-
 block/blk.h              |  10 +++-
 block/genhd.c            |   2 +-
 drivers/nvme/host/core.c |   9 ++-
 drivers/scsi/scsi_lib.c  |  16 +++---
 include/linux/blk-mq.h   |  21 ++++---
 include/linux/blkdev.h   |   9 +++
 10 files changed, 109 insertions(+), 106 deletions(-)
Signature · 1 line
2.31.1