On 02/16/2016 12:36 AM, Ingo Molnar wrote:
quoted
quoted
From: Dave Hansen <dave.hansen@linux.intel.com>
The concept here was a suggestion from Ingo. The implementation
horrors are all mine.
This allows get_user_pages(), get_user_pages_unlocked(), and
get_user_pages_locked() to be called with or without the
leading tsk/mm arguments. We will give a compile-time warning
about the old style being __deprecated and we will also
WARN_ON() if the non-remote version is used for a remote-style
access.
So at minimum this should be WARN_ON_ONCE(), to make it easier to recover some
meaningful kernel log from such incidents.
I went to go fix this in the code but realized that I coded it up as
WARN_ONCE(). The description was just imprecise. So I won't be sending
a code fix for this.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>