From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750993AbeAUXjt (ORCPT ); Sun, 21 Jan 2018 18:39:49 -0500 Received: from zeniv.linux.org.uk ([195.92.253.2]:43304 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750877AbeAUXjs (ORCPT ); Sun, 21 Jan 2018 18:39:48 -0500 Date: Sun, 21 Jan 2018 23:39:43 +0000 From: Al Viro To: Davidlohr Bueso Cc: starvik@axis.com, jesper.nilsson@axis.com, akpm@linux-foundation.org, linux-cris-kernel@axis.com, linux-kernel@vger.kernel.org, Davidlohr Bueso Subject: Re: [PATCH] arch/cris: use get_user_pages_fast() Message-ID: <20180121233943.GO13338@ZenIV.linux.org.uk> References: <20180121225929.11782-1-dave@stgolabs.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180121225929.11782-1-dave@stgolabs.net> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jan 21, 2018 at 02:59:29PM -0800, Davidlohr Bueso wrote: > Since we currently hold mmap_sem across both gup calls (and > nothing more), we can substitute it with two _fast() > alternatives and possibly avoid grabbing the lock. > > This was found while adding mmap_sem wrappers, and was also > previously reported by Al: https://lkml.org/lkml/2017/11/17/777 See commit 9a949e8ff92246c0753b2805c2a001cb991fffe5 Author: Al Viro Date: Sat Nov 18 14:37:46 2017 -0500 cris: switch to get_user_pages_fast() no point holding ->mmap_sem over both calls. Signed-off-by: Al Viro in -next...