Removed the scst_released synchronization object because the previous

commit made it superfluous.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@879 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2009-05-21 12:41:53 +00:00
parent 7519550fcb
commit 4f8bd9a517
2 changed files with 0 additions and 10 deletions
-5
View File
@@ -2176,8 +2176,6 @@ static int srpt_release(struct scst_tgt *scst_tgt)
scst_tgt_set_tgt_priv(scst_tgt, NULL);
complete(&sdev->scst_released);
return 0;
}
@@ -2344,7 +2342,6 @@ static void srpt_add_one(struct ib_device *device)
return;
sdev->device = device;
init_completion(&sdev->scst_released);
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 26)
sdev->class_dev.class = &srpt_class;
@@ -2505,8 +2502,6 @@ static void srpt_remove_one(struct ib_device *device)
scst_unregister(sdev->scst_tgt);
sdev->scst_tgt = NULL;
wait_for_completion(&sdev->scst_released);
ib_unregister_event_handler(&sdev->event_handler);
ib_destroy_cm_id(sdev->cm_id);
ib_destroy_srq(sdev->srq);
-5
View File
@@ -199,11 +199,6 @@ struct srpt_device {
spinlock_t spinlock;
struct srpt_port port[2];
struct ib_event_handler event_handler;
/*
* scst_released is used to postpone srpt_remove_one() until the SCST
* core has notified the ib_srpt module about driver release.
*/
struct completion scst_released;
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 26)
/* per-port srpt-<portname> device instance. */
struct class_device class_dev;