Re: flush_tlb_page in unuse_pte

David S. Miller (davem@jenolan.rutgers.edu)
Wed, 27 Aug 1997 09:47:38 -0400


Date: Wed, 27 Aug 1997 09:33:24 -0400
From: Bill Hawes <whawes@star.net>

There may be some problems with kswapd holding the mmap semaphore
though, because of its low process priority. We may end up needing
some finer granularity locks to make swapping safe without holding
up other mmap operations.

Think about it this way when trying to solve the problem.

There are two types of atomicity we need for an address space:

1) Hey, I'm mucking with page tables right now, no-one else do that.
2) I'm sleeping (or might sleep) on an operation referring to a vma,
nobody try to remove it from under me.

Later,
David "Sparc" Miller
davem@caip.rutgers.edu