]> git.baikalelectronics.ru Git - kernel.git/commit
target: Move dev_cit to struct se_subsystem_api
authorNicholas Bellinger <nab@linux-iscsi.org>
Thu, 27 Nov 2014 21:59:20 +0000 (13:59 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 2 Dec 2014 05:35:22 +0000 (21:35 -0800)
commit8bc6f4040245c9c7e274da3b57af420610c64362
treec40004c13e5e3b107d491a909a543461c65f6197
parent6eb3f8ff011df88b6513cb41769ee1703a84623d
target: Move dev_cit to struct se_subsystem_api

This patch adds initial support for dev_cit as external config_item_type.

This includes a new struct target_backend_cits to hold the external CITs
within struct se_subsystem_api, and target_core_setup_sub_cits() to be
used by backend drivers ahead of transport_subsystem_register().

It adds a TB_CIT_SETUP() helper following target_core_fabric_configfs.c
to perform the config_item_type assignments.

Also, drop left-over target_core_dev_cit from target_core_configfs.c code
and update comments.

Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_configfs.c
drivers/target/target_core_hba.c
include/target/target_core_backend.h