summaryrefslogtreecommitdiffstats
path: root/drivers/target/target_core_device.c
diff options
context:
space:
mode:
authorBart Van Assche <bart.vanassche@sandisk.com>2015-05-19 16:16:01 +0200
committerNicholas Bellinger <nab@linux-iscsi.org>2015-06-01 00:25:39 -0700
commitb3eeea6619a0ed4f37138661c49339b21361d397 (patch)
tree68236615b4ab4ac9f3644f244aab35d6077b58a5 /drivers/target/target_core_device.c
parent3effdb9094fd06b9c61ecef08d610ae90805fd98 (diff)
downloadblackbird-obmc-linux-b3eeea6619a0ed4f37138661c49339b21361d397.tar.gz
blackbird-obmc-linux-b3eeea6619a0ed4f37138661c49339b21361d397.zip
target: Simplify LUN shutdown code
Instead of starting a thread from transport_clear_lun_ref() that waits for LUN shutdown, wait in that function for LUN shutdown to finish. Additionally, change the return type of transport_clear_lun_ref() from int to void. Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/target_core_device.c')
-rw-r--r--drivers/target/target_core_device.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/target/target_core_device.c b/drivers/target/target_core_device.c
index 22f1e180d8ee..1e4485b1849d 100644
--- a/drivers/target/target_core_device.c
+++ b/drivers/target/target_core_device.c
@@ -928,7 +928,6 @@ struct se_device *target_alloc_device(struct se_hba *hba, const char *name)
xcopy_lun = &dev->xcopy_lun;
xcopy_lun->lun_se_dev = dev;
- init_completion(&xcopy_lun->lun_shutdown_comp);
spin_lock_init(&xcopy_lun->lun_sep_lock);
init_completion(&xcopy_lun->lun_ref_comp);
OpenPOWER on IntegriCloud