Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754175Ab3JBQZU (ORCPT ); Wed, 2 Oct 2013 12:25:20 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:44348 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753839Ab3JBQZT (ORCPT ); Wed, 2 Oct 2013 12:25:19 -0400 Date: Wed, 2 Oct 2013 09:25:19 -0700 From: Christoph Hellwig To: Jan Kara Cc: LKML , linux-mm@kvack.org Subject: Re: [PATCH 16/26] mm: Provide get_user_pages_unlocked() Message-ID: <20131002162519.GA9886@infradead.org> References: <1380724087-13927-1-git-send-email-jack@suse.cz> <1380724087-13927-17-git-send-email-jack@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1380724087-13927-17-git-send-email-jack@suse.cz> User-Agent: Mutt/1.5.21 (2010-09-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 844 Lines: 22 On Wed, Oct 02, 2013 at 04:27:57PM +0200, Jan Kara wrote: > Provide a wrapper for get_user_pages() which takes care of acquiring and > releasing mmap_sem. Using this function reduces amount of places in > which we deal with mmap_sem. > > Signed-off-by: Jan Kara Seem like this should be the default one and the one without the locked should be __unlocked. Maybe a grand rename is in order? get_user_pages_fast -> get_user_pages get_user_pages_unlocked -> __get_user_pages get_user_pages_unlocked -> __get_user_pages_locked steering people to the most sensible ones by default? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/