aboutsummaryrefslogtreecommitdiffstats
path: root/include/target
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2013-12-17 03:18:44 -0500
committerNicholas Bellinger <nab@linux-iscsi.org>2013-12-17 13:33:58 -0500
commit1e0b9403bd2e77006ae8dcdf279c0f30c7efc258 (patch)
tree83958d62dfff14470cadaa53aef2d12a1ed52712 /include/target
parentbb91c1a087ed29ceb5b25b9c210c6665e13c36eb (diff)
target_core_alua: Allocate ALUA metadata on demand
We should only allocate ALUA metadata if we're actually going to write them. Signed-off-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'include/target')
-rw-r--r--include/target/target_core_base.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h
index d6f96c735309..bf9a4d6c26da 100644
--- a/include/target/target_core_base.h
+++ b/include/target/target_core_base.h
@@ -291,9 +291,6 @@ struct t10_alua_tg_pt_gp {
291 int tg_pt_gp_implicit_trans_secs; 291 int tg_pt_gp_implicit_trans_secs;
292 int tg_pt_gp_pref; 292 int tg_pt_gp_pref;
293 int tg_pt_gp_write_metadata; 293 int tg_pt_gp_write_metadata;
294 /* Used by struct t10_alua_tg_pt_gp->tg_pt_gp_md_buf_len */
295#define ALUA_MD_BUF_LEN 1024
296 u32 tg_pt_gp_md_buf_len;
297 u32 tg_pt_gp_members; 294 u32 tg_pt_gp_members;
298 atomic_t tg_pt_gp_alua_access_state; 295 atomic_t tg_pt_gp_alua_access_state;
299 atomic_t tg_pt_gp_ref_cnt; 296 atomic_t tg_pt_gp_ref_cnt;