aboutsummaryrefslogtreecommitdiffstats
path: root/include/target
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2012-10-10 17:37:16 -0400
committerNicholas Bellinger <nab@linux-iscsi.org>2012-11-06 23:55:45 -0500
commitc87fbd5656f263f0fc1c37d20f402797c068232e (patch)
treeaf83a409d4ba234cf0f67419e48d5588423d05ad /include/target
parentd977f4377fbc396b888e12fdb3b13118b09ca7db (diff)
target: simplify alua support
We always support ALUA for virtual backends, and never for physical ones. Simplify the code to just deal with these two cases and remove the superflous abstractions. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'include/target')
-rw-r--r--include/target/target_core_base.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h
index 892a93dec19c..11b0a68dc765 100644
--- a/include/target/target_core_base.h
+++ b/include/target/target_core_base.h
@@ -221,16 +221,6 @@ enum tcm_tmrsp_table {
221}; 221};
222 222
223/* 223/*
224 * Used by TCM Core internally to signal if ALUA emulation is enabled or
225 * disabled, or running in with TCM/pSCSI passthrough mode
226 */
227typedef enum {
228 SPC_ALUA_PASSTHROUGH,
229 SPC2_ALUA_DISABLED,
230 SPC3_ALUA_EMULATED
231} t10_alua_index_t;
232
233/*
234 * Used for target SCSI statistics 224 * Used for target SCSI statistics
235 */ 225 */
236typedef enum { 226typedef enum {
@@ -243,7 +233,6 @@ typedef enum {
243struct se_cmd; 233struct se_cmd;
244 234
245struct t10_alua { 235struct t10_alua {
246 t10_alua_index_t alua_type;
247 /* ALUA Target Port Group ID */ 236 /* ALUA Target Port Group ID */
248 u16 alua_tg_pt_gps_counter; 237 u16 alua_tg_pt_gps_counter;
249 u32 alua_tg_pt_gps_count; 238 u32 alua_tg_pt_gps_count;
@@ -253,7 +242,6 @@ struct t10_alua {
253 struct t10_alua_tg_pt_gp *default_tg_pt_gp; 242 struct t10_alua_tg_pt_gp *default_tg_pt_gp;
254 /* Used for default ALUA Target Port Group ConfigFS group */ 243 /* Used for default ALUA Target Port Group ConfigFS group */
255 struct config_group alua_tg_pt_gps_group; 244 struct config_group alua_tg_pt_gps_group;
256 int (*alua_state_check)(struct se_cmd *, unsigned char *, u8 *);
257 struct list_head tg_pt_gps_list; 245 struct list_head tg_pt_gps_list;
258}; 246};
259 247
@@ -605,7 +593,6 @@ struct se_dev_attrib {
605 int emulate_tas; 593 int emulate_tas;
606 int emulate_tpu; 594 int emulate_tpu;
607 int emulate_tpws; 595 int emulate_tpws;
608 int emulate_alua;
609 int enforce_pr_isids; 596 int enforce_pr_isids;
610 int is_nonrot; 597 int is_nonrot;
611 int emulate_rest_reord; 598 int emulate_rest_reord;