Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1250587ybl; Fri, 23 Aug 2019 16:11:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqzCd9+he5QsvtzKBA5ghIwiqPHNJIpgCQ3vFPPeI8/jwiaZCu5FJg68BNtUVVJQfyZphhsc X-Received: by 2002:a17:902:424:: with SMTP id 33mr7507743ple.34.1566601912883; Fri, 23 Aug 2019 16:11:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566601912; cv=none; d=google.com; s=arc-20160816; b=vu+Uu1r5Y0ZHtKnSbzKS1Yk4OHVBIZ5OchLWeG4L1W5MDXnsB+jCB+4hDLoDYGVaSb VIszNuAsY+1VcVXo8TyTDqz+u6IB2KHToJtZDOL88jreNlVnrCqRHdLvAMyL+caVU+S0 YcBDN0O0FoqGApVQCrasSs2pjVqOM05w79Vm9tbHl2bzEQ5f5qterXH0y0fZf/ZCWgy8 2QO4/eeKF/GPDRu8rFH2o1wUNYcZ2zmcjshBikhiZZinmgMCUWCswylMHhpZi8P7GxVi WN25It4rYMlj+iyUEVRIx1JblG6Ay9kLEswoBOqY8F+UZ+ntw5NCVGeDC4vUFEGXubCZ izAw== 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:dkim-signature; bh=uHLV+X5Nu9kdupcLl6QyNhVoeF56IJpkiVx881w4xyU=; b=zatQ7LDcA54+eUPS5Vrr23fZbGjy4Jh7I5ds6Kx+2C3DdXa3r2WHyh8gaQMlhiNvnt FkevssSN7Vh1vdERb0D/71ixFaWDLTzQVOrWGE6SSPhMKypmdA5vX6SAxN49UUwQTksx AOslhN6AL/4dY9Y8iB/cAomIufeoymzFgx4OXtpR83BaY06AU341k1oY3cvNuP2CrJAd 2+lPPxGOjc9CbkE/SHRdqnJAAtrJtzrWO3EWRv6JFpCPmWpKyCFgKkOnB8dUtjrEOEIE zpQeyTy7BIOrz6h1IY+x/8rLgpOCj3xONpAko28WbUa8TxIkG06aHWQcKZf3RhCpiX13 mvCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b="TO/zMCga"; 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 d9si2843356pgv.577.2019.08.23.16.11.37; Fri, 23 Aug 2019 16:11:52 -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; dkim=pass header.i=@ziepe.ca header.s=google header.b="TO/zMCga"; 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 S2391055AbfHWMMh (ORCPT + 99 others); Fri, 23 Aug 2019 08:12:37 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:33731 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387591AbfHWMMg (ORCPT ); Fri, 23 Aug 2019 08:12:36 -0400 Received: by mail-qt1-f196.google.com with SMTP id v38so10965603qtb.0 for ; Fri, 23 Aug 2019 05:12:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=uHLV+X5Nu9kdupcLl6QyNhVoeF56IJpkiVx881w4xyU=; b=TO/zMCgaYxZo8mC7MiMyiIF5tf8rjPTmanAanDvQkRfnbdCtKCevQPRbWd30bsadL2 9Ks4DuTp1VCXO9mhwea6ttz7dnvJMBATPR9Fjglzo+36gxOQ00sgsRCizYSPBXboKf0P i2BRx0IeNyOFZzI6ziBwFsDsH3U9aXTACwWZTmlgo3HvfXzT8KPFlXYHC5eHnTWbAjE2 QqRczwJcJCvH3YN1DzJ4O2XlJEXAeouxe/lBDWIjmhVOlu6fjv2XOegsktNMwd89HgN2 MEcz4o79i/h8U1i77EnDu2UhWMDKpyr9rxiAS7PYVa2mu38BZ+KxgHkHNpVCjNeccg3J W1fQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=uHLV+X5Nu9kdupcLl6QyNhVoeF56IJpkiVx881w4xyU=; b=mFyERY9CtgBcyHPRi4SQLaSqwMmfeyrn2QQS+fZf0Cag4AywrdyUR7i82Y5lerWINv FNsN+ig3rA4g42wNoddMvqmn8q3MvArObC8aZJa0CF4C+aiAld65G2ZxBeoLfbg/iDzq b7Re52WYmp956fwbL+uwn3I4bTsD9k+cxECm3mFpR6xAroWhBqjo7D4gRf8ttxHRMjat ZpHAo9zZHRxcEWom4wdjtVAPrUGJlME9VU3OiJnrY+nDFF1CZC6OA3VHxMw+EMLiGzV6 +Y3VprhABQ9RnOQ6V0moKsJs9iPNwNtHnx/pTf182Wr6oQkAVVg8Jr4/MNUSSSW2+5te e33Q== X-Gm-Message-State: APjAAAV1JrWZvKIe9EDWUSxGQ8tjc4PUrolQoFvYDiqSU4h7jtCNHWU7 It2XJ5iWajhnqM9y9QEsDKTXYQ== X-Received: by 2002:a0c:e64d:: with SMTP id c13mr3551719qvn.80.1566562355919; Fri, 23 Aug 2019 05:12:35 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-156-34-55-100.dhcp-dynamic.fibreop.ns.bellaliant.net. [156.34.55.100]) by smtp.gmail.com with ESMTPSA id c23sm1110853qtp.3.2019.08.23.05.12.35 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 23 Aug 2019 05:12:35 -0700 (PDT) Received: from jgg by mlx.ziepe.ca with local (Exim 4.90_1) (envelope-from ) id 1i18Qk-0003fK-Vg; Fri, 23 Aug 2019 09:12:34 -0300 Date: Fri, 23 Aug 2019 09:12:34 -0300 From: Jason Gunthorpe To: Daniel Vetter Cc: Andrew Morton , LKML , Linux MM , DRI Development , Intel Graphics Development , Peter Zijlstra , Ingo Molnar , Michal Hocko , David Rientjes , Christian =?utf-8?B?S8O2bmln?= , =?utf-8?B?SsOpcsO0bWU=?= Glisse , Masahiro Yamada , Wei Wang , Andy Shevchenko , Thomas Gleixner , Jann Horn , Feng Tang , Kees Cook , Randy Dunlap , Daniel Vetter Subject: Re: [PATCH 3/4] kernel.h: Add non_block_start/end() Message-ID: <20190823121234.GB12968@ziepe.ca> References: <20190820081902.24815-1-daniel.vetter@ffwll.ch> <20190820081902.24815-4-daniel.vetter@ffwll.ch> <20190820202440.GH11147@phenom.ffwll.local> <20190822161428.c9e4479207386d34745ea111@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 23, 2019 at 10:34:01AM +0200, Daniel Vetter wrote: > On Fri, Aug 23, 2019 at 1:14 AM Andrew Morton wrote: > > > > On Tue, 20 Aug 2019 22:24:40 +0200 Daniel Vetter wrote: > > > > > Hi Peter, > > > > > > Iirc you've been involved at least somewhat in discussing this. -mm folks > > > are a bit undecided whether these new non_block semantics are a good idea. > > > Michal Hocko still is in support, but Andrew Morton and Jason Gunthorpe > > > are less enthusiastic. Jason said he's ok with merging the hmm side of > > > this if scheduler folks ack. If not, then I'll respin with the > > > preempt_disable/enable instead like in v1. > > > > I became mollified once Michel explained the rationale. I think it's > > OK. It's very specific to the oom reaper and hopefully won't be used > > more widely(?). > > Yeah, no plans for that from me. And I hope the comment above them now > explains why they exist, so people think twice before using it in > random places. I still haven't heard a satisfactory answer why a whole new scheme is needed and a simple: if (IS_ENABLED(CONFIG_DEBUG_ATOMIC_SLEEP)) preempt_disable() isn't sufficient to catch the problematic cases during debugging?? IMHO the fact preempt is changed by the above when debugging is not material here. I think that information should be included in the commit message at least. But if sched people are happy then lets go ahead. Can you send a v2 with the check encompassing the invalidate_range_end? Jason