diff options
author | Hannes Reinecke <hare@suse.de> | 2013-12-17 03:18:49 -0500 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2014-01-10 00:48:17 -0500 |
commit | c66094bf325ee406b92298d73089ee25484a0263 (patch) | |
tree | cfa2fb231dbd3e120ad2d75f96c250c24233978a /drivers/target/target_core_alua.h | |
parent | fbfe858fea2a45df6339eb03dd1715b51f1bdc92 (diff) |
target_core_alua: Referrals infrastructure
Add infrastructure for referrals.
v2 changes:
- Fix unsigned long long division in core_alua_state_lba_dependent on
32-bit (Fengguang + Chen + Hannes)
- Fix compile warning in core_alua_state_lba_dependent (nab)
- Convert segment_* + sectors variables in core_alua_state_lba_dependent
to u64 (Hannes)
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/target_core_alua.h')
-rw-r--r-- | drivers/target/target_core_alua.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/target/target_core_alua.h b/drivers/target/target_core_alua.h index 1a152cd59471..47950cdc6f8b 100644 --- a/drivers/target/target_core_alua.h +++ b/drivers/target/target_core_alua.h | |||
@@ -13,12 +13,13 @@ | |||
13 | /* | 13 | /* |
14 | * ASYMMETRIC ACCESS STATE field | 14 | * ASYMMETRIC ACCESS STATE field |
15 | * | 15 | * |
16 | * from spc4r17 section 6.27 Table 245 | 16 | * from spc4r36j section 6.37 Table 307 |
17 | */ | 17 | */ |
18 | #define ALUA_ACCESS_STATE_ACTIVE_OPTIMIZED 0x0 | 18 | #define ALUA_ACCESS_STATE_ACTIVE_OPTIMIZED 0x0 |
19 | #define ALUA_ACCESS_STATE_ACTIVE_NON_OPTIMIZED 0x1 | 19 | #define ALUA_ACCESS_STATE_ACTIVE_NON_OPTIMIZED 0x1 |
20 | #define ALUA_ACCESS_STATE_STANDBY 0x2 | 20 | #define ALUA_ACCESS_STATE_STANDBY 0x2 |
21 | #define ALUA_ACCESS_STATE_UNAVAILABLE 0x3 | 21 | #define ALUA_ACCESS_STATE_UNAVAILABLE 0x3 |
22 | #define ALUA_ACCESS_STATE_LBA_DEPENDENT 0x4 | ||
22 | #define ALUA_ACCESS_STATE_OFFLINE 0xe | 23 | #define ALUA_ACCESS_STATE_OFFLINE 0xe |
23 | #define ALUA_ACCESS_STATE_TRANSITION 0xf | 24 | #define ALUA_ACCESS_STATE_TRANSITION 0xf |
24 | 25 | ||
@@ -88,6 +89,7 @@ extern struct kmem_cache *t10_alua_tg_pt_gp_mem_cache; | |||
88 | 89 | ||
89 | extern sense_reason_t target_emulate_report_target_port_groups(struct se_cmd *); | 90 | extern sense_reason_t target_emulate_report_target_port_groups(struct se_cmd *); |
90 | extern sense_reason_t target_emulate_set_target_port_groups(struct se_cmd *); | 91 | extern sense_reason_t target_emulate_set_target_port_groups(struct se_cmd *); |
92 | extern sense_reason_t target_emulate_report_referrals(struct se_cmd *); | ||
91 | extern int core_alua_check_nonop_delay(struct se_cmd *); | 93 | extern int core_alua_check_nonop_delay(struct se_cmd *); |
92 | extern int core_alua_do_port_transition(struct t10_alua_tg_pt_gp *, | 94 | extern int core_alua_do_port_transition(struct t10_alua_tg_pt_gp *, |
93 | struct se_device *, struct se_port *, | 95 | struct se_device *, struct se_port *, |