Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp99405ybi; Thu, 1 Aug 2019 15:23:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqyHCA1ZH+et7W1Eetm52ivdUdmI8RiqKKBGOPlMZgYWZ3PXAsJAdCvlMFgiIXbLiErJqVLI X-Received: by 2002:a62:3883:: with SMTP id f125mr56387599pfa.258.1564698198303; Thu, 01 Aug 2019 15:23:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564698198; cv=none; d=google.com; s=arc-20160816; b=v3Sxv2T7RQY3MvZkitcNhMmyLj0whdlsT51BJvH1k9vpQSW42C89U48jQ/+6T2KJU7 9v6BMQhrc92oBjmrXH/1HRCZ9bb3Ul48P4DnMTluPN8+Ya4etZkk76plXKOykGP3lCeW rYicBU+0UH7Ad7hxuzOdv+sLH8F+fMw2nsQ80NkrqXfH/EcsJjS6feC+/qZZ2sNR8Lwl SBRRgPgP+SRseBUuQMFX5S/tWDib76RhrkWkxpgr2pxVQDE7UT5oYGFSnhH3rfEmSD50 2A6wgwZ58G1gZcM3/X1HtIN6IPcFW2yYLhPX/kW27csYt0SReMrso1nCrqvaplimZgKF luyA== 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:message-id:subject:cc :to:from:date; bh=wd/uvyVistMMZqkIkGgugsxYNFCDee9kW29QUrH3MiY=; b=mPzmpABZaos/Sq9bOJPWZNkN+ZNXnnOx2iD7QvrcW4tlMhlm8+vA3XdiKfz6pFfn5y qWe6MpxzLa0PmMtkMgdsirU6/tR2NQecBs6Hn7m6oEuXhVP3ohdokB0WMNQJTPFN5Ogv oK/aOgQ5gy8bdGFHRmly0wFizMTHubp8/fIYVcSpSEKaSWv2Enu6iTJ+cg3KnOvs6SnG 6uwYl80MwaD9w6U4Fpb/G3dOBUB8wYF+4x1mYzcthuGuXR191yUNIvD30tnBn5sTFYEr cUQQFT3ZtvPNdkrFAs/BIUajIGqyt8+NZfkQzRsZjgQ6bDM+KU4i6/GKlc69LnlXAZ9t CAkA== 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 k192si38015962pge.222.2019.08.01.15.23.02; Thu, 01 Aug 2019 15:23:18 -0700 (PDT) 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 S1733030AbfHAQfA (ORCPT + 99 others); Thu, 1 Aug 2019 12:35:00 -0400 Received: from verein.lst.de ([213.95.11.211]:44885 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727024AbfHAQfA (ORCPT ); Thu, 1 Aug 2019 12:35:00 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 66C4868AFE; Thu, 1 Aug 2019 18:34:53 +0200 (CEST) Date: Thu, 1 Aug 2019 18:34:53 +0200 From: Christoph Hellwig To: Jason Gunthorpe Cc: Christoph Hellwig , john.hubbard@gmail.com, Andrew Morton , Al Viro , Christian Benvenuti , Christoph Hellwig , Dan Williams , "Darrick J . Wong" , Dave Chinner , Ira Weiny , Jan Kara , Jens Axboe , Jerome Glisse , "Kirill A . Shutemov" , Matthew Wilcox , Michal Hocko , Mike Marciniszyn , Mike Rapoport , linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-xfs@vger.kernel.org, LKML , John Hubbard Subject: Re: [PATCH v4 1/3] mm/gup: add make_dirty arg to put_user_pages_dirty_lock() Message-ID: <20190801163453.GA26588@lst.de> References: <20190730205705.9018-1-jhubbard@nvidia.com> <20190730205705.9018-2-jhubbard@nvidia.com> <20190801060755.GA14893@lst.de> <20190801141906.GC23899@ziepe.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190801141906.GC23899@ziepe.ca> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 01, 2019 at 11:19:06AM -0300, Jason Gunthorpe wrote: > Sadly usnic does not use the core rdma umem abstraction but open codes > an old version of it. > > In this version each sge in the sgl is exactly one page. See > usnic_uiom_get_pages - so I think this loop is not a bug? Actually, yes - I think we are fine given that we pass in the number of elements. Thus merging by iommus won't affect the list.