public inbox for linux-block@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH V2 0/3] block: fix lock dependency between freeze and elevator lock
@ 2025-04-03  2:52 Ming Lei
  2025-04-03  2:52 ` [PATCH V2 1/3] block: add blk_mq_enter_no_io() and blk_mq_exit_no_io() Ming Lei
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Ming Lei @ 2025-04-03  2:52 UTC (permalink / raw)
  To: Jens Axboe, linux-block
  Cc: Valdis Klētnieks, Nilay Shroff, Christoph Hellwig, Ming Lei

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(-)

-- 
2.47.0


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-04-03 10:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-03  2:52 [PATCH V2 0/3] block: fix lock dependency between freeze and elevator lock Ming Lei
2025-04-03  2:52 ` [PATCH V2 1/3] block: add blk_mq_enter_no_io() and blk_mq_exit_no_io() Ming Lei
2025-04-03  5:44   ` Christoph Hellwig
2025-04-03 10:22     ` Ming Lei
2025-04-03  2:52 ` [PATCH V2 2/3] block: don't call freeze queue in elevator_switch() and elevator_disable() Ming Lei
2025-04-03  5:36   ` Christoph Hellwig
2025-04-03  2:52 ` [PATCH V2 3/3] block: use blk_mq_no_io() for avoiding lock dependency Ming Lei
2025-04-03  5:44   ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox