> + > + /* We have to drop the page lock here because memcg > + * charging might block for unbound time if memcg oom > + * killer is disabled. > + */ > + unlock_page(vmf.page); > + ret = mem_cgroup_newpage_charge(page, mm, GFP_KERNEL); > + lock_page(vmf.page); This introduces a completely poinless unlock/lock cycle for non-memcg pagefaults. Please make sure it only happens when actually needed. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>