aboutsummaryrefslogtreecommitdiffstats
path: root/include/target/target_core_base.h
diff options
context:
space:
mode:
authorNicholas Bellinger <nab@daterainc.com>2013-08-22 14:33:37 -0400
committerNicholas Bellinger <nab@linux-iscsi.org>2013-09-10 19:48:40 -0400
commitd9ea32bff2c55d4cd4654f1e98d269a758f34534 (patch)
tree64d8c15126232442cd574312b567511f2bfac74a /include/target/target_core_base.h
parentc5ff8d6bc3ebc363d77d71791080fefb07ae9017 (diff)
target: Add global device list for EXTENDED_COPY
EXTENDED_COPY needs to be able to search a global list of devices based on NAA WWN device identifiers, so add a simple g_device_list protected by g_device_mutex. Cc: Christoph Hellwig <hch@lst.de> Cc: Hannes Reinecke <hare@suse.de> Cc: Martin Petersen <martin.petersen@oracle.com> Cc: Chris Mason <chris.mason@fusionio.com> Cc: Roland Dreier <roland@purestorage.com> Cc: Zach Brown <zab@redhat.com> Cc: James Bottomley <JBottomley@Parallels.com> Cc: Nicholas Bellinger <nab@linux-iscsi.org> Signed-off-by: Nicholas Bellinger <nab@daterainc.com>
Diffstat (limited to 'include/target/target_core_base.h')
-rw-r--r--include/target/target_core_base.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h
index b5d0c2496c7e..732ce804020c 100644
--- a/include/target/target_core_base.h
+++ b/include/target/target_core_base.h
@@ -686,6 +686,7 @@ struct se_device {
686 struct list_head delayed_cmd_list; 686 struct list_head delayed_cmd_list;
687 struct list_head state_list; 687 struct list_head state_list;
688 struct list_head qf_cmd_list; 688 struct list_head qf_cmd_list;
689 struct list_head g_dev_node;
689 /* Pointer to associated SE HBA */ 690 /* Pointer to associated SE HBA */
690 struct se_hba *se_hba; 691 struct se_hba *se_hba;
691 /* T10 Inquiry and VPD WWN Information */ 692 /* T10 Inquiry and VPD WWN Information */