Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp8610945ybl; Thu, 16 Jan 2020 20:53:07 -0800 (PST) X-Google-Smtp-Source: APXvYqxHWTZSDsv3IidVgz+PZCgIziziC7NKuwQ9/xozseFkn38h25wb5MyCL6E1igU0rMOPg2rm X-Received: by 2002:a9d:1c95:: with SMTP id l21mr4769964ota.271.1579236787801; Thu, 16 Jan 2020 20:53:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579236787; cv=none; d=google.com; s=arc-20160816; b=iniGjjLpByGMV2V98J9S+oHg10OcvkUxcnvI9Wj4oUBWHBKO0uZegRbZ5AUouUKXJ3 fw6Cb7ygGaQHKv/qTXeKJffbXoXg/t6gxwW2KME4bBKCU1Ix1iAQfI/puiKceh3vMUCW mBds/eheAMES8PLCpvLFbhyq9Xwk639f0SLgDkRrQAhCcYI6KJglUdcyku5SrjrroX4w 6a9hVU9YlHSpZDJNgzUZUSXClVABmFQ1oQqPp1vUm7U2evzzjsbdaxH/6f4QyCd8DsgG 108xu9qI4NZ6JJq6lAueGnohltuFEfMp0WmOiOGzt7XXzU207GVsA+YkBF0E50PIb+LY YMiw== 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=Ocx1bcHvca+8n2uDvEKp0ll9Xosk7Vm9gTmI5pqwqMY=; b=R4gnmDQHEa22rWGthjF7aUZS33HacIiwaGaMBb9mo4C69A3jRk2AEF6MxNUqpgzdQR t9Uy/AKEtPS8D/Fb4kdDczpW0SI9rLcC38EPYjybRuBbp1zJU40+n4xzmufDwnk+bYRn +Ob0v32ihYVpptOsjK3lO/TOz/2KOkFnvDguTJpw/f4yuPIgCI62VO5zYK6x87WLpXpX FVvCpGmKk5Ks8+ShyxAwNDSm5zN8eSmLMuePw4kc0RrwyOO6QuQJpUkrEs8tkmuZlGHP mHdh5WIZyEbL7DLfdpq8urCbF5jPEIIl0Lm0oAURBPVTWYWtL9gXPwry3X+tGPQieoRm fCjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=A9dALr6S; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z25si11559559oic.23.2020.01.16.20.52.56; Thu, 16 Jan 2020 20:53:07 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=A9dALr6S; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388590AbgAQCuB (ORCPT + 99 others); Thu, 16 Jan 2020 21:50:01 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:36949 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388384AbgAQCuA (ORCPT ); Thu, 16 Jan 2020 21:50:00 -0500 Received: by mail-pf1-f196.google.com with SMTP id p14so11224156pfn.4 for ; Thu, 16 Jan 2020 18:50:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Ocx1bcHvca+8n2uDvEKp0ll9Xosk7Vm9gTmI5pqwqMY=; b=A9dALr6S1daNEyD2gQ3R+ElBRW1LXgSwVHb0wqfhCi/w46iAnWFXeEHJ7eMeVbjcYO A2H2cVbJy7G3KqIZLilJfguEYu+t0b0/mO5IJ/UPkqDaxviENqYUpEtNkB7q+cBNbmjt nE22pYPhcGeS9bk/MGtaYs1u7bYZKRQtn0m2ytM+iB+TvLv0zFgR+6YErcCdSKCqTimN /6KzW61HT8H1XAnCmH9Ag+mlgFx9MNcewP2G6XHZ79RIS67EXjLCxl38+7qJdDoMaZfd n8XR2zaFnsVkpy0s/EgfO0pX4i4J20BZXKHNMNjWDXDKGte19fUjz09amzmo1OGh18e6 HX5w== 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=Ocx1bcHvca+8n2uDvEKp0ll9Xosk7Vm9gTmI5pqwqMY=; b=YDoXs+RvT8B6hx0yRhL29FTiDj7Oqv6mnzSAMQ20vAsjE3j0sLXpeqW0Oed+ouGBa0 ijj3P6xyovH6usFZl1K8ltLsS7FzPlnUdl9FS/VXV4Po3YPBEN137g9tkfEFdXMvL07T tRG8mDEWSJmpkvpyT/Hf39JriBPJ2JVjWBKvetNR0ItIMIMp6xipcY8bWu9ehf9EknRg NGU9EwuvNOpCgvD0VfjHEKoFjQNl9M25F7mFZqHxe6UAuEydyS4K0iHeWLGP+Dp2/Rof HuCQfVu0+L4KW8hG71oM+eQbY6gWnq5ocolDdcaBT4pFwPS1fFDwXMhHI0KtG5yOnZIi XzKA== X-Gm-Message-State: APjAAAWjzPiQCAxeJesZshec0luM8vDSSQXx6jnN0OT3J2/2MuXgUExI 1jt89nmAIjuFUxJlNp+JkvU= X-Received: by 2002:a62:e30d:: with SMTP id g13mr761645pfh.92.1579229400236; Thu, 16 Jan 2020 18:50:00 -0800 (PST) Received: from localhost ([2401:fa00:8f:203:5bbb:c872:f2b1:f53b]) by smtp.gmail.com with ESMTPSA id s131sm29571468pfs.135.2020.01.16.18.49.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jan 2020 18:49:59 -0800 (PST) Date: Fri, 17 Jan 2020 11:49:57 +0900 From: Sergey Senozhatsky To: Qian Cai Cc: akpm@linux-foundation.org, mhocko@kernel.org, sergey.senozhatsky.work@gmail.com, pmladek@suse.com, rostedt@goodmis.org, peterz@infradead.org, david@redhat.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Michal Hocko Subject: Re: [PATCH -next v4] mm/hotplug: silence a lockdep splat with printk() Message-ID: <20200117024957.GA7372@google.com> References: <20200117022111.18807-1-cai@lca.pw> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200117022111.18807-1-cai@lca.pw> 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 (20/01/16 21:21), Qian Cai wrote: > It is not that hard to trigger lockdep splats by calling printk from > under zone->lock. Most of them are false positives caused by lock chains > introduced early in the boot process and they do not cause any real > problems (although some of the early boot lock dependencies could > happenn after boot as well). There are some console drivers which do > allocate from the printk context as well and those should be fixed. In > any case false positives are not that trivial to workaround and it is > far from optimal to lose lockdep functionality for something that is a > non-issue. [..] > > Acked-by: Michal Hocko > Signed-off-by: Qian Cai FWIW, Reviewed-by: Sergey Senozhatsky -ss