[lkml]   [2002]   [Apr]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject2.4.18: nfs_create_request wiping current->policy
This post applies to vanilla 2.4.18.

It looks to me like nfs_create_request() is assigning to policy
instead of or'ing the yield bit effectively converting real time
tasks (SCHED_FIFO=2 and SCHED_RR=1) into normal tasks (SCHED_OTHER=0).

If I'm overlooking something trivial just hit me with the cluebat,
otherwise trivial patch follows.

diff -r -u linux-2.4.18/fs/nfs/pagelist.c linux-fixed/fs/nfs/pagelist.c
--- linux-2.4.18/fs/nfs/pagelist.c Fri Dec 21 12:41:55 2001
+++ linux-fixed/fs/nfs/pagelist.c Fri Apr 19 01:10:02 2002
@@ -96,7 +96,7 @@
if (signalled() && (server->flags & NFS_MOUNT_INTR))
- current->policy = SCHED_YIELD;
+ current->policy |= SCHED_YIELD;

I'm not subscribed to lkml, please cc.
-- Thanks, Arnar.

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:22    [W:0.028 / U:3.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site