target: add helper to iterate over devices
authorMike Christie <mchristi@redhat.com>
Fri, 23 Jun 2017 06:18:16 +0000 (01:18 -0500)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 7 Jul 2017 06:11:39 +0000 (23:11 -0700)
commitb1943fd454d1a2e2c8018a2f79a7023893619439
tree97d1eaff4db5e721869d71d93f97708661da1b05
parentb3af66e24393f03ef81db17a11387d9e6174bd01
target: add helper to iterate over devices

This adds a wrapper around idr_for_each so the xcopy code can loop over
the devices in the next patch.

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_device.c
drivers/target/target_core_internal.h