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

Ingo Molnar
1999-04-07T13:48:43Z

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