[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20131007183043.GA10969@redhat.com>
Date: Mon, 7 Oct 2013 20:30:43 +0200
From: Oleg Nesterov <oleg@...hat.com>
To: Ingo Molnar <mingo@...nel.org>,
Peter Zijlstra <peterz@...radead.org>
Cc: Paul McKenney <paulmck@...ux.vnet.ibm.com>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Thomas Gleixner <tglx@...utronix.de>,
Andrew Morton <akpm@...ux-foundation.org>,
linux-kernel@...r.kernel.org
Subject: [PATCH 0/1] sched/wait: wait_event*_timeout() needs
___wait_cond_timeout() too
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists