[PATCH 0/1] sched/wait: wait_event*_timeout() needs___wait_cond_timeout() too

From: Oleg Nesterov
Date: Mon Oct 07 2013 - 14:37:44 EST


And another patch we already discussed.

wait_event_timeout(wq, true, 0) still returns 0, this doesn't look
right, and this doesn't match __wait_event_timeout(timeout => 0).

Sure, most probably nobody uses the constant timeout == 0, but this
can break the code which does something like

if (nonblock)
timeout = 0;
else
timeout = TIMEOUT;

success = wait_event_timeout(wq, CONDITION, timeout);

Oleg.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/