Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp88252ybl; Thu, 15 Aug 2019 13:13:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqxjrrJ1l7TU1VZV8mkLpF70EU0ZXbzy8fNVJWqxj4CsTil+kJGDc3RENYd6chR9V5YHURL/ X-Received: by 2002:a63:593:: with SMTP id 141mr4756212pgf.78.1565899984658; Thu, 15 Aug 2019 13:13:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565899984; cv=none; d=google.com; s=arc-20160816; b=TS+MdEXVNJYo2jlkPoIDzsAxpk1wrBM78RKppwbv5UMxyN+8Mbs2Eff6415ooIY97H lCSNI1AJBOxPE9HzEbq8NHFadWyZzqdQVZ4hORjviJzbcWN+1mAWynfhfZG9WD/P8Snp zZAcHG9jJYM/7v/l9A3HvzLWNpzhUT6kdJLOzgcncNC/82ax13kwi5arWAhz9Qj0t5tB q/lrc/4Cs2TxyqHypEobNrBlROpaaRdrNWLTr+Zil+aqYpCNnancigLCxvfGpsy3z5A7 OHr4DY3IFpaQk15mC3cKmD2bPgGJATbcNzd9p/f57iwgA1zcsgzDV5sh+e/oxYzn9P++ 9YyQ== 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=nHlPwI6h/V625xmzih5wA+jOZNnzWd66O1xd1ERtpeE=; b=Db7HvZ6OncQOBgdABMFh7rTkVPsRf9qNqh+xxuKxIpHS+H+ZJNWLIpAmL4j5LtR1l7 +FhraMVUGXoF+X+Y8nCuYq/lUANNALoZ+jQn7GMnLT6DUL9TWbrDqz9mEejIdGOrMqEO DghgmpoNkYK/hnW5YBMfVnUmuEYsPGOKWkEhbaExosRdCcIwYMeq+3mjjuW7s6grpzFb Z6e75MBRz9HPBLxwrwZylm+ztehhJBZlk9Lyntfc2QdykANj8KHG5QVlwUuXkkiTdrif aWNIB42hSEGzo63gZOmE9UfBOXntRocyCu7Z+miP03tpZ9323IlOyWNYnxVE7BjS6F8d St0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=fLiZ2GSX; 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 v4si2384523pgf.470.2019.08.15.13.12.48; Thu, 15 Aug 2019 13:13:04 -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=fLiZ2GSX; 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 S1731922AbfHOTSM (ORCPT + 99 others); Thu, 15 Aug 2019 15:18:12 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:40009 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726171AbfHOTSM (ORCPT ); Thu, 15 Aug 2019 15:18:12 -0400 Received: by mail-qt1-f196.google.com with SMTP id e8so3496751qtp.7 for ; Thu, 15 Aug 2019 12:18:11 -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=nHlPwI6h/V625xmzih5wA+jOZNnzWd66O1xd1ERtpeE=; b=fLiZ2GSX7TMO8JVXsK92o5Wv5m0RqWLHrj8ldc6pcgdf/mVcwYJ/SmzfhxHCh6qvro Tp/LRTHwR+hPxVCTqHVxXAXjxi6fc4tAfyhR1RyRsyzQVXJLf6Ntpn7unqRmmg7nz9kW jQg4Vn7bKCmHHHTEYyQhuMt4hE1kl1GgLUHrAvSjmpQHMZkPhSAdpeG8D7MLw6d1eTu0 iLXW2FSDnaipUWKPP6u/s2XT76Elan60y6/5YKCGhyTK5HlwouiKXxIOM8dmXH2nI8EK tPw4BeR8rwPZ4Eg/haH846mqKyfLdmRwJce0t+H6beAhcQLieFDthvRXszoHBgroe6sR UFZg== 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=nHlPwI6h/V625xmzih5wA+jOZNnzWd66O1xd1ERtpeE=; b=OmBoY4EKNkUyF3aQs4MOUrkHy1T2/RftK/11Zg6h0zXTEAnbte58PiLgdvXLhGy39l gQ4+HandG+l+0y/hqt0epgHGaLar2gYPYFvdkio/LPpXtJzugKJnaKp17C7OGToiW0Mf pKiJ25tymiZrOS0oza9xYXcHc9XWsPbqrObT3Mfeh4eDKrEgru8ZrkijYEmK3IcSLGrc k7/nlVkCz7CAaDFUqsQY3aQgQiaAQKVjuzmPDS0f1RkaDvNu7MTVSoXYfEqZxMetDq+P 33OwyQ/L8dWKs7eS3L4TgpWv33CSSRBMvlrrsuarR+i5dBWG3zl22Sw9vG3xyHu9EBeD HZdA== X-Gm-Message-State: APjAAAXtfQCIIwN9vaWkccW1U8qHehjWvZajpH3G30YMXLHpx3sWsfBM JeFX/doAirlSbBnoMJY7fGmFfQ== X-Received: by 2002:ad4:45d3:: with SMTP id v19mr4341304qvt.90.1565896691409; Thu, 15 Aug 2019 12:18:11 -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 h13sm1876510qkk.12.2019.08.15.12.18.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 15 Aug 2019 12:18:10 -0700 (PDT) Received: from jgg by mlx.ziepe.ca with local (Exim 4.90_1) (envelope-from ) id 1hyLGE-0007y8-Dp; Thu, 15 Aug 2019 16:18:10 -0300 Date: Thu, 15 Aug 2019 16:18:10 -0300 From: Jason Gunthorpe To: Michal Hocko Cc: LKML , linux-mm@kvack.org, DRI Development , Intel Graphics Development , Peter Zijlstra , Ingo Molnar , Andrew Morton , 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 2/5] kernel.h: Add non_block_start/end() Message-ID: <20190815191810.GR21596@ziepe.ca> References: <20190814235805.GB11200@ziepe.ca> <20190815065829.GA7444@phenom.ffwll.local> <20190815122344.GA21596@ziepe.ca> <20190815132127.GI9477@dhcp22.suse.cz> <20190815141219.GF21596@ziepe.ca> <20190815155950.GN9477@dhcp22.suse.cz> <20190815165631.GK21596@ziepe.ca> <20190815174207.GR9477@dhcp22.suse.cz> <20190815182448.GP21596@ziepe.ca> <20190815190525.GS9477@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190815190525.GS9477@dhcp22.suse.cz> 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 Thu, Aug 15, 2019 at 09:05:25PM +0200, Michal Hocko wrote: > This is what you claim and I am saying that fs_reclaim is about a > restricted reclaim context and it is an ugly hack. It has proven to > report false positives. Maybe it can be extended to a generic reclaim. > I haven't tried that. Do not aim to try it. Okay, great, I think this has been very helpful, at least for me, thanks. I did not know fs_reclaim was so problematic, or the special cases about OOM 'reclaim'. On this patch, I have no general objection to enforcing drivers to be non-blocking, I'd just like to see it done with the existing lockdep can't sleep detection rather than inventing some new debugging for it. I understand this means the debugging requires lockdep enabled and will not run in production, but I'm of the view that is OK and in line with general kernel practice. The last detail is I'm still unclear what a GFP flags a blockable invalidate_range_start() should use. Is GFP_KERNEL OK? Lockdep has complained on that in past due to fs_reclaim - how do you know if it is a false positive? Thanks again, Jason