Skip to content

nvme: Convert tag_list mutex to rwsemaphore to avoid deadlock

Mohamed Khalfella linux-block linux-nvme lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest1 patch 19 repliesIn review
  2. v11 patch 8 repliesSuperseded

Changes in v2 from the cover letter

- Keep existing behavior do not freeze newly added "q" when transitioning tagset from unshared to shared.
- Delete blk_mq_update_tag_set_shared() and explicitly freeze "firstq" and "q" and set their shared status.
- Add comment explaining why we are downgrading the semaphore before freezing "firstq".

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1nvme: Convert tag_list mutex to rwsemaphore to avoid deadlockblock/blk-mq-sysfs.c block/blk-mq.c include/linux/blk-mq.h+58 -5119 replies

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchMing LeiSagi Grimberg
1/1R-b R-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/1] nvme: Convert tag_list mutex to rwsemaphore to avoid deadlock

Changes from v1:

- Keep existing behavior do not freeze newly added "q" when transitioning tagset from unshared to shared.
- Delete blk_mq_update_tag_set_shared() and explicitly freeze "firstq" and "q" and set their shared status.
- Add comment explaining why we are downgrading the semaphore before freezing "firstq".

v1: https://lore.kernel.org/all/[email protected]/

Mohamed Khalfella (1):
nvme: Convert tag_list mutex to rwsemaphore to avoid deadlock

 block/blk-mq-sysfs.c   | 10 ++---
 block/blk-mq.c         | 95 +++++++++++++++++++++++-------------------
 include/linux/blk-mq.h |  4 +-
 3 files changed, 58 insertions(+), 51 deletions(-)
Signature · 1 line
2.51.0