Skip to content

ufs: core: fix ufshcd_abort_all racing issue

[email protected] linux-mediatek linux-scsi stable 3 versions – Applied

Status from this message: Applied to 6.10/scsi-fixes, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 3 repliesApplied
  2. v21 patch 12 repliesSuperseded
  3. v11 patch 2 repliesSuperseded

Changes in v3 from the cover letter

- Modify ufshcd_mcq_req_to_hwq to distinguish cmd is completed or not
- Split two patches and add more race description.

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2ufs: core: fix ufshcd_clear_cmd racing issuedrivers/ufs/core/ufs-mcq.c+6 -51 reply
2/2ufs: core: fix ufshcd_abort_one racing issuedrivers/ufs/core/ufshcd.c+2 -01 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchBart Van Assche
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/2] ufs: core: fix ufshcd_abort_all racing issue

From: Peter Wang <[email protected]>

This series fixes race condition KE in ufshcd_err_handler, which call ufshcd_abort_all abort an already completed request by ISR in MCQ mode.

V3:
- Modify ufshcd_mcq_req_to_hwq to distinguish cmd is completed or not
- Split two patches and add more race description.

V2:
- Change patch description and add Fixes/Cc tag

Peter Wang (2):
ufs: core: fix ufshcd_clear_cmd racing issue
ufs: core: fix ufshcd_abort_one racing issue

 drivers/ufs/core/ufs-mcq.c | 11 ++++++-----
 drivers/ufs/core/ufshcd.c  |  2 ++
 2 files changed, 8 insertions(+), 5 deletions(-)
Signature · 1 line
2.18.0