Whamcloud - gitweb
LU-14024 ofd: Avoid use after free in ofd_inconsistency_verification_main
[fs/lustre-release.git] / lustre / ofd / ofd_io.c
index dc5230a..fef5135 100644 (file)
@@ -232,8 +232,8 @@ out_unlocked:
        spin_lock(&ofd->ofd_inconsistency_lock);
 out:
        thread_set_flags(thread, SVC_STOPPED);
-       wake_up_all(&thread->t_ctl_waitq);
        spin_unlock(&ofd->ofd_inconsistency_lock);
+       wake_up_all(&thread->t_ctl_waitq);
        lu_env_fini(&env);
 
        return rc;