linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/3] blk-mq: Fix a race between iterating over requests and freeing requests
@ 2021-03-29  2:00 Bart Van Assche
  2021-03-29  2:00 ` [PATCH v4 1/3] blk-mq: Move the elevator_exit() definition Bart Van Assche
                   ` (6 more replies)
  0 siblings, 7 replies; 12+ messages in thread
From: Bart Van Assche @ 2021-03-29  2:00 UTC (permalink / raw)
  To: Jens Axboe; +Cc: linux-block, Christoph Hellwig, Bart Van Assche

Hi Jens,

This patch series fixes the race between iterating over requests and
freeing requests that has been reported by multiple different users over
the past two years. Please consider this patch series for kernel v5.13.

Thank you,

Bart.

Changes between v3 and v4:
- Fixed support for tag sets shared across hardware queues.
- Renamed blk_mq_wait_for_tag_readers() into blk_mq_wait_for_tag_iter().
- Removed the fourth argument of blk_mq_queue_tag_busy_iter() again.

Changes between v2 and v3:
- Converted the single v2 patch into a series of three patches.
- Switched from SRCU to a combination of RCU and semaphores.

Changes between v1 and v2:
- Reformatted patch description.
- Added Tested-by/Reviewed-by tags.
- Changed srcu_barrier() calls into synchronize_srcu() calls.

Bart Van Assche (3):
  blk-mq: Move the elevator_exit() definition
  blk-mq: Introduce atomic variants of the tag iteration functions
  blk-mq: Fix a race between iterating over requests and freeing
    requests

 block/blk-core.c          | 34 ++++++++++++++++-
 block/blk-mq-tag.c        | 79 ++++++++++++++++++++++++++++++++++-----
 block/blk-mq-tag.h        |  6 ++-
 block/blk-mq.c            | 23 +++++++++---
 block/blk-mq.h            |  1 +
 block/blk.h               | 11 +-----
 block/elevator.c          |  9 +++++
 drivers/scsi/hosts.c      | 16 ++++----
 drivers/scsi/ufs/ufshcd.c |  4 +-
 include/linux/blk-mq.h    |  2 +
 10 files changed, 149 insertions(+), 36 deletions(-)


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

end of thread, other threads:[~2021-04-04  1:11 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-29  2:00 [PATCH v4 0/3] blk-mq: Fix a race between iterating over requests and freeing requests Bart Van Assche
2021-03-29  2:00 ` [PATCH v4 1/3] blk-mq: Move the elevator_exit() definition Bart Van Assche
2021-03-29  2:00 ` [PATCH v4 2/3] blk-mq: Introduce atomic variants of the tag iteration functions Bart Van Assche
2021-03-29  2:00 ` [PATCH v4 3/3] blk-mq: Fix a race between iterating over requests and freeing requests Bart Van Assche
2021-04-02 23:59   ` Khazhy Kumykov
2021-04-03  3:25     ` Bart Van Assche
2021-04-03  3:37       ` Khazhy Kumykov
2021-04-04  1:11         ` Bart Van Assche
2021-03-30 22:30 ` [PATCH v4 0/3] " Bart Van Assche
2021-04-01  0:48 ` Shinichiro Kawasaki
2021-04-01  1:55 ` Martin K. Petersen
2021-04-02 10:00 ` Christoph Hellwig

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