[lkml]   [2002]   [Mar]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: SCHED_YIELD undeclared with Trond's NFS patch w/2.4.19-pre2-ac2

> You need to change loops that do something like:
> while(something)
> {
> current->policy |= SCHED_YIELD;
> schedule();
> }
> to:
> while(something)
> sys_sched_yield();

such loops are a great way to create livelock and other nasties in the
and should be avoided at all cost (esp if you use preemptable kernels)
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:24    [W:0.044 / U:39.020 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site