Skip to content

blk-mq: fix possible deadlocks

Yu Kuai linux-block lkml oe-lkp 8 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. v9 Latest8 patches 1 replyApplied
  2. v88 patches 10 repliesSuperseded
  3. v716 patches 28 repliesSuperseded
Earlier versions · 5
VersionPostedPatchesRepliesStatus
v613 patches7 repliesSuperseded
v513 patches13 repliesSuperseded
v412 patches5 repliesSuperseded
v310 patches6 repliesSuperseded
v29 patches7 repliesSuperseded

Patches in v9 Applied

#Subject and filesSizeRepliesApplied
1/8blk-wbt: factor out a helper wbt_set_lat()block/blk-sysfs.c block/blk-wbt.c block/blk-wbt.h+51 -450 replies
2/8blk-wbt: fix possible deadlock to nest pcpu_alloc_mutex under q_usage_counterblock/blk-wbt.c+63 -450 replies
3/8blk-mq-debugfs: factor out a helper to register debugfs for all rq_qosblock/blk-mq-debugfs.c block/blk-mq-debugfs.h+20 -80 replies
4/8blk-rq-qos: fix possible debugfs_mutex deadlockblock/blk-rq-qos.c block/blk-wbt.c+12 -80 replies
5/8blk-mq-debugfs: make blk_mq_debugfs_register_rqos() staticblock/blk-mq-debugfs.c block/blk-mq-debugfs.h+1 -60 replies
6/8blk-mq-debugfs: remove blk_mq_debugfs_unregister_rqos()block/blk-mq-debugfs.c block/blk-mq-debugfs.h block/blk-rq-qos.c+0 -180 replies
7/8blk-mq-debugfs: add missing debugfs_mutex in blk_mq_debugfs_register_hctxs()block/blk-mq-debugfs.c+2 -00 replies
8/8blk-mq-debugfs: warn about possible deadlockblock/blk-mq-debugfs.c+24 -70 replies

Reviews trailers per patch

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

PatchMing LeiNilay ShroffHannes Reinecke
1/8R-b R-b R-b
2/8R-b R-b
3/8R-b R-b R-b
4/8R-b R-b R-b
5/8R-b R-b R-b
6/8R-b R-b R-b
7/8R-b R-b R-b
8/8R-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v9 thread

Cover letter [PATCH v9 0/8] blk-mq: fix possible deadlocks

Fix deadlocks:
- patch 1-2, pcpu_alloc_mutex under q_usage_counter in blk-wbt;
- patch 3-8, debugfs_mutex under q_usage_counter;

Yu Kuai (8):
blk-wbt: factor out a helper wbt_set_lat()
blk-wbt: fix possible deadlock to nest pcpu_alloc_mutex under
q_usage_counter
blk-mq-debugfs: factor out a helper to register debugfs for all rq_qos
blk-rq-qos: fix possible debugfs_mutex deadlock
blk-mq-debugfs: make blk_mq_debugfs_register_rqos() static
blk-mq-debugfs: remove blk_mq_debugfs_unregister_rqos()
blk-mq-debugfs: add missing debugfs_mutex in
blk_mq_debugfs_register_hctxs()
blk-mq-debugfs: warn about possible deadlock

 block/blk-mq-debugfs.c |  68 ++++++++++++-------
 block/blk-mq-debugfs.h |   8 +--
 block/blk-rq-qos.c     |  11 ---
 block/blk-sysfs.c      |  39 +----------
 block/blk-wbt.c        | 149 ++++++++++++++++++++++++++++++-----------
 block/blk-wbt.h        |   7 +-
 6 files changed, 159 insertions(+), 123 deletions(-)
Signature · 1 line
2.51.0