Skip to content

target: Move backend memory release to configfs_item_operations->release()

Nicholas A. Bellinger linux-scsi 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4target: Move core_delete_hba() into ->release() callbackdrivers/target/target_core_configfs.c+12 -30 replies
2/4target: Move subdev release logic into ->release() callbackdrivers/target/target_core_configfs.c+31 -334 replies
3/4target: Move core_alua_free_lu_gp() into ->release() callbackdrivers/target/target_core_configfs.c+13 -20 replies
4/4target: Move core_alua_free_tg_pt_gp() into ->release() callbackdrivers/target/target_core_configfs.c+17 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] target: Move backend memory release to configfs_item_operations->release()

From: Nicholas Bellinger <[email protected]>

Greetings all,

This series addresses four scenarios in backend HBA/DEV target_core_configfs.c code where config_item_put() being called upon the following TCM config_groups:

	struct se_hba->hba_group

	struct se_subsystem_dev->se_dev_group

	struct t10_alua_lu_gp->lu_gp_group

	struct t10_alua_tg_pt_gp->tg_pt_gp_group

and subsequently releasing memory of these four parent TCM data structures is causing a number of SLUB 'Poison overwritten' warnings during slub_debug=FPUZ testing with .38-rc2 code.

This series addresses the issue by using moving existing release logic of the parent structure containing a struct_config_group into it's own seperate struct configfs_item_operations->release() callback.

Please review and comment,

Nicholas Bellinger (4):
target: Move core_delete_hba() into ->release() callback
target: Move subdev release logic into ->release() callback
target: Move core_alua_free_lu_gp() into ->release() callback
target: Move core_alua_free_tg_pt_gp() into ->release() callback

 drivers/target/target_core_configfs.c |  114 +++++++++++++++++++++------------
 1 files changed, 73 insertions(+), 41 deletions(-)