summaryrefslogtreecommitdiffstats
path: root/include/target
diff options
context:
space:
mode:
authorNicholas Bellinger <nab@daterainc.com>2013-08-22 11:33:37 -0700
committerNicholas Bellinger <nab@linux-iscsi.org>2013-09-10 16:48:40 -0700
commitd9ea32bff2c55d4cd4654f1e98d269a758f34534 (patch)
tree64d8c15126232442cd574312b567511f2bfac74a /include/target
parentc5ff8d6bc3ebc363d77d71791080fefb07ae9017 (diff)
downloadop-kernel-dev-d9ea32bff2c55d4cd4654f1e98d269a758f34534.zip
op-kernel-dev-d9ea32bff2c55d4cd4654f1e98d269a758f34534.tar.gz
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')
-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 b5d0c24..732ce80 100644
--- a/include/target/target_core_base.h
+++ b/include/target/target_core_base.h
@@ -686,6 +686,7 @@ struct se_device {
struct list_head delayed_cmd_list;
struct list_head state_list;
struct list_head qf_cmd_list;
+ struct list_head g_dev_node;
/* Pointer to associated SE HBA */
struct se_hba *se_hba;
/* T10 Inquiry and VPD WWN Information */
OpenPOWER on IntegriCloud