lkml.org 
[lkml]   [2004]   [Oct]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] Completion API extension
From
Date
On Fri, 2004-10-22 at 04:18, Dmitry Torokhov wrote:

Hi,

it's resubmitted in a correct version already.

Thanks,

tglx


> Hi,
>
> On Wednesday 20 October 2004 11:31 am, Thomas Gleixner wrote:
> > +unsigned long fastcall __sched
> > +wait_for_completion_interruptible_timeout(struct completion *x,
> > + unsigned long timeout)
> > +{
> > + might_sleep();
> > +
> > + spin_lock_irq(&x->wait.lock);
> > + if (!x->done) {
> > + DECLARE_WAITQUEUE(wait, current);
> > +
> > + wait.flags |= WQ_FLAG_EXCLUSIVE;
> > + __add_wait_queue_tail(&x->wait, &wait);
> > + do {
> > + if (signal_pending(current)) {
> > + timeout = -ERESTARTSYS;
> > + goto out;
> > + }
> > + __set_current_state(TASK_INTERRUPTIBLE);
> > + spin_unlock_irq(&x->wait.lock);
> > + schedule();
>
> ^^^^^^^^^^^^^^^^^^
>
> schedule_timeout perhaps?
>

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

\
 
 \ /
  Last update: 2005-03-22 14:07    [W:0.041 / U:0.976 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site