summaryrefslogtreecommitdiff
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 20:55:45 -0800
commitc87fbd5656f263f0fc1c37d20f402797c068232e (patch)
treeaf83a409d4ba234cf0f67419e48d5588423d05ad /include/target
parentd977f4377fbc396b888e12fdb3b13118b09ca7db (diff)
downloadlinux-3.10-c87fbd5656f263f0fc1c37d20f402797c068232e.tar.gz
linux-3.10-c87fbd5656f263f0fc1c37d20f402797c068232e.tar.bz2
linux-3.10-c87fbd5656f263f0fc1c37d20f402797c068232e.zip
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 892a93dec19..11b0a68dc76 100644
--- a/include/target/target_core_base.h
+++ b/include/target/target_core_base.h
@@ -221,16 +221,6 @@ enum tcm_tmrsp_table {
};
/*
- * Used by TCM Core internally to signal if ALUA emulation is enabled or
- * disabled, or running in with TCM/pSCSI passthrough mode
- */
-typedef enum {
- SPC_ALUA_PASSTHROUGH,
- SPC2_ALUA_DISABLED,
- SPC3_ALUA_EMULATED
-} t10_alua_index_t;
-
-/*
* Used for target SCSI statistics
*/
typedef enum {
@@ -243,7 +233,6 @@ typedef enum {
struct se_cmd;
struct t10_alua {
- t10_alua_index_t alua_type;
/* ALUA Target Port Group ID */
u16 alua_tg_pt_gps_counter;
u32 alua_tg_pt_gps_count;
@@ -253,7 +242,6 @@ struct t10_alua {
struct t10_alua_tg_pt_gp *default_tg_pt_gp;
/* Used for default ALUA Target Port Group ConfigFS group */
struct config_group alua_tg_pt_gps_group;
- int (*alua_state_check)(struct se_cmd *, unsigned char *, u8 *);
struct list_head tg_pt_gps_list;
};
@@ -605,7 +593,6 @@ struct se_dev_attrib {
int emulate_tas;
int emulate_tpu;
int emulate_tpws;
- int emulate_alua;
int enforce_pr_isids;
int is_nonrot;
int emulate_rest_reord;