Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp4037688imj; Tue, 12 Feb 2019 08:45:47 -0800 (PST) X-Google-Smtp-Source: AHgI3IYqo5CooQin7Vt45sSkbSz+miQSBC/WcrZEFq7xIHmNGvH2E5JD0/yb9oHu0k316o2UfZkU X-Received: by 2002:a17:902:32c3:: with SMTP id z61mr4887403plb.114.1549989947111; Tue, 12 Feb 2019 08:45:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549989947; cv=none; d=google.com; s=arc-20160816; b=sar61PowX+F5xDpMHRDjVo6S7kGwSEX76hm6NVd61eJMlPIsER6SvTXgDsZ7SfDDKe AEUyK0BHQcghW3Zt1PBtoZlAVZLLIiqcCdT9In2pbsi77rJRC6PFT1j5e/F9rfUPBh8/ efoLYTEIcT7t7i6vXEL7DDKmt/Ure9mDjm3Uu0O0Egw7haeEcQckQYKTK/zh1OYeN9ZV kWKAUG3zhLZ/pZKXCghRTKjzrQpq9McHM7rv4xMDf9UQF31q0qBYm4LkflfxeUU/IikB d1RRWaMFL0vVKasGG5VHGCRKvk0i3/5tjOHgV5XJj/fWJ6oqf3cg7VHgGMfFr8I3Z88u bhZQ== 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=4O1Y4RP95JS27d17ct9edQQL17Rs4/Xf89dgVmP+zv4=; b=uNGfEZk1iIndkuMPuXRRkLOnG5zoHPUyNOkNjZrzIbZbjvuq8L/xoBwRBH3s8ycbh2 5HAUUr7EqA46sga2ffRCnpZLOYGTG0XxkaEL15QJWEYrELWUzVWPxnyRwjTZ8Dsl/D9p ecFeroZJdweGhv85DU+sLI6Um3PGFvEN0adCfq8Ft1M0CmFDLwVX8KcaGf0JS2wmvKBA Tvr+0p6IOnWjeY9jOpYqp13834thmOBl5Yyw4OOKsEzLY+eaq6aQFLkU6uzpHzun+TK6 smaN8XW8GZYc6IZgBD/qGinRaVDYpJaDOwD2wV+m7KHOJ1kJOp+T7LLDZYwQsCpf5NuM TdVQ== 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 w24si8896558ply.166.2019.02.12.08.45.30; Tue, 12 Feb 2019 08:45:47 -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 S1731186AbfBLQoz (ORCPT + 99 others); Tue, 12 Feb 2019 11:44:55 -0500 Received: from mx2.suse.de ([195.135.220.15]:40808 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728035AbfBLQoz (ORCPT ); Tue, 12 Feb 2019 11:44:55 -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 AB6ADAF50; Tue, 12 Feb 2019 16:44:53 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id 7FD1F1E09C5; Tue, 12 Feb 2019 17:44:52 +0100 (CET) Date: Tue, 12 Feb 2019 17:44:52 +0100 From: Jan Kara To: Christopher Lameter Cc: Dan Williams , Jason Gunthorpe , Matthew Wilcox , Ira Weiny , Jan Kara , Dave Chinner , Doug Ledford , lsf-pc@lists.linux-foundation.org, linux-rdma , Linux MM , Linux Kernel Mailing List , John Hubbard , Jerome Glisse , Michal Hocko Subject: Re: [LSF/MM TOPIC] Discuss least bad options for resolving longterm-GUP usage by RDMA Message-ID: <20190212164452.GF19076@quack2.suse.cz> References: <20190211102402.GF19029@quack2.suse.cz> <20190211180654.GB24692@ziepe.ca> <20190211181921.GA5526@iweiny-DESK2.sc.intel.com> <20190211182649.GD24692@ziepe.ca> <20190211184040.GF12668@bombadil.infradead.org> <20190211204945.GF24692@ziepe.ca> <01000168e2913f2e-56010847-a10b-407e-b4eb-7730164267de-000000@email.amazonses.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <01000168e2913f2e-56010847-a10b-407e-b4eb-7730164267de-000000@email.amazonses.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 12-02-19 16:36:36, Christopher Lameter wrote: > On Mon, 11 Feb 2019, Dan Williams wrote: > > > An mmap write after a fault due to a hole punch is free to trigger > > SIGBUS if the subsequent page allocation fails. So no, I don't see > > them as the same unless you're allowing for the holder of the MR to > > receive a re-fault failure. > > Order 0 page allocation failures are generally not possible in that path. > System will reclaim and OOM before that happens. But also block allocation can fail in the filesystem or you can have memcgs set up that make the page allocation fail, can't you? So in principle Dan is right. Page faults can and do fail... Honza -- Jan Kara SUSE Labs, CR