Skip to content

block: fix lock dependency between freeze and elevator lock

Ming Lei linux-block 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 4 repliesIn review
  2. v13 patches 5 repliesSuperseded

Changes in v2 from the cover letter

- modeling lockdep for blk_mq_enter_no_io() and blk_mq_exit_no_io() (Nilay)
- fixes no_io check
- improve commit log
- add reviewed-by

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3block: add blk_mq_enter_no_io() and blk_mq_exit_no_io()block/blk-core.c block/blk-mq.c block/blk-mq.h +2 more+59 -62 replies
2/3block: don't call freeze queue in elevator_switch() and elevator_disable()block/elevator.c+0 -71 reply
3/3block: use blk_mq_no_io() for avoiding lock dependencyblock/blk-mq.c block/blk-sysfs.c block/elevator.c+8 -111 reply

Reviews trailers per patch

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

PatchNilay Shroff
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 v2 thread

Cover letter [PATCH V2 0/3] block: fix lock dependency between freeze and elevator lock

Hello Jens,

This patchset adds two pair of block internal APIs for addressing recent lockdep report between freeze and elevator lock.

Thanks,
Ming

V2:
- modeling lockdep for blk_mq_enter_no_io() and blk_mq_exit_no_io() (Nilay)
- fixes no_io check
- improve commit log
- add reviewed-by

Ming Lei (3):
block: add blk_mq_enter_no_io() and blk_mq_exit_no_io()
block: don't call freeze queue in elevator_switch() and
elevator_disable()
block: use blk_mq_no_io() for avoiding lock dependency

 block/blk-core.c       |  6 ++++--
 block/blk-mq.c         | 34 +++++++++++++++++++++++++++-------
 block/blk-mq.h         | 19 +++++++++++++++++++
 block/blk-sysfs.c      |  8 ++++----
 block/blk.h            |  5 +++--
 block/elevator.c       | 11 ++---------
 include/linux/blkdev.h |  8 ++++++++
 7 files changed, 67 insertions(+), 24 deletions(-)
Signature · 1 line
2.47.0