Re: Combined performance patches update for 2.4.19

Rik van Riel (riel@conectiva.com.br)
Fri, 23 Aug 2002 12:52:16 -0300 (BRT)


On Sat, 24 Aug 2002 conman@kolivas.net wrote:
> Quoting Rik van Riel <riel@conectiva.com.br>:
> > On Fri, 23 Aug 2002 conman@kolivas.net wrote:
> >
> > > I've completed merging the following patches:
> > >
> > > O(1) scheduler
> > > Preemptible
> > > Low latency
> >
> > Could I interest you in the -rmap VM ? ;)
> >
> > http://surriel.com/patches/
>
> Sure I'll give it a go, but it might kill me trying :P

OK, here's a little patch to be able to combine rmap and preempt.

have fun,

Rik

-- 
Bravely reimplemented by the knights who say "NIH".

http://www.surriel.com/ http://distro.conectiva.com/

===== include/linux/mm.h 1.47 vs edited ===== --- 1.47/include/linux/mm.h Tue Aug 6 15:59:20 2002 +++ edited/include/linux/mm.h Fri Aug 23 12:48:44 2002 @@ -337,6 +337,7 @@ * busywait with less bus contention for a good time to * attempt to acquire the lock bit. */ + preempt_disable(); #ifdef CONFIG_SMP while (test_and_set_bit(PG_chainlock, &page->flags)) { while (test_bit(PG_chainlock, &page->flags)) @@ -350,6 +351,7 @@ #ifdef CONFIG_SMP clear_bit(PG_chainlock, &page->flags); #endif + preempt_enable(); }

/*

- 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/