tmp_suning_uos_patched/drivers/target/tcm_fc
Christoph Hellwig 9ac8928e6a target: simplify the target template registration API
Instead of calling target_fabric_configfs_init() +
target_fabric_configfs_register() / target_fabric_configfs_deregister()
target_fabric_configfs_free() from every target driver, rewrite the API
so that we have simple register/unregister functions that operate on
a const operations vector.

This patch also fixes a memory leak in several target drivers. Several
target drivers namely called target_fabric_configfs_deregister()
without calling target_fabric_configfs_free().

A large part of this patch is based on earlier changes from
Bart Van Assche <bart.vanassche@sandisk.com>.

(v2: Add a new TF_CIT_SETUP_DRV macro so that the core configfs code
can declare attributes as either core only or for drivers)

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
2015-04-14 12:28:41 -07:00
..
Kconfig
Makefile tcm_fc: Makefile cleanups 2011-07-22 09:37:47 +00:00
tcm_fc.h target: simplify the target template registration API 2015-04-14 12:28:41 -07:00
tfc_cmd.c scsi: remove MSG_*_TAG defines 2014-12-04 09:58:33 +01:00
tfc_conf.c target: simplify the target template registration API 2015-04-14 12:28:41 -07:00
tfc_io.c tcm_fc: Generate TASK_SET_FULL status for DataIN failures 2014-06-06 14:20:23 -07:00
tfc_sess.c tcm_fc: Replace rcu_assign_pointer() with RCU_INIT_POINTER() 2014-09-15 14:27:33 -07:00