Removed the scst_released synchronization object because the previous
authorbvassche <bvassche@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Thu, 21 May 2009 12:41:53 +0000 (12:41 +0000)
committerbvassche <bvassche@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Thu, 21 May 2009 12:41:53 +0000 (12:41 +0000)
commit made it superfluous.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@879 d57e44dd-8a1f-0410-8b47-8ef2f437770f

srpt/src/ib_srpt.c
srpt/src/ib_srpt.h

index b6b998c..1c20432 100644 (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);
index 8872be8..2212769 100644 (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;