From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 Date: Thu, 1 Aug 2019 18:34:53 +0200 From: Christoph Hellwig 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> Sender: linux-xfs-owner@vger.kernel.org List-ID: List-Id: xfs 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 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.