linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] Fix a deadlock related to modifying queue attributes
@ 2025-07-02 18:24 Bart Van Assche
  2025-07-02 18:24 ` [PATCH 1/3] block: Remove queue freezing from several sysfs store callbacks Bart Van Assche
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Bart Van Assche @ 2025-07-02 18:24 UTC (permalink / raw)
  To: Jens Axboe; +Cc: linux-block, Christoph Hellwig, Bart Van Assche

Hi Jens,

In kernel v6.11 code was introduced in the sysfs store callbacks for freezing
and unfreezing the request queue. This may cause a deadlock in combination with
dm-multipath devices and the queue_if_no_path option. This patch series modifies
the block layer sysfs store callbacks as follows:
 - Remove the request queue freeze / unfreeze calls from the block layer sysfs
   store callbacks if it is safe to do so.
 - For the sysfs attributes for which it is not safe to remove the queue
   freeze / unfreeze calls, fail the sysfs write operation if freezing the
   request queue takes longer than expected.

Please consider this patch series for the next merge window.

Thanks,

Bart.

Bart Van Assche (3):
  block: Remove queue freezing from several sysfs store callbacks
  block: Restrict the duration of sysfs attribute changes
  block: Move a misplaced comment in queue_wb_lat_store()

 block/blk-mq.c         | 14 +++++++++++++
 block/blk-settings.c   | 32 ++++++++++++++++++++++++++++++
 block/blk-sysfs.c      | 45 ++++++++++++++++--------------------------
 include/linux/blk-mq.h |  2 ++
 include/linux/blkdev.h |  2 ++
 5 files changed, 67 insertions(+), 28 deletions(-)


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

end of thread, other threads:[~2025-07-10 19:29 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-02 18:24 [PATCH 0/3] Fix a deadlock related to modifying queue attributes Bart Van Assche
2025-07-02 18:24 ` [PATCH 1/3] block: Remove queue freezing from several sysfs store callbacks Bart Van Assche
2025-07-03  2:08   ` Ming Lei
2025-07-03  9:06     ` Christoph Hellwig
2025-07-02 18:24 ` [PATCH 2/3] block: Restrict the duration of sysfs attribute changes Bart Van Assche
2025-07-03  9:07   ` Christoph Hellwig
2025-07-03 14:54   ` Nilay Shroff
2025-07-02 18:24 ` [PATCH 3/3] block: Move a misplaced comment in queue_wb_lat_store() Bart Van Assche
2025-07-03  9:09 ` [PATCH 0/3] Fix a deadlock related to modifying queue attributes Christoph Hellwig
2025-07-07 18:35   ` Bart Van Assche
2025-07-08  9:57     ` Christoph Hellwig
2025-07-08 16:11       ` Bart Van Assche
2025-07-10  8:03         ` Christoph Hellwig
2025-07-10 19:29           ` Bart Van Assche
2025-07-08 17:16       ` Bart Van Assche

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).