Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1253454ybl; Fri, 23 Aug 2019 16:15:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqzTBLkiAYlDL1gM+8TeV7byksmdzPK5fktYOPEhr5C+I7TbGaJ/JNPY3xl+QAshYFCONNZw X-Received: by 2002:aa7:8e44:: with SMTP id d4mr7934768pfr.220.1566602117815; Fri, 23 Aug 2019 16:15:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566602117; cv=none; d=google.com; s=arc-20160816; b=Hn4i/UJ2KsURGGLkzRFm2/0abLl3WZ8FWO3kWds7VdEBe9aUBWAV7l7VPENcm6yEum 1PUOeQkziXP9znCH7SflBXEW1pdP1uNEPjKyEAeWhXjBiHLdTVAJ1pv/IHPHqIlIHS6F iMRSZp/U4tV6E4sV2HgWSxXaXyg6lAH7ZTbjhzI2Y4P2SSm+5WmDxkN+QYO9fSGTAnMw 7KGRcGKfQs0aX1tdfL+SwJQcyJ9+Ec5W/GtFE8HJQwZhhbYVJ4wd4Tm4mAjtPE7/J94C Xk5jT6UHtCNMeuQ2GqqTUEPSrC3L8E2ooavzGJo6Yg2l8g25FMoZSbhmJaxA0b+XgcLK BnJg== 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=V/BSRc/5Dyzi5nNWjFuzygHkjpKjWnqloHD8aW/Vxqo=; b=JqWWk5pNL+Myb7YbBF+Ktf4qabi3LRXBnlsshJqvOhmDaEgI2mXUuL8s7QTJ8/bzaG NKrgccd1D3R++IRjVLGUyurXUaiIclAl9TPM88BFFD0HGhEfSTo9dF2wcuyCGnISVqi6 TmRmjTgkItIR9y2p8v7r2ma6HF41QvlFbHQoL/7uFOzeK8KVxZOibrtAgM0UFfVo57fS uhyF5NaZt40DYWiMWGPH4R7SaGjO3q6O0IIMwuwNaNV4apRbDbHs76xSN1KUPy8X94R3 /KghVMZTM0/D7Fqpgn+JP/4pr+puUrqfp38LBPDMoZUqivlMfaRiKOFyV6evohbsB5D2 GdrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=QhVuHj1d; 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 f5si3579262plf.350.2019.08.23.16.15.02; Fri, 23 Aug 2019 16:15:17 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=QhVuHj1d; 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 S2391345AbfHWMW6 (ORCPT + 99 others); Fri, 23 Aug 2019 08:22:58 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:37870 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731856AbfHWMW6 (ORCPT ); Fri, 23 Aug 2019 08:22:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=V/BSRc/5Dyzi5nNWjFuzygHkjpKjWnqloHD8aW/Vxqo=; b=QhVuHj1dAZl1mSQGXJo2iAGCW hgIo2M3LHfplbLuqjQQKsp+jqghpnaWYkE+8TJagxpAooKMVQSfkyCiWzwg0J/FebKHV2fgd5dRkD 62k1PTj5cLwTATA9cUqki8XfXOsA+hV4kL5THNjT0pglSIqU3PgXGRmhGuQI+/mv+yaebEm22DsFZ NsW/tHvQOSWbR9a8c7n66Br1OziopIZBpxN0M1Rr5TYPorCcXRqMoWvj4KXCSJZtqjcrT7O74s0uW yu/81Xxv4oF8izJ2tOAHVHMs3+/ib0gg12YdbCPetCqufa/tIbQUDfbnN9QLO9xSKQaHM0oj+tX+W gWXahD2LQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1i18ab-0007UH-8z; Fri, 23 Aug 2019 12:22:45 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 48F1A307691; Fri, 23 Aug 2019 14:22:10 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 67A3B201E04D9; Fri, 23 Aug 2019 14:22:42 +0200 (CEST) Date: Fri, 23 Aug 2019 14:22:42 +0200 From: Peter Zijlstra To: Jason Gunthorpe Cc: Daniel Vetter , Andrew Morton , LKML , Linux MM , DRI Development , Intel Graphics Development , Ingo Molnar , Michal Hocko , David Rientjes , Christian =?iso-8859-1?Q?K=F6nig?= , =?iso-8859-1?B?Suly9G1l?= 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: <20190823122242.GN2349@hirez.programming.kicks-ass.net> 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> <20190823121234.GB12968@ziepe.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190823121234.GB12968@ziepe.ca> 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 Fri, Aug 23, 2019 at 09:12:34AM -0300, Jason Gunthorpe wrote: > 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. That has a much larger impact and actually changes behaviour, while the relatively simple patch Daniel proposed only adds a warning but doesn't affect behaviour.