futex_wake_one(): remove assert on thread state
When the global kernel lock is removed, a thread being woken up
could run in another cpu and be blocked again, while the
futex_wake_one() function is still executing. Thus, in this
function there should be no assertions on the thread state.
@@ -46,15 +46,7 @@ static struct futex * soft_create_futex(process p, u64 key)
static thread futex_wake_one(struct futex * f)
{
- thread w;
-
- w = blockq_wake_one(f->bq);
- if (w == INVALID_ADDRESS)
- return w;
-
- /* w must be awake */
- assert(w->blocked_on != f->bq);
- return w;
+ return blockq_wake_one(f->bq);
}
/*
