target: Add global device list for EXTENDED_COPY
authorNicholas Bellinger <nab@daterainc.com>
Thu, 22 Aug 2013 18:33:37 +0000 (11:33 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 10 Sep 2013 23:48:40 +0000 (16:48 -0700)
commitd9ea32bff2c55d4cd4654f1e98d269a758f34534
tree64d8c15126232442cd574312b567511f2bfac74a
parentc5ff8d6bc3ebc363d77d71791080fefb07ae9017
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>
drivers/target/target_core_device.c
include/target/target_core_base.h