* Hiroyuki Kamezawa <kamezawa.hiroyuki@xxxxxxxxx> [2010-09-14 00:28:30]: > > In the situation above who has the PTE lock? Are we not synchronized > > via the PTE lock such that add rmap and rm rmap, will not happen > > simultaneously? > > > In this case, a process for map and one for unmap can be different. > > Assume process A maps a file cache and process B not. > While process A unmap a file, process B can map it. > pte lock is no help. > Correct, so while the accounting is correct, the flag can definitely go wrong. I misread your race description earlier. Thanks! -- Three Cheers, Balbir -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxxx For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>