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

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.

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        |  3 +-
 drivers/target/target_core_fabric_configfs.c | 76 +++++++++++++++-
 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, 141 insertions(+), 245 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2021-04-15 21:34 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-09 12:32 [PATCH v3 0/7] target: make tpg/enable attribute Dmitry Bogdanov
2021-04-09 12:32 ` [PATCH v3 1/7] target: core: add common " Dmitry Bogdanov
2021-04-09 18:48   ` kernel test robot
2021-04-09 18:48     ` kernel test robot
2021-04-09 18:54   ` kernel test robot
2021-04-09 18:54     ` kernel test robot
2021-04-09 12:32 ` [PATCH v3 2/7] target: iscsi: replace enable attr to ops.enable Dmitry Bogdanov
2021-04-09 12:32 ` [PATCH v3 3/7] target: qla2xx: " Dmitry Bogdanov
2021-04-09 12:32 ` [PATCH v3 4/7] target: sbp: " Dmitry Bogdanov
2021-04-09 12:32 ` [PATCH v3 5/7] target: srpt " Dmitry Bogdanov
2021-04-09 12:32 ` [PATCH v3 6/7] target: ibm_vscsi: " Dmitry Bogdanov
2021-04-09 12:32 ` [PATCH v3 7/7] target: usb: " Dmitry Bogdanov
2021-04-09 18:15   ` kernel test robot
2021-04-09 18:15     ` kernel test robot
2021-04-15 21:34 ` [PATCH v3 0/7] target: make tpg/enable attribute michael.christie

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.