Received: by 10.223.176.46 with SMTP id f43csp841640wra; Fri, 26 Jan 2018 07:45:10 -0800 (PST) X-Google-Smtp-Source: AH8x226Mg/x0De9k5aouhvk+527wso8/SVHvNZWyMTKwf0Dho/pMZwwjlOfNzP0lXmGotuMZISQI X-Received: by 10.99.182.12 with SMTP id j12mr16659481pgf.113.1516981510081; Fri, 26 Jan 2018 07:45:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516981510; cv=none; d=google.com; s=arc-20160816; b=An5jh4bVdMxFWJDxHSMfrci3yMbfTCoqqtVv4k5ByjLlKb2NJ4pPfFxRxCq2WJy6/g XQALBoWm8gxPiIXCCIwF4jwwXzyv7yi27ysKFBGqXGh2wf6hLCCt/9FuuwUnqhnJGfIH zJ2EmoNSXEQ8/BkpRWYJi/gHRPsn56HBhvJYwWi+K0QDsBH/5cp3QazcOjezOIw4njij mQgWCcI2yKpTv5NfLkFrSbn9oRnHb5Yu5qSswlsaTLd1r+UUqpsU6Xd5eSVVHL3L4RbE aoOAK+r6BOxTB4EAjnQb40gyjBte+Wny8IQaHSZCTsrluMK/Ijw0vUSrIhKpaMU+pLi5 6xlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:organization:references :in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=8v0kStRSg0LUHWpd3iwLRk94yNNhnhJnac+ikwiqqoo=; b=PUg4nLYuhSdPddrNu4ZYQ02TwZt6G/TiOQoASEszkCNyPpVG9sLbVVOi/Wv2z7JJBL Auwqi0BOmPC4a1WYcaChZPNKIGoqYX1/uC/KRx9LphfxD/JEGapeJpo7qGK9LxdO7vn8 6I1S9jQIOAV9hYFX6vdZ8zATQnVLfhlQbxo1CjPGusbDOGVQ2WuOuXwaQTafLM/9/w/+ hgsxTHkF7q90vquCedx530gHhmHctDk3gUZxCQOepfH8d588jJbdAXJauR18++60dwMy exbNdQwRjLSIzbQ7n++/W2kH8P+KDbt6mKC3M/TOWoFGAVDaTcWbG8ZO0eUNMIArXCiS J/WQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v25si6427533pfe.378.2018.01.26.07.44.55; Fri, 26 Jan 2018 07:45:10 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751875AbeAZPoc (ORCPT + 99 others); Fri, 26 Jan 2018 10:44:32 -0500 Received: from mx1.redhat.com ([209.132.183.28]:45567 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750730AbeAZPoa (ORCPT ); Fri, 26 Jan 2018 10:44:30 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8DCEC3DE3D; Fri, 26 Jan 2018 15:44:30 +0000 (UTC) Received: from haswell-e.nc.xsintricity.com (ovpn-120-73.rdu2.redhat.com [10.10.120.73]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7DC875457F; Fri, 26 Jan 2018 15:44:29 +0000 (UTC) Message-ID: <1516981468.27592.200.camel@redhat.com> Subject: Re: [PATCH] IB/mthca: Fix how mthca_map_user_db() calls gup From: Doug Ledford To: Davidlohr Bueso , Jason Gunthorpe Cc: roland@purestorage.com, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, Davidlohr Bueso Date: Fri, 26 Jan 2018 10:44:28 -0500 In-Reply-To: <20180125192727.dkwuqel3xfut66wj@linux-n805> References: <20180123205459.432-1-dave@stgolabs.net> <1516898063.27592.136.camel@redhat.com> <20180125175048.GG10706@ziepe.ca> <1516903584.27592.183.camel@redhat.com> <20180125185330.GH10706@ziepe.ca> <20180125192727.dkwuqel3xfut66wj@linux-n805> Organization: Red Hat, Inc. Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-IrJSZj5Btdbj6ipVG5gZ" Mime-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Fri, 26 Jan 2018 15:44:30 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-IrJSZj5Btdbj6ipVG5gZ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 2018-01-25 at 11:27 -0800, Davidlohr Bueso wrote: > On Thu, 25 Jan 2018, Jason Gunthorpe wrote: >=20 > > >=20 > > > Since the original post was referred to an ABBA deadlock, wouldn't we > > > have to drop db_tab->mutex, then grab both in the proper order? > >=20 > > I had understood that was only a concern because Davidlohr was having > > trouble proving the callchain didn't include mmap_sem already.. > >=20 > > I can see the call chain all ends on verbs ops, and I know verbs ops > > with ucontext's are never called under mmap_sem by the core code.. >=20 > Right. Ok so this simplifies things and we can just use gup_fast(). >=20 > Thanks, > Davidlohr Thanks, applied. --=20 Doug Ledford GPG KeyID: B826A3330E572FDD Key fingerprint =3D AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD --=-IrJSZj5Btdbj6ipVG5gZ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEErmsb2hIrI7QmWxJ0uCajMw5XL90FAlprTNwACgkQuCajMw5X L91b2A//R0K8QWltWlrcMP9gW0JVm8G/s5SrlCZAsR/S3X48ojiPG0tma9cZKrF5 Zj21/mUrL2m3deYF7qOHGyXYlADFy8Z/azHJDRMBK9/IbVsItoJ28sEDhjWbvhcx YlGe3jjwO+PgEms6Z8Zlo5cRlOyMH4pL/w2Q8Rw53sv+KMbSvT0zqXjip2cMVNOQ Wu9l6IhU48NwzTDnd5akp0wkaVi6W2GG88huEfvmSnBiB78wmZK0BN5UsviSvjFE y8KgXvLioQ7Xev0DrfuauxPfqoTOvngGJYyE21/8N+08cSEB2jGKiaAphJC5iEyN 2Q9/dcvFZmdrrVS7oQt8maczuXLOqsakVgxRjApbaV4/MnKQsanrr8qMg+w0B/Py QO/09AfufIeJ6ZpEJr57Tc2y8dmMKtTmWqGXgb7kLoXAPPgQeH4L/rkCcHmHIXro W/1VomVCrOm9Y0L7pyFavuvjbtLjEul7TOx+EqgFz4gY79EIYytRt3wbhTLynrwh JJgBDeWchgQQTGwuaPaEuhhwbU/JEJWUEM0nLOzZD/31GIyOXyKHxhDknr+86vIm kKchYdkA1/oZHyjfxHuXaGG8/obvYyBzV2blsSjoP1uXJuXuo03psKU9TQRvHUiv dPIj7KiHVl+InwIup7dyTcbTDAScFLh45239S1ly7NNJKQDcFxY= =Gqkv -----END PGP SIGNATURE----- --=-IrJSZj5Btdbj6ipVG5gZ--