|
@@ -7468,8 +7468,8 @@ void md_wakeup_thread(struct md_thread *thread)
|
|
|
{
|
|
{
|
|
|
if (thread) {
|
|
if (thread) {
|
|
|
pr_debug("md: waking up MD thread %s.\n", thread->tsk->comm);
|
|
pr_debug("md: waking up MD thread %s.\n", thread->tsk->comm);
|
|
|
- if (!test_and_set_bit(THREAD_WAKEUP, &thread->flags))
|
|
|
|
|
- wake_up(&thread->wqueue);
|
|
|
|
|
|
|
+ set_bit(THREAD_WAKEUP, &thread->flags);
|
|
|
|
|
+ wake_up(&thread->wqueue);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
EXPORT_SYMBOL(md_wakeup_thread);
|
|
EXPORT_SYMBOL(md_wakeup_thread);
|