Skip to content

Move fabric configfs memory release to configfs_item_operations->release()

Nicholas A. Bellinger linux-scsi 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5target: Move fabric dependent struct se_wwn free into ->release() callbackdrivers/target/target_core_fabric_configfs.c+15 -70 replies
2/5target: Move fabric dependent se_portal_group free into ->release() callbackdrivers/target/target_core_fabric_configfs.c+11 -30 replies
3/5target: Move fabric dependent se_node_acl free into ->release callback()drivers/target/target_core_fabric_configfs.c+14 -50 replies
4/5target: Move fabric dependent struct se_tpg_np free into ->release() callbackdrivers/target/target_core_fabric_configfs.c include/target/target_core_base.h+16 -70 replies
5/5target: Move fabric independent se_lun_acl free into ->release() callbackdrivers/target/target_core_fabric_configfs.c+13 -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/5] Move fabric configfs memory release to configfs_item_operations->release()

From: Nicholas Bellinger <[email protected]>

Greetings all,

This followup series addresses five scenarios in generic target_core_fabric_configfs.c code where config_item_put() being called upon the following fabric groups with struct configfs_group_operations->drop_item() directly releasing struct config_group memory is causing a number of SLUB 'Poison overwritten' warnings during testing with .38-rc2.

	struct se_wwn->wwn_group

	struct se_portal_group->tpg_group

	struct se_node_acl->acl_group

	struct se_tpg_np->tpg_np_group

	struct se_lun_acl->se_lun_group

As with the earlier series, these patches address the issue by using moving existing release logic of the parent structures containing a struct config_group into their own seperate struct configfs_item_operations->release() callbacks.

The first four patches are for struct target_core_fabric_ops cases where se_wwn, se_portal_group, se_node_acl and se_tpg_np memory is presented from target fabric module memory. The fifth patch is for struct se_lun_acl memory which is internal to target_core_fabric_configfs.c and not accessed directly by target fabric module code.

These patches resolve the existing slub_debug=FPUZ warnings/errors that I have encountered with generic /sys/kernel/config/target/$FABRIC_MOD ops, so please test, review and comment.

Thanks!

Nicholas Bellinger (5):
target: Move fabric dependent struct se_wwn free into ->release()
callback
target: Move fabric dependent se_portal_group free into ->release()
callback
target: Move fabric dependent se_node_acl free into ->release
callback()
target: Move fabric dependent struct se_tpg_np free into ->release()
callback
target: Move fabric independent se_lun_acl free into ->release()
callback

 drivers/target/target_core_fabric_configfs.c |   93 +++++++++++++++++++-------
 include/target/target_core_base.h            |    1 +
 2 files changed, 69 insertions(+), 25 deletions(-)