Re: [patch 2.6.13-rc4] fix get_user_pages bug
From: Linus Torvalds
Date: Tue Aug 02 2005 - 13:51:09 EST
On Tue, 2 Aug 2005, Hugh Dickins wrote:
>
> It might not be so bad. It's going to access the struct page anyway.
> And clearing dirty from parent and child at fork time could save two
> set_page_dirtys at exit time. But I'm not sure that we could batch the
> the dirty bit clearing into one TLB flush like we do the write protection.
Yes, good point. If the thing is still marked dirty in the TLB, some other
thread might be writing to the page after we've cleared dirty but before
we've flushed the TLB - causing the new dirty bit to be lost. I think.
Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/