]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - include/target/target_core_backend.h
target: add helper to find se_device by dev_index
authorMike Christie <mchristi@redhat.com>
Fri, 23 Jun 2017 06:18:14 +0000 (01:18 -0500)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 7 Jul 2017 06:11:38 +0000 (23:11 -0700)
commit85441e6b8c97964a6da72135dc21f708adbdc4d8
tree4e03541a349d033ae4bdaf1f485a57fd4e4aa6da
parent0a5eee647b78e53da05e081362f42a11b4b674eb
target: add helper to find se_device by dev_index

This adds a helper to find a se_device by dev_index. It will
be used in the next patches so tcmu's netlink interface can
execute commands on specific devices.

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
include/target/target_core_backend.h