The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* rmap: page_mapping barrier
@ 2004-04-08 13:22 Hugh Dickins
  2004-04-08 15:12 ` Andrea Arcangeli
  0 siblings, 1 reply; 5+ messages in thread
From: Hugh Dickins @ 2004-04-08 13:22 UTC (permalink / raw)
  To: Andrea Arcangeli; +Cc: linux-kernel

My page_mapping(page) says PageAnon(page)? NULL: page->mapping;
I've just realized, looking again at sync_page but it goes way
beyond it, that we need smp barriers of some kind somewhere,
don't we?  That is, we cannot just write the address of one of
our non-address_space structures into page->mapping, without
being very careful that others will see the PageAnon and treat
it as NULL.  There are places all over using page_mapping(page)
while another cpu might be right in page_add_rmap.  I go very
mushy when it comes to barriers, you understand them better
than most, any idea what we need to do in page_mapping(page),
and when setting and clearing PageAnon?

Thanks,
Hugh


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-04-08 18:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-08 13:22 rmap: page_mapping barrier Hugh Dickins
2004-04-08 15:12 ` Andrea Arcangeli
2004-04-08 17:49   ` Hugh Dickins
2004-04-08 18:07     ` Andrea Arcangeli
2004-04-08 18:48       ` Hugh Dickins

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox