Skip to content

scsi: Add struct for args to execution functions

Mike Christie linux-scsi 4 versions – Applied

Status from this message: Applied to 6.3/scsi-staging, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest15 patches 2 repliesApplied
  2. v315 patches 12 repliesSuperseded
  3. v215 patches 36 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v115 patches7 repliesSuperseded

Changes in v4 from the cover letter

- Fix patch1's description

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/15scsi: Add struct for args to execution functionsdrivers/scsi/scsi_lib.c include/scsi/scsi_device.h+62 -410 replies
2/15ata: libata-scsi: Convert to scsi_execute_cmddrivers/ata/libata-scsi.c+14 -90 replies
3/15hwmon: drivetemp: Convert to scsi_execute_cmddrivers/hwmon/drivetemp.c+5 -60 replies
4/15scsi: ch: Convert to scsi_execute_cmddrivers/scsi/ch.c+15 -150 replies
5/15scsi: scsi_dh: Convert to scsi_execute_cmddrivers/scsi/device_handler/scsi_dh_alua.c drivers/scsi/device_handler/scsi_dh_emc.c drivers/scsi/device_handler/scsi_dh_hp_sw.c +1 more+45 -280 replies
6/15scsi: core: Convert to scsi_execute_cmddrivers/scsi/scsi.c drivers/scsi/scsi_ioctl.c drivers/scsi/scsi_lib.c +1 more+45 -260 replies
7/15scsi: spi: Convert to scsi_execute_cmddrivers/scsi/scsi_transport_spi.c+15 -160 replies
8/15scsi: sd: Convert to scsi_execute_cmddrivers/scsi/sd.c+55 -280 replies
9/15scsi: zbc: Convert to scsi_execute_cmddrivers/scsi/sd_zbc.c+5 -30 replies
10/15scsi: ses: Convert to scsi_execute_cmddrivers/scsi/ses.c+10 -40 replies
11/15scsi: sr: Convert to scsi_execute_cmddrivers/scsi/sr.c drivers/scsi/sr_ioctl.c+17 -110 replies
12/15scsi: virtio_scsi: Convert to scsi_execute_cmddrivers/scsi/virtio_scsi.c+2 -20 replies
13/15scsi: target_core_pscsi: Convert to scsi_execute_cmddrivers/target/target_core_pscsi.c+5 -70 replies
14/15scsi: cxlflash: Convert to scsi_execute_cmddrivers/scsi/cxlflash/superpipe.c drivers/scsi/cxlflash/vlun.c+34 -320 replies
15/15scsi: Remove scsi_execute_req/scsi_execute functionsinclude/scsi/scsi_device.h+0 -310 replies

Reviews trailers per patch

All 15 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJohn GarryBart Van AsscheDamien Le MoalChristoph Hellwig
SeriesR-b
1/15R-b R-b R-b
2/15R-b R-b A-b
3/15R-b R-b
4/15R-b R-b
5/15R-b R-b
6/15R-b R-b R-b
7/15R-b R-b
8/15R-b R-b R-b
9/15R-b R-b R-b
10/15R-b R-b
11/15R-b R-b R-b
12/15R-b R-b
13/15R-b R-b
14/15R-b R-b
15/15R-b R-b R-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 v4 thread

Cover letter [PATCH v4 00/15] scsi: Add struct for args to execution functions

The following patches were made over Martin's scsi staging/next branch. They add a struct that contains optinal arguments to the scsi_execute* functions. This will be needed for the patches that allow the scsi passthrough users to control retries because I'm adding a new optional argument. I separated the 2 sets to make it easier to review and post.

V4:
- Fix patch1's description

v3:
- Init scsi_exec_args user's sshdr as "sshdr = sshdr ? : local".
- Use just one sense_len check and remove the scsi_execute_args wrapper.
- Just use one scsi_execute_cmd function and have it check if the args is NULL else use a local one.
- Pass exec_args by pointer.

v2:
- Fix RQF_QUIET use.
- Use the more standard way of passing in a struct for passing in the scsi_exec_args struct.
- Pass a struct scsi_exec_args instead of pointer and add another macro for the case the caller doesn't want to pass in a scsi_exec_args struct. Then remove the NULL args check in __scsi_execute.