Re: [PATCH] Return value from schedule()
From: Peter Zijlstra <peterz@infradead.org>
Date: 2008-09-05 07:41:05
Also in:
lkml
From: Peter Zijlstra <peterz@infradead.org>
Date: 2008-09-05 07:41:05
Also in:
lkml
On Thu, 2008-09-04 at 12:05 -0700, Stephen Hemminger wrote:
On Thu, 4 Sep 2008 11:48:45 -0600 Matthew Wilcox [off-list ref] wrote:quoted
On Thu, Sep 04, 2008 at 10:30:49AM -0700, Arjan van de Ven wrote:quoted
use schedule_hrtimerout() for this (hopefully will be in 2.6.28); see this weeks LWN for an article describing itOK, so something like: struct timespec ts = { 0, 10 * 1000 }; set_task_state(TASK_INTERRUPTIBLE); schedule_hrtimeout(&ts, HRTIMER_MODE_REL); if (fatal_signal_pending()) return -EINTR; should do the trick.Never mind, I changed it to just yield() in revision.
Gah, not another yield in the network code we have to figure out wtf its meant to do.