mbox series

[0/3] block: fix lock dependency between freeze and elevator lock

Message ID 20250402043851.946498-1-ming.lei@redhat.com (mailing list archive)
Headers show
Series block: fix lock dependency between freeze and elevator lock | expand

Message

Ming Lei April 2, 2025, 4:38 a.m. UTC
Hello Jens,

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

Thanks,
Ming


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         | 25 ++++++++++++++++++-------
 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, 58 insertions(+), 24 deletions(-)