PAGE_RW Should be added to PAGE_COPY ?
Quoted 2 lines
I replied too hastily. I've since looked back to your original mail
Thank you for your patience.
Quoted 6 lines
(in which you do mention Infiniband as an example, which has now helped to jog my brain), and realized that I was misinterpreting what you meant by "user-level network driver".
The problem, as I now see it, is precisely with do_wp_page()'s TestSetPageLocked, as you first said.
Yeah, I think you get it. ^_^
Quoted 9 lines
Yes, it would be good if we could do that check in some other, reliable way. The problem is that
can_share_swap_pagehas to checkpage_mapcount(and PageSwapCache) andpage_swapcountin an atomic way: the page lock is what we have used to guard the movement between mapcount and swapcount.I'll try to think whether we can do that better,
but not until next week.
Ok, I expect for good news.
Quoted 2 lines
Hugh
Yingchao Zhou