Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9853069ybi; Wed, 24 Jul 2019 11:05:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqyHTFwBQw8fUJajy0eQGAzGU6pHPKEMzYp99FHJonMfA+p/kENcD76IqmKlzmL/Zd8wIeEr X-Received: by 2002:a65:6552:: with SMTP id a18mr73264410pgw.208.1563991529593; Wed, 24 Jul 2019 11:05:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563991529; cv=none; d=google.com; s=arc-20160816; b=qcMceKDrYSZ+ZKvggRJqfGTGIIL5uFNshkbq2Mn7/vVB93EAAxu0wmzqQJKdMmgKbc 2gUm33U7Zcku5Fi3FMVvYjNmNSsotJdQTfe8v2WicGf0037gbXe6npoSkSujGOkgc4y6 IS0zamRl94fzLKQUykamf20WcJ3TyhYR81Qbt1W2peN4JEMetNwRTl+Zpa/jrIF1moM0 yM7it+tf+ItB+xs/iTIaEHFFKJX6/YOIWMoa3fFnQq7R05Y4jCF3cVDj1V0AcytFG9Rx msMdPlTlA22FeeW/bEVnog8Gd+Gd2IJkELBRYQWt07desEy9C7nYOGnERMGjcdOJ9cSz v4Yg== 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=aYqFuVbIceuvB8Jx4tRdiElbYRSPZWx1ZRUhiY/KmWc=; b=dUxdvriOl2tbuptxhWB5rmbp1OdDr4QCe71jdPXcMM/IoB/3iGBS0Wm1JHLtZFiW2G HqSmEdk4rwG8ZxiF0bGETgzzR7GSJF500sdEl1+vvgnTqo9ALSa8QI9KogMNVhpHLnu8 cm6S1lwqaO/pGOg8vz92Gf6GqpwUL1nN2ydyWWpKn++a9sbW6v+k7AoSE+WMfJCbLHQ4 zFB5fNPcEbDbR5H8WFFRi5IQLTTci1vBdJNCQk8qqSMNm1W04B1PltZ23b3kP0Ra8/XD RYbD7ZH8t+s7xHGvqyUiGOJXIyf/TJQAx5Htwxy5O75QYsA4pDP2Py3ULu3bZWfd+Ls6 wO/g== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h129si17188048pgc.508.2019.07.24.11.05.13; Wed, 24 Jul 2019 11:05:29 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728079AbfGXSAY (ORCPT + 99 others); Wed, 24 Jul 2019 14:00:24 -0400 Received: from mx2.suse.de ([195.135.220.15]:33504 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726298AbfGXSAY (ORCPT ); Wed, 24 Jul 2019 14:00:24 -0400 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 167CFADA2; Wed, 24 Jul 2019 18:00:23 +0000 (UTC) Date: Wed, 24 Jul 2019 20:00:22 +0200 From: Michal Hocko To: Christoph Hellwig Cc: Jason Gunthorpe , Ralph Campbell , linux-mm@kvack.org, linux-kernel@vger.kernel.org, nouveau@lists.freedesktop.org, dri-devel@lists.freedesktop.org, =?iso-8859-1?B?Suly9G1l?= Glisse , Ben Skeggs Subject: Re: [PATCH] mm/hmm: replace hmm_update with mmu_notifier_range Message-ID: <20190724180022.GD6410@dhcp22.suse.cz> References: <20190723210506.25127-1-rcampbell@nvidia.com> <20190724070553.GA2523@lst.de> <20190724152858.GB28493@ziepe.ca> <20190724153305.GA10681@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190724153305.GA10681@lst.de> 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 Wed 24-07-19 17:33:05, Christoph Hellwig wrote: > On Wed, Jul 24, 2019 at 12:28:58PM -0300, Jason Gunthorpe wrote: > > Humm. Actually having looked this some more, I wonder if this is a > > problem: > > What a mess. > > Question: do we even care for the non-blocking events? The only place > where mmu_notifier_invalidate_range_start_nonblock is called is the oom > killer, which means the process is about to die and the pagetable will > get torn down ASAP. Should we just skip them unconditionally? How do you tell whether they are going to block or not without trying? -- Michal Hocko SUSE Labs