]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xcopy: loop over devices using idr helper
authorMike Christie <mchristi@redhat.com>
Fri, 23 Jun 2017 06:18:17 +0000 (01:18 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 17 Jan 2021 12:57:53 +0000 (13:57 +0100)
commit34ca8e545203385646cbf83b048ecd130f71bebc
tree14bdbd903906e08701a7738cd7d1be740c530906
parenta11bd997799e9b8f399a0fafe3980e7aa0488fb2
xcopy: loop over devices using idr helper

[ Upstream commit 6906d008b4b06e42cad393ac25bec76fbf31fabd ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/target/target_core_xcopy.c