summaryrefslogtreecommitdiff
path: root/drivers/target/target_core_ua.h
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2015-06-11 10:01:26 +0200
committerNicholas Bellinger <nab@linux-iscsi.org>2015-06-16 23:27:04 -0700
commitc51c8e7bcac966f209da83630fc8ca7e6cad279b (patch)
treea4823a8d68916d5cdd7a580d4b1bba4dd2a3fa5f /drivers/target/target_core_ua.h
parent316058134ffa0017199b460318e109aa79432cc6 (diff)
target: use 'se_dev_entry' when allocating UAs
We need to use 'se_dev_entry' as argument when allocating UAs, otherwise we'll never see any UAs for an implicit ALUA state transition triggered from userspace. (Add target_ua_allocate_lun() common caller - nab) Signed-off-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/target_core_ua.h')
-rw-r--r--drivers/target/target_core_ua.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/target/target_core_ua.h b/drivers/target/target_core_ua.h
index 6e592b10a8c0..96460bff490f 100644
--- a/drivers/target/target_core_ua.h
+++ b/drivers/target/target_core_ua.h
@@ -28,7 +28,8 @@
extern struct kmem_cache *se_ua_cache;
extern sense_reason_t target_scsi3_ua_check(struct se_cmd *);
-extern int core_scsi3_ua_allocate(struct se_node_acl *, u64, u8, u8);
+extern int core_scsi3_ua_allocate(struct se_dev_entry *, u8, u8);
+extern void target_ua_allocate_lun(struct se_node_acl *, u32, u8, u8);
extern void core_scsi3_ua_release_all(struct se_dev_entry *);
extern void core_scsi3_ua_for_check_condition(struct se_cmd *, u8 *, u8 *);
extern int core_scsi3_ua_clear_for_request_sense(struct se_cmd *,