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: NMike Christie <mchristi@redhat.com> Reviewed-by: NBart Van Assche <bart.vanassche@wdc.com> Signed-off-by: NNicholas Bellinger <nab@linux-iscsi.org>
Showing
想要评论请 注册 或 登录