xcopy: loop over devices using idr helper
authorMike Christie <mchristi@redhat.com>
Fri, 23 Jun 2017 06:18:17 +0000 (01:18 -0500)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 7 Jul 2017 06:11:40 +0000 (23:11 -0700)
commit6906d008b4b06e42cad393ac25bec76fbf31fabd
tree9f53be37fb763fd62de9151c44e1462c2599ac9b
parentb1943fd454d1a2e2c8018a2f79a7023893619439
xcopy: loop over devices using idr helper

This converts the xcopy code to use the idr helper. The next patch
will drop the g_device_list and make g_device_mutex local to the
target_core_device.c file.

Signed-off-by: Mike Christie <mchristi@redhat.com>
Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_xcopy.c