aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/target/target_core_fabric_configfs.c
diff options
context:
space:
mode:
authorAndy Grover <agrover@redhat.com>2014-06-30 16:39:44 -0700
committerNicholas Bellinger <nab@linux-iscsi.org>2014-10-01 14:38:48 -0700
commitcd9d7cbaec8b622eee4edcd8bf481c4047f74915 (patch)
treeaa6bbdb44254f41e10cc1c817e82cbc0201add0d /drivers/target/target_core_fabric_configfs.c
parenttarget: core_tpg_post_dellun can return void (diff)
downloadlinux-dev-cd9d7cbaec8b622eee4edcd8bf481c4047f74915.tar.xz
linux-dev-cd9d7cbaec8b622eee4edcd8bf481c4047f74915.zip
target: Change core_dev_del_lun to take a se_lun instead of unpacked_lun
Remove core_tpg_pre_dellun entirely, since we don't need to get/check a pointer we already have. Nothing else can return an error, so core_dev_del_lun can return void. Rename core_tpg_post_dellun to remove_lun - a clearer name, now that pre_dellun is gone. Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Andy Grover <agrover@redhat.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/target_core_fabric_configfs.c')
-rw-r--r--drivers/target/target_core_fabric_configfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/target/target_core_fabric_configfs.c b/drivers/target/target_core_fabric_configfs.c
index dc6c781732ee..0c3f90130b7d 100644
--- a/drivers/target/target_core_fabric_configfs.c
+++ b/drivers/target/target_core_fabric_configfs.c
@@ -822,7 +822,7 @@ static int target_fabric_port_unlink(
tf->tf_ops.fabric_pre_unlink(se_tpg, lun);
}
- core_dev_del_lun(se_tpg, lun->unpacked_lun);
+ core_dev_del_lun(se_tpg, lun);
return 0;
}