|
@@ -587,6 +587,8 @@ __mutex_lock_common(struct mutex *lock, long state, unsigned int subclass,
|
|
|
schedule_preempt_disabled();
|
|
|
spin_lock_mutex(&lock->wait_lock, flags);
|
|
|
}
|
|
|
+ __set_task_state(task, TASK_RUNNING);
|
|
|
+
|
|
|
mutex_remove_waiter(lock, &waiter, current_thread_info());
|
|
|
/* set it to 0 if there are no waiters left: */
|
|
|
if (likely(list_empty(&lock->wait_list)))
|