linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] target: Move backend memory release to configfs_item_operations->release()
@ 2011-02-02  8:26 Nicholas A. Bellinger
  2011-02-02  8:26 ` [PATCH 1/4] target: Move core_delete_hba() into ->release() callback Nicholas A. Bellinger
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Nicholas A. Bellinger @ 2011-02-02  8:26 UTC (permalink / raw)
  To: linux-scsi; +Cc: Christoph Hellwig, Joel Becker, Fubo Chen, Nicholas Bellinger

From: Nicholas Bellinger <nab@linux-iscsi.org>

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,

Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>

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


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

end of thread, other threads:[~2011-02-05 23:18 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-02  8:26 [PATCH 0/4] target: Move backend memory release to configfs_item_operations->release() Nicholas A. Bellinger
2011-02-02  8:26 ` [PATCH 1/4] target: Move core_delete_hba() into ->release() callback Nicholas A. Bellinger
2011-02-02  8:26 ` [PATCH 2/4] target: Move subdev release logic " Nicholas A. Bellinger
2011-02-03 19:48   ` Fubo Chen
2011-02-03 21:19     ` Nicholas A. Bellinger
2011-02-05  9:16       ` Fubo Chen
2011-02-05 23:18         ` Nicholas A. Bellinger
2011-02-02  8:26 ` [PATCH 3/4] target: Move core_alua_free_lu_gp() " Nicholas A. Bellinger
2011-02-02  8:26 ` [PATCH 4/4] target: Move core_alua_free_tg_pt_gp() " Nicholas A. Bellinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).