From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 920F5C19759 for ; Thu, 1 Aug 2019 16:35:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 725512173E for ; Thu, 1 Aug 2019 16:35:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733025AbfHAQfA (ORCPT ); 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-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@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.