>... > + spin_lock(&mm->page_table_lock); > mm->rss++; > + spin_unlock(&mm->page_table_lock); >... Would it not be better to use some sort of atomic add/subtract/clear operation rather than a spinlock? (Which would also give you fewer atomic memory access cycles). David - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
- [PATCH] guard mm->rss with page_table_lock (241p11) Rasmus Andersen
- Re: [PATCH] guard mm->rss with page_table_lock ... Rik van Riel
- Re: [PATCH] guard mm->rss with page_table_l... Rasmus Andersen
- Re: [PATCH] guard mm->rss with page_tab... Rik van Riel
- Re: [PATCH] guard mm->rss with page_tab... David Howells
- Re: [PATCH] guard mm->rss with page... Rasmus Andersen
- Re: [PATCH] guard mm->rss with page... David S. Miller
- Re: [PATCH] guard mm->rss with page_tab... george anzinger
- Re: [PATCH] guard mm->rss with page... Marcelo Tosatti
- Re: [PATCH] guard mm->rss with page... Stephen C. Tweedie