Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit de30ec47 authored by Nicholas Mc Guire's avatar Nicholas Mc Guire Committed by Ingo Molnar
Browse files

sched/completion: Remove unnecessary ->wait.lock serialization when reading completion state

parent 51587bcf
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -288,13 +288,6 @@ EXPORT_SYMBOL(try_wait_for_completion);
 */
bool completion_done(struct completion *x)
{
	unsigned long flags;
	int ret = 1;

	spin_lock_irqsave(&x->wait.lock, flags);
	if (!x->done)
		ret = 0;
	spin_unlock_irqrestore(&x->wait.lock, flags);
	return ret;
	return !!ACCESS_ONCE(x->done);
}
EXPORT_SYMBOL(completion_done);