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/