Skip to content

target patches for .39 scsi-misc (v3)

Nicholas A. Bellinger linux-scsi lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest21 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/21target: Fix memory leak on error path in pscsi_alloc_taskdrivers/target/target_core_pscsi.c+1 -00 replies
2/21target: Fix match_strdup() memory leaksdrivers/target/target_core_configfs.c drivers/target/target_core_file.c drivers/target/target_core_iblock.c+52 -70 replies
3/21target: tcm_mod_builder.py generated Makefile cleanupsDocumentation/target/tcm_mod_builder.py+8 -90 replies
4/21target: remove EXTRA_CFLAGSdrivers/target/Makefile+0 -10 replies
5/21target: Convert backend ->create_virtdevice() call to return ERR_PTRdrivers/target/target_core_configfs.c drivers/target/target_core_file.c drivers/target/target_core_iblock.c +2 more+34 -240 replies
6/21target: Remove unnecessary hba_dev_list walk and se_clear_dev_ports legacy codedrivers/target/target_core_device.c drivers/target/target_core_hba.c+4 -500 replies
7/21target: Minor sparse warning fixes and annotationsdrivers/target/target_core_device.c drivers/target/target_core_fabric_lib.c drivers/target/target_core_pscsi.c +5 more+18 -130 replies
8/21target: Remove spurious double cast from structure macro accessorsinclude/target/target_core_base.h+11 -110 replies
9/21target: Convert rd_build_device_space() to use errnodrivers/target/target_core_rd.c+7 -80 replies
10/21target: Convert TMR REQ/RSP definitions to target namespacedrivers/target/target_core_transport.c include/target/target_core_tmr.h+29 -420 replies
11/21target: Avoid mem leak and needless work in transport_generic_get_memdrivers/target/target_core_transport.c+6 -30 replies
12/21target: Fix bogus return in transport_add_device_to_core_hba failure pathdrivers/target/target_core_transport.c+2 -30 replies
13/21target: Fix generated *_drop_nodeacl() handler in tcm_mod_builder.pyDocumentation/target/tcm_mod_builder.py+1 -00 replies
14/21target: Fix FILEIO fd_buffered_io= token typodrivers/target/target_core_file.c+1 -10 replies
15/21target: Add __init/__exit annotation for target_core_[init,exit]_configfsdrivers/target/target_core_configfs.c+2 -20 replies
16/21target core v4.0.0-rc7-mlinclude/target/target_core_base.h+1 -10 replies
17/21target: add initial device backend context target_core_stat.c codedrivers/target/Makefile drivers/target/target_core_configfs.c drivers/target/target_core_stat.c +2 more+768 -110 replies
18/21target: add initial fabric port context target_core_stat.c codedrivers/target/target_core_fabric_configfs.c drivers/target/target_core_stat.c drivers/target/target_core_stat.h +2 more+636 -40 replies
19/21target: add initial fabric MappedLUN context target_core_stat.c codedrivers/target/target_core_fabric_configfs.c drivers/target/target_core_stat.c drivers/target/target_core_stat.h +2 more+671 -10 replies
20/21target: Add fabric_stat_group for fabric module statistics default_groupdrivers/target/target_core_fabric_configfs.c include/target/target_core_base.h include/target/target_core_configfs.h+52 -20 replies
21/21tcm_loop: Add multi-fabric Linux/SCSI LLD fabric moduledrivers/target/Kconfig drivers/target/Makefile drivers/target/tcm_loop/Kconfig +5 more+1851 -04 replies

Reviews trailers per patch

1 of 21 patches has a Reviewed-by or Acked-by.

PatchChristoph Hellwig
1/21
2/21
3/21
4/21
5/21
6/21
7/21
8/21
9/21
10/21
11/21
12/21
13/21
14/21
15/21
16/21
17/21
18/21
19/21
20/21
21/21R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/21] target patches for .39 scsi-misc (v3)

From: Nicholas Bellinger <[email protected]>

Hi James and Co,

This is an updated 'for-39' target series consisting of the two previous series posted here:

[PATCH 00/14] target patches for .39 scsi-misc (v2)
http://marc.info/?l=linux-scsi&m=129866341626173&w=2

[PATCH 0/5] target updates for scsi-post-merge .39 (round one)
http://marc.info/?l=linux-scsi&m=129887410814785&w=2

This series contains a few new minor fixes that have reported to linux-scsi in the last week since the original posting. The most interesting pieces of this series are the new configfs based statistics groups and first mainline target fabric module (TCM_Loop). The breakdown consists of:

Patches #1 -> #16 are non critical bugfixes and minor improvements from .38 that have been queued as .39 misc items upon your request.

Patches #17 -> #20 involve the addition of new ConfigFS context based statistics groups in target_core_stat.c following RFC-4455 to address the removal of the legacy ProcFS based target_core_mib.c in .38 code.

And patch #21 adds the TCM_Loop virtual SCSI LLD module that was originally reviewed and intended for .38 code. This module currently supports high level port emulation for SAS, FC and iSCSI ProtoIdents.

This series is against .38-rc8, and is also available directly here:

git://git.kernel.org/pub/scm/linux/kernel/git/nab/scsi-post-merge-2.6.git for-39-misc-v3

Please review and merge for into scsi-misc headed for mainline .39.

Thanks!

Axel Lin (1):
target: Add __init/__exit annotation for
target_core_[init,exit]_configfs

Christoph Hellwig (1):
target: remove EXTRA_CFLAGS

Dan Carpenter (2):
target: Minor sparse warning fixes and annotations
target: Convert rd_build_device_space() to use errno

Fubo Chen (2):
target: Remove unnecessary hba_dev_list walk and se_clear_dev_ports
legacy code
target: Fix generated *_drop_nodeacl() handler in tcm_mod_builder.py

Jesper Juhl (2):
target: Fix match_strdup() memory leaks
target: Avoid mem leak and needless work in transport_generic_get_mem

Nicholas Bellinger (12):
target: tcm_mod_builder.py generated Makefile cleanups
target: Convert backend ->create_virtdevice() call to return ERR_PTR
target: Remove spurious double cast from structure macro accessors
target: Convert TMR REQ/RSP definitions to target namespace
target: Fix bogus return in transport_add_device_to_core_hba failure
path
target: Fix FILEIO fd_buffered_io= token typo
target core v4.0.0-rc7-ml
target: add initial device backend context target_core_stat.c code
target: add initial fabric port context target_core_stat.c code
target: add initial fabric MappedLUN context target_core_stat.c code
target: Add fabric_stat_group for fabric module statistics
default_group
tcm_loop: Add multi-fabric Linux/SCSI LLD fabric module

Roland Dreier (1):
target: Fix memory leak on error path in pscsi_alloc_task

 Documentation/target/tcm_mod_builder.py        |   18 +-
 drivers/target/Kconfig                         |    2 +
 drivers/target/Makefile                        |    7 +-
 drivers/target/target_core_configfs.c          |  117 ++-
 drivers/target/target_core_device.c            |   40 +-
 drivers/target/target_core_fabric_configfs.c   |  209 +++-
 drivers/target/target_core_fabric_lib.c        |    1 +
 drivers/target/target_core_file.c              |   28 +-
 drivers/target/target_core_hba.c               |   15 +-
 drivers/target/target_core_iblock.c            |   28 +-
 drivers/target/target_core_pscsi.c             |   22 +-
 drivers/target/target_core_rd.c                |   15 +-
 drivers/target/target_core_rd.h                |    2 -
 drivers/target/target_core_stat.c              | 1810 ++++++++++++++++++++++++
 drivers/target/target_core_stat.h              |    8 +
 drivers/target/target_core_transport.c         |   37 +-
 drivers/target/tcm_loop/Kconfig                |   11 +
 drivers/target/tcm_loop/Makefile               |    5 +
 drivers/target/tcm_loop/tcm_loop_configfs.c    |  643 +++++++++
 drivers/target/tcm_loop/tcm_loop_core.h        |  141 ++
 drivers/target/tcm_loop/tcm_loop_fabric.c      |  472 ++++++
 drivers/target/tcm_loop/tcm_loop_fabric_scsi.c |  574 ++++++++
 include/target/target_core_base.h              |   73 +-
 include/target/target_core_configfs.h          |    4 +
 include/target/target_core_fabric_ops.h        |    2 +-
 include/target/target_core_tmr.h               |   52 +-
 include/target/target_core_transport.h         |    4 +
 27 files changed, 4151 insertions(+), 189 deletions(-)
 create mode 100644 drivers/target/target_core_stat.c
 create mode 100644 drivers/target/target_core_stat.h
 create mode 100644 drivers/target/tcm_loop/Kconfig
 create mode 100644 drivers/target/tcm_loop/Makefile
 create mode 100644 drivers/target/tcm_loop/tcm_loop_configfs.c
 create mode 100644 drivers/target/tcm_loop/tcm_loop_core.h
 create mode 100644 drivers/target/tcm_loop/tcm_loop_fabric.c
 create mode 100644 drivers/target/tcm_loop/tcm_loop_fabric_scsi.c
Signature · 1 line
1.7.4.1