On Fri, 2006-09-01 at 11:23 -0700, Dave Hansen wrote: > OK, and there's no other workable solution to exclude each other from > running at the same time than a bit in page->flags? > > It seems like that hashed lock (or lock in mem_map[]) we were talking > about earlier might be applicable here, too. The indication which page has already been removed from the page cache by a discard fault is by definition per-page. The situation is different compared to the one with PG_state_change which is used to protect critical sections. After the cpu left the critical section the bit can be clear again. The discard bit cannot be cleared until the page really has been freed. -- blue skies, Martin. Martin Schwidefsky Linux for zSeries Development & Services IBM Deutschland Entwicklung GmbH "Reality continues to ruin my life." - Calvin. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [patch 3/9] Guest page hinting: volatile page cache.
- From: Dave Hansen <[email protected]>
- Re: [patch 3/9] Guest page hinting: volatile page cache.
- References:
- Re: [patch 3/9] Guest page hinting: volatile page cache.
- From: Dave Hansen <[email protected]>
- Re: [patch 3/9] Guest page hinting: volatile page cache.
- From: Martin Schwidefsky <[email protected]>
- Re: [patch 3/9] Guest page hinting: volatile page cache.
- From: Andy Whitcroft <[email protected]>
- Re: [patch 3/9] Guest page hinting: volatile page cache.
- From: Martin Schwidefsky <[email protected]>
- Re: [patch 3/9] Guest page hinting: volatile page cache.
- From: Dave Hansen <[email protected]>
- Re: [patch 3/9] Guest page hinting: volatile page cache.
- From: Martin Schwidefsky <[email protected]>
- Re: [patch 3/9] Guest page hinting: volatile page cache.
- From: Dave Hansen <[email protected]>
- Re: [patch 3/9] Guest page hinting: volatile page cache.
- From: Martin Schwidefsky <[email protected]>
- Re: [patch 3/9] Guest page hinting: volatile page cache.
- From: Dave Hansen <[email protected]>
- Re: [patch 3/9] Guest page hinting: volatile page cache.
- From: Martin Schwidefsky <[email protected]>
- Re: [patch 3/9] Guest page hinting: volatile page cache.
- From: Dave Hansen <[email protected]>
- Re: [patch 3/9] Guest page hinting: volatile page cache.
- From: Martin Schwidefsky <[email protected]>
- Re: [patch 3/9] Guest page hinting: volatile page cache.
- From: Dave Hansen <[email protected]>
- Re: [patch 3/9] Guest page hinting: volatile page cache.
- Prev by Date: Re: RFC - sysctl or module parameters.
- Next by Date: Re: [patch 3/9] Guest page hinting: volatile page cache.
- Previous by thread: Re: [patch 3/9] Guest page hinting: volatile page cache.
- Next by thread: Re: [patch 3/9] Guest page hinting: volatile page cache.
- Index(es):