Thread (20 messages) 20 messages, 6 authors, 2012-09-25

Re: [PATCH v10 1/5] mm: introduce a common interface for balloon pages mobility

From: Peter Zijlstra <peterz@infradead.org>
Date: 2012-09-24 12:44:32
Also in: lkml

On Mon, 2012-09-17 at 13:38 -0300, Rafael Aquini wrote:
+static inline void assign_balloon_mapping(struct page *page,
+                                         struct address_space
*mapping)
+{
+       page->mapping = mapping;
+       smp_wmb();
+}
+
+static inline void clear_balloon_mapping(struct page *page)
+{
+       page->mapping = NULL;
+       smp_wmb();
+} 
barriers without a comment describing the data race are a mortal sin.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help