Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp763476imj; Thu, 7 Feb 2019 11:26:27 -0800 (PST) X-Google-Smtp-Source: AHgI3IZBUqoHW90hoxZA+mvNe6/dMWOYpLxATrx22dtaoW9pGl4020ZW2FLIxI9mMZZGoJqOpVml X-Received: by 2002:a62:cf02:: with SMTP id b2mr18350852pfg.183.1549567587618; Thu, 07 Feb 2019 11:26:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549567587; cv=none; d=google.com; s=arc-20160816; b=HoKyhBIrAPO5oj456oWJRpKDHiTPLWn6Cbp/zjVcsrzz2CC9K2eSXDEvPfaEba7HZv i/3zgUBszLMv2YOBkA5h3Ltgfu1/oafoZHTAUyMHKXZy4U6S7VbrOEo8hUaRVUBCp14w 4bKE3a0YBKpA5WQE1wffBbZGgZ1k3i6pLHJJuBSRkCMkJvRedQLq4KlNsaML5nFuo/PS iPEA9ClHAB39ucoGlhHfIMgovCvwYK7L7ozexAHI0gzLuoUvtjcJ44EULSInLrkMv1l/ QxNaPyguGQkLkgbHOXvio+rimlMUXMN9MC6oHEhG26z1Z/XpanUN8T6FL5idviYD7dOD aNXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date; bh=vCUtK4xdm3mL3qxQAX0IUB7gf44E9r0R4/l21bx323o=; b=EjPk0rPphaxhIQ3D2vWMSOJJCTy6nqVX3S8Kxttz/i2Vn3BYsSnCDAI/d23M68f+Ru fv201IGtsaOznNUUyXVCkEqhzG2rRvk0U0j7D4fLZaFT+l8KL8v1yDXkKUrSbVZ1bIh4 9JhV4+NVayeFf/3x69Oo1BShIyn0eV63SKm4+VnpBYJrnS2j+NqWfDvY7FO2Oz00q7Us 47uKgSrcBI3ydTg0r13nfkMK2d56zzUhQyCuMAA3ETt4CxamHHHxxqKuUGiapNXYep9b uW/r4mqydGBQ+BHSqNrI/uH2vxAcGiLNkxVnmSGMPdDfHEhXARepz0B7Ur7PPkaUF4lm aJwg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d4si3188906pla.58.2019.02.07.11.26.11; Thu, 07 Feb 2019 11:26:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726952AbfBGT0G (ORCPT + 99 others); Thu, 7 Feb 2019 14:26:06 -0500 Received: from mx2.suse.de ([195.135.220.15]:36472 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726654AbfBGT0F (ORCPT ); Thu, 7 Feb 2019 14:26:05 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 68F3DAF29; Thu, 7 Feb 2019 19:26:04 +0000 (UTC) Date: Thu, 7 Feb 2019 11:25:55 -0800 From: Davidlohr Bueso To: Paul Burton Cc: "akpm@linux-foundation.org" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Ralf Baechle , James Hogan , "linux-mips@vger.kernel.org" , Davidlohr Bueso Subject: Re: [PATCH 2/2] MIPS/c-r4k: do no use mmap_sem for gup_fast() Message-ID: <20190207192555.n3qtle4yqmfb2tpo@linux-r8p5> Mail-Followup-To: Paul Burton , "akpm@linux-foundation.org" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Ralf Baechle , James Hogan , "linux-mips@vger.kernel.org" , Davidlohr Bueso References: <20190207053740.26915-1-dave@stgolabs.net> <20190207053740.26915-3-dave@stgolabs.net> <20190207190007.jz4rz6e6qxwazxm7@pburton-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20190207190007.jz4rz6e6qxwazxm7@pburton-laptop> User-Agent: NeoMutt/20180323 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 07 Feb 2019, Paul Burton wrote: >Hi Davidlohr, > >On Wed, Feb 06, 2019 at 09:37:40PM -0800, Davidlohr Bueso wrote: >> It is well known that because the mm can internally >> call the regular gup_unlocked if the lockless approach >> fails and take the sem there, the caller must not hold >> the mmap_sem already. >> >> Fixes: e523f289fe4d (MIPS: c-r4k: Fix sigtramp SMP call to use kmap) >> Cc: Ralf Baechle >> Cc: Paul Burton >> Cc: James Hogan >> Cc: linux-mips@vger.kernel.org >> Signed-off-by: Davidlohr Bueso > >Thanks - this looks good, but: > > 1) The problem it fixes was introduced in v4.8. > > 2) Commit adcc81f148d7 ("MIPS: math-emu: Write-protect delay slot > emulation pages") actually left flush_cache_sigtramp unused, and has > been backported to stable kernels also as far as v4.8. > >Therefore this will just fix code that never gets called, and I'll go >delete the whole thing instead. Even better. Thanks, Davidlohr