From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965120AbcBQSQA (ORCPT ); Wed, 17 Feb 2016 13:16:00 -0500 Received: from www.sr71.net ([198.145.64.142]:57192 "EHLO blackbird.sr71.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752257AbcBQSP7 (ORCPT ); Wed, 17 Feb 2016 13:15:59 -0500 Subject: Re: [PATCH 02/33] mm: overload get_user_pages() functions To: Ingo Molnar , Linus Torvalds , Andrew Morton References: <20160212210152.9CAD15B0@viggo.jf.intel.com> <20160212210155.73222EE1@viggo.jf.intel.com> <20160216083606.GB3335@gmail.com> Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, x86@kernel.org, dave.hansen@linux.intel.com, srikar@linux.vnet.ibm.com, vbabka@suse.cz, kirill.shutemov@linux.intel.com, aarcange@redhat.com, n-horiguchi@ah.jp.nec.com, jack@suse.cz From: Dave Hansen Message-ID: <56C4B8DD.5040404@sr71.net> Date: Wed, 17 Feb 2016 10:15:57 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <20160216083606.GB3335@gmail.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/16/2016 12:36 AM, Ingo Molnar wrote: >> > From: Dave Hansen >> > >> > 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.