Skip to content

ufs: Let the SCSI core allocate per-command UFS data

Bart Van Assche linux-scsi 2 versions – Applied

Status from this message: Applied to 5.7/scsi-queue. Thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 4 repliesApplied
  2. v14 patches 10 repliesSuperseded

Changes in v2 from the cover letter

- Restored an accidentally removed ufshcd_release() call in an error path in ufshcd_queuecommand().
- Check whether ufshcd_tag_to_lrb() returns a non-NULL pointer in ufshcd_eh_device_reset_handler().

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4Introduce {init,exit}_cmd_priv()drivers/scsi/scsi_lib.c include/scsi/scsi_host.h+26 -60 replies
2/4ufs: Introduce ufshcd_init_lrb()drivers/scsi/ufs/ufshcd.c+22 -160 replies
3/4ufs: Simplify two testsdrivers/scsi/ufs/ufshcd.c+2 -20 replies
4/4ufs: Let the SCSI core allocate per-command UFS datadrivers/scsi/ufs/ufshcd.c drivers/scsi/ufs/ufshcd.h+128 -750 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchAvri AltmanAlim AkhtarAsutosh DasStanley Chu
1/4
2/4R-b R-b
3/4R-b R-b R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/4] ufs: Let the SCSI core allocate per-command UFS data

Hi Martin,

This patch series lets the SCSI core allocate per-command UFS data and hence simplifies and micro-optimizes the UFS driver. Please consider this patch series for the v5.6 kernel.

Thanks,

Bart.

Changes compared to v1:
- Restored an accidentally removed ufshcd_release() call in an error path in ufshcd_queuecommand().
- Check whether ufshcd_tag_to_lrb() returns a non-NULL pointer in ufshcd_eh_device_reset_handler().

Bart Van Assche (4):
Introduce {init,exit}_cmd_priv()
ufs: Introduce ufshcd_init_lrb()
ufs: Simplify two tests
ufs: Let the SCSI core allocate per-command UFS data

 drivers/scsi/scsi_lib.c   |  29 ++++-
 drivers/scsi/ufs/ufshcd.c | 238 ++++++++++++++++++++++++--------------
 drivers/scsi/ufs/ufshcd.h |   5 -
 include/scsi/scsi_host.h  |   3 +
 4 files changed, 177 insertions(+), 98 deletions(-)