Re: Low Latency Patch Questions...

Robert Dinse (nanook@eskimo.com)
Thu, 11 Nov 1999 19:28:57 -0800 (PST)


On Thu, 11 Nov 1999, Ingo Molnar wrote:
>
> On Wed, 10 Nov 1999, Robert Dinse wrote:
>
> > I am wondering if you have re-worked the low latency patch for 2.2.13?
> > The version for 2.2.10 will not apply.
>
> yes, you can download it from:
>
> http://www.redhat.com/~mingo/lowlatency-2.2.13-A1
>
> -- mingo

Thank you, I applied this to an otherwise stock 2.2.13 kernel and got one
error:

patching file `linux/drivers/char/tty_io.c'
Hunk #1 FAILED at 652.
1 out of 3 hunks FAILED -- saving rejects to linux/drivers/char/tty_io.c.rej

Contents of tty_io.c.rej:

***************
*** 652,657 ****
struct inode *inode = file->f_dentry->d_inode;

up(&inode->i_sem);
if (down_interruptible(&inode->i_atomic_write)) {
down(&inode->i_sem);
return -ERESTARTSYS;
--- 652,658 ----
struct inode *inode = file->f_dentry->d_inode;

up(&inode->i_sem);
+ conditional_schedule();
if (down_interruptible(&inode->i_atomic_write)) {
down(&inode->i_sem);
return -ERESTARTSYS;

Patch is looking for:

if (down_interruptible(&inode->i_atomic_write)) {

But actual code is:

if (down_interruptible(&tty->atomic_write)) {

I added the conditional_schedual() before this line by hand, but thought
you, and anybody else trying to apply this patch, might like to know about
this. Thanks!

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