All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 0/7] target: make tpg/enable attribute
@ 2021-09-10  8:41 Dmitry Bogdanov
  2021-09-10  8:41 ` [PATCH v5 1/7] target: core: add common " Dmitry Bogdanov
                   ` (8 more replies)
  0 siblings, 9 replies; 14+ messages in thread
From: Dmitry Bogdanov @ 2021-09-10  8:41 UTC (permalink / raw)
  To: Martin Petersen, target-devel
  Cc: linux-scsi, linux, Nilesh Javali, Chris Boot, Bart Van Assche,
	Michael Cyr, Felipe Balbi, Dmitriy Bogdanov, Roman Bolshakov

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(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2021-10-12 20:35 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-10  8:41 [PATCH v5 0/7] target: make tpg/enable attribute Dmitry Bogdanov
2021-09-10  8:41 ` [PATCH v5 1/7] target: core: add common " Dmitry Bogdanov
2021-09-15 18:00   ` Bodo Stroesser
2021-09-16  8:30     ` Dmitriy Bogdanov
2021-09-10  8:41 ` [PATCH v5 2/7] target: iscsi: replace enable attr to ops.enable Dmitry Bogdanov
2021-09-10  8:41 ` [PATCH v5 3/7] target: qla2xx: " Dmitry Bogdanov
2021-09-10  8:41 ` [PATCH v5 4/7] target: sbp: " Dmitry Bogdanov
2021-09-10  8:41 ` [PATCH v5 5/7] target: srpt " Dmitry Bogdanov
2021-09-11  2:40   ` Bart Van Assche
2021-09-10  8:41 ` [PATCH v5 6/7] target: ibm_vscsi: " Dmitry Bogdanov
2021-09-10  8:41 ` [PATCH v5 7/7] target: usb: " Dmitry Bogdanov
2021-09-30 20:46 ` [PATCH v5 0/7] target: make tpg/enable attribute Mike Christie
2021-10-05  3:28   ` Martin K. Petersen
2021-10-12 20:35 ` Martin K. Petersen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.