> This page cache is located on non-hugepage, isn't it? Yes. > If so, buffered IO is handled in the same manner as done for non-hugepage. > I think "hugepage under IO" is realized only in direct IO for now. > > Direct IO is issued in page unit even if the target page is in hugepage, > so locking each subpages separately looks natural for me than auditing > head page. Ok. Would need to make sure lock ordering is correctly handled all the time. If there's any code that locks multiple pages "backwards" and the migration code locks it forward there might be a problem. Maybe it's not a problem though. -Andi -- ak@xxxxxxxxxxxxxxx -- Speaking for myself only. -- 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>