summaryrefslogtreecommitdiff
path: root/drivers/target/target_core_alua.h
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2013-12-17 09:18:44 +0100
committerNicholas Bellinger <nab@linux-iscsi.org>2013-12-17 10:33:58 -0800
commit1e0b9403bd2e77006ae8dcdf279c0f30c7efc258 (patch)
tree83958d62dfff14470cadaa53aef2d12a1ed52712 /drivers/target/target_core_alua.h
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 'drivers/target/target_core_alua.h')
-rw-r--r--drivers/target/target_core_alua.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/target/target_core_alua.h b/drivers/target/target_core_alua.h
index 88e2e835f14a..1a152cd59471 100644
--- a/drivers/target/target_core_alua.h
+++ b/drivers/target/target_core_alua.h
@@ -78,6 +78,9 @@
*/
#define ALUA_SECONDARY_METADATA_WWN_LEN 256
+/* Used by core_alua_update_tpg_(primary,secondary)_metadata */
+#define ALUA_MD_BUF_LEN 1024
+
extern struct kmem_cache *t10_alua_lu_gp_cache;
extern struct kmem_cache *t10_alua_lu_gp_mem_cache;
extern struct kmem_cache *t10_alua_tg_pt_gp_cache;