Whamcloud - gitweb
fix double-unlock in osccd_main
authorphil <phil>
Thu, 21 Aug 2003 06:32:25 +0000 (06:32 +0000)
committerphil <phil>
Thu, 21 Aug 2003 06:32:25 +0000 (06:32 +0000)
lustre/osc/osc_create.c

index 6e2df9c..84af0dc 100644 (file)
@@ -251,12 +251,10 @@ static int osccd_main(void *arg)
                         spin_unlock(&osccd->osccd_lock);
                         EXIT;
                         break;
-                } else {
-                        osccd->osccd_flags &= ~OSCCD_KICKED;
-                        spin_unlock(&osccd->osccd_lock);
-                        osccd_do_create(osccd);
                 }
+                osccd->osccd_flags &= ~OSCCD_KICKED;
                 spin_unlock(&osccd->osccd_lock);
+                osccd_do_create(osccd);
         }
 
         osccd->osccd_thread = NULL;