Re: ionice kills vanilla 2.6.0-test9 was [Re: [PATCH] cfq + iopriorities (fwd)]

From: Linus Torvalds
Date: Fri Nov 21 2003 - 18:33:57 EST



On Fri, 21 Nov 2003, Linus Torvalds wrote:
>
> So it definitely _does_ work in some versions, and the bug appears to be
> new to binutils 2.14, with 2.13 doing the right thing.

It looks like we can work around it with this silly syntactic sugar.. Does
this work for you?

Linus

---
===== arch/i386/kernel/entry.S 1.69 vs edited =====
--- 1.69/arch/i386/kernel/entry.S Wed Oct 1 06:53:17 2003
+++ edited/arch/i386/kernel/entry.S Fri Nov 21 15:32:00 2003
@@ -49,6 +49,8 @@
#include <asm/page.h>
#include "irq_vectors.h"

+#define nr_syscalls ((syscall_table_size)/4)
+
EBX = 0x00
ECX = 0x04
EDX = 0x08
@@ -881,4 +883,4 @@
.long sys_fadvise64_64
.long sys_ni_syscall /* sys_vserver */

-nr_syscalls=(.-sys_call_table)/4
+syscall_table_size=(.-sys_call_table)

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