target_core_alua: Allocate ALUA metadata on demand
authorHannes Reinecke <hare@suse.de>
Tue, 17 Dec 2013 08:18:44 +0000 (09:18 +0100)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 17 Dec 2013 18:33:58 +0000 (10:33 -0800)
commit1e0b9403bd2e77006ae8dcdf279c0f30c7efc258
tree83958d62dfff14470cadaa53aef2d12a1ed52712
parentbb91c1a087ed29ceb5b25b9c210c6665e13c36eb
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>
drivers/target/target_core_alua.c
drivers/target/target_core_alua.h
include/target/target_core_base.h