]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - include/target/target_core_backend.h
target: break up free_device callback
authorMike Christie <mchristi@redhat.com>
Fri, 23 Jun 2017 06:18:12 +0000 (01:18 -0500)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 7 Jul 2017 06:11:37 +0000 (23:11 -0700)
commit926347061ef1f4d3873829fd1960c6e4b965aa9f
treefcad36c9ecdda953447bdb8bf19975531a92162c
parent2d76443e02f260d7a5bd0ede1851ae5534f0c68d
target: break up free_device callback

With this patch free_device is now used to free what is allocated in the
alloc_device callback and destroy_device tears down the resources that are
setup in the configure_device callback.

This patch will be needed in the next patch where tcmu needs
to be able to look up the device in the destroy callback.

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_file.c
drivers/target/target_core_iblock.c
drivers/target/target_core_pscsi.c
drivers/target/target_core_rd.c
drivers/target/target_core_user.c
include/target/target_core_backend.h