Skip to content

target: make tpg/enable attribute

Dmitry Bogdanov linux-scsi target-devel 5 versions – Applied

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest7 patches 6 repliesApplied
  2. v47 patches 2 repliesSuperseded
  3. v37 patches 1 replySuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v27 patches5 repliesSuperseded
v14 patches2 repliesSuperseded

Changes in v5 from the cover letter

rebase on 5.15/scsi-queue

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/7target: core: add common tpg/enable attributedrivers/target/target_core_configfs.c drivers/target/target_core_fabric_configfs.c include/target/target_core_base.h +1 more+79 -22 replies
2/7target: iscsi: replace enable attr to ops.enabledrivers/target/iscsi/iscsi_target_configfs.c+32 -590 replies
3/7target: qla2xx: replace enable attr to ops.enabledrivers/scsi/qla2xxx/tcm_qla2xxx.c+12 -610 replies
4/7target: sbp: replace enable attr to ops.enabledrivers/target/sbp/sbp_target.c+5 -250 replies
5/7target: srpt replace enable attr to ops.enabledrivers/infiniband/ulp/srpt/ib_srpt.c+4 -341 reply
6/7target: ibm_vscsi: replace enable attr to ops.enabledrivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c+4 -380 replies
7/7target: usb: replace enable attr to ops.enabledrivers/usb/gadget/function/f_tcm.c+6 -250 replies

Reviews trailers per patch

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

PatchRoman BolshakovBart Van AsscheMike Christie
SeriesR-b
1/7R-b
2/7R-b
3/7R-b
4/7R-b R-b
5/7R-b R-b
6/7R-b
7/7R-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 3 reviewers.

Read the v5 thread

Cover letter [PATCH v5 0/7] target: make tpg/enable attribute

Many fabric modules provide their own implementation of enable attribute in tpg.
The change set removes the code duplication and automatically adds "enable" attribute for fabric modules that has an implementation of fabric_enable_tpg() ops.

This patchset is intended for scsi-queue.

v5:
rebase on 5.15/scsi-queue
v4:
fix compilation error and warning
v3:
refactor tfc_tpg_base_attrs creation
avoid alloc of attrs if there are no attributes fix newlines
move enable attribute to target_core_fabric_configfs.c
v2:
create enable atribute only for modules with enable_tpg ops add patches for srpt, usb and ibmvscsi

Dmitry Bogdanov (7):
target: core: add common tpg/enable attribute
target: iscsi: replace enable attr to ops.enable
target: qla2xx: replace enable attr to ops.enable
target: sbp: replace enable attr to ops.enable
target: srpt replace enable attr to ops.enable
target: ibm_vscsi: replace enable attr to ops.enable
target: usb: replace enable attr to ops.enable

 drivers/infiniband/ulp/srpt/ib_srpt.c        | 38 +-------
 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c     | 42 +--------
 drivers/scsi/qla2xxx/tcm_qla2xxx.c           | 73 +++-------------
 drivers/target/iscsi/iscsi_target_configfs.c | 91 +++++++-------------
 drivers/target/sbp/sbp_target.c              | 30 ++-----
 drivers/target/target_core_configfs.c        |  1 +
 drivers/target/target_core_fabric_configfs.c | 78 ++++++++++++++++-
 drivers/usb/gadget/function/f_tcm.c          | 31 ++-----
 include/target/target_core_base.h            |  1 +
 include/target/target_core_fabric.h          |  1 +
 10 files changed, 142 insertions(+), 244 deletions(-)
Signature · 1 line
2.25.1