Re: [patch] only-one-cache-query [was Re: [patch] arca-vm-2.2.5]

Ingo Molnar (mingo@chiara.csoma.elte.hu)
Wed, 7 Apr 1999 15:47:50 +0200 (CEST)


On Wed, 7 Apr 1999, Andrea Arcangeli wrote:

> void prune_dcache(int count)
> {
> + gfp_sleeping_cookie++;

this can be done via an existing variable, kstat.ctxsw, no need to add yet
another 'have we scheduled' flag. But the whole approach is quite flawed
and volatile, it simply relies on us having the big kernel lock. With more
finegrained SMP locking in that area we will have big problems preserving
that solution.

-- mingo

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