Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp8792226ybl; Fri, 17 Jan 2020 01:01:07 -0800 (PST) X-Google-Smtp-Source: APXvYqy37P0qGQBF/vrUguL19n3sZ5+0/hG5aPLkJ0pFQfUCzSpCe5ThY7MdfFqA7LyMNLoQIoGG X-Received: by 2002:a54:4f04:: with SMTP id e4mr2496419oiy.111.1579251666928; Fri, 17 Jan 2020 01:01:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579251666; cv=none; d=google.com; s=arc-20160816; b=ApmFp6v4zX0wuflk7PfijVcTfbjrVRoPKFQSyqV1qulAZA81xuYndaDI9WWcHXsAbk sJuY6izpl73Xcq38NQpdBNX6HfDpW9GE2gmYe9QMPh08LHJkI9/OKuOLnbJj4+8f+bIX Y+PR+stRmrYcMyNReo5JKwrQVDr8BRgek3j0DYe/1zjA5ks1k4kTUdnI6ZlJVs0iIcel lYNzKf3XjDK3Jt8D7/N7CvQyT8YJZ/wb6cRnWLCdEJIXFWzCtDVZ4M/wvyIr9pOULP3z 8g1vUmabZmjY/j/BDi+4N4/govBXslt0kH1F5MdyjjfYXIYd0Lm8wMK0UVz7kSA9gW4N emFA== 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=bU5V3HcfnedIuSE41RRJUJPnV/DJF/R8QkDrgRzYna0=; b=FMpEYQdeIrDUl1p5DwCqd6zve5nrz/D8jzqRT/6qKpzyRPwdFPUXCgDkEwsnZ6USzd dFmni+9MzLr34KDZBCwwRKpSa/fyenfMuAJwqnh/0uThEFeNJolnnOKWuWLP90l5OYcs +O9rq5ObhnBL8VlTXTDj1vybcRzCF7vtwVPHHWlxqguV3jjhDJvWpNvZqXKeKVykCRib 85HYhcmVVDbvBej71HFGScSqwe6d0m4LTJnYmkpXOkcZefvxBCIdZYFBt9qQMBxYYuSy KQ+cNJ/w1G5suucIRlWlhve3jn5jU6PACnljk/1qJBj5wOAWO975CgsyJ14pCfmov/bh rceg== 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 s3si13598139oic.108.2020.01.17.01.00.54; Fri, 17 Jan 2020 01:01:06 -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; 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 S1729578AbgAQI7g (ORCPT + 99 others); Fri, 17 Jan 2020 03:59:36 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:39581 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727740AbgAQI7f (ORCPT ); Fri, 17 Jan 2020 03:59:35 -0500 Received: by mail-wr1-f67.google.com with SMTP id y11so21847037wrt.6 for ; Fri, 17 Jan 2020 00:59:34 -0800 (PST) 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=bU5V3HcfnedIuSE41RRJUJPnV/DJF/R8QkDrgRzYna0=; b=cqctvoACrQKgQvrEfXFfHv6PDv3rPEs7Ldt8N+OoP+cj7hraPynbHvhrIOcIUPwgW7 cTFlqAeHhWWfmeQaBYzHiOUK44Lx+nfsVLKRGx9g5ZvuZqya6FQ5SPHZnV2XQ0ORMTqx 367/muKvj1C7DDEb7L6g1JX4wAWTFHs6OhlNk+7wOqHJ9Ng8Z2DJyr5l0g8tg92rk37p tUSSdSEHbTgsdbFhGXSSIWUwNQfiKpCMBEl248BkCDfqVfwSGiSwvvOuM16LlHJ9P+QO EeXnRxiSh3p54RFwBUyEmbF/sOzQHr45cIkFZX/cVTK5YI31soHX22NiBEA8EmzOoPS0 gkyw== X-Gm-Message-State: APjAAAX1LvTnwS+75Z1PWXZNYk0xdhzL0NPib2N/6D9VLg9PwdqtLFiK 1DpR8Ncb/joHmGvZ3D3KR2g= X-Received: by 2002:adf:f6c1:: with SMTP id y1mr1868575wrp.17.1579251573800; Fri, 17 Jan 2020 00:59:33 -0800 (PST) Received: from localhost (prg-ext-pat.suse.com. [213.151.95.130]) by smtp.gmail.com with ESMTPSA id r62sm9737457wma.32.2020.01.17.00.59.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jan 2020 00:59:33 -0800 (PST) Date: Fri, 17 Jan 2020 09:59:32 +0100 From: Michal Hocko To: David Hildenbrand Cc: Qian Cai , akpm@linux-foundation.org, sergey.senozhatsky.work@gmail.com, pmladek@suse.com, rostedt@goodmis.org, peterz@infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH -next v4] mm/hotplug: silence a lockdep splat with printk() Message-ID: <20200117085932.GK19428@dhcp22.suse.cz> References: <20200117022111.18807-1-cai@lca.pw> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 17-01-20 09:51:05, David Hildenbrand wrote: > On 17.01.20 03:21, Qian Cai wrote: [...] > > Even though has_unmovable_pages doesn't hold any reference to the > > returned page this should be reasonably safe for the purpose of > > reporting the page (dump_page) because it cannot be hotremoved. The > > This is only true in the context of memory unplug, but not in the > context of is_mem_section_removable()-> is_pageblock_removable_nolock(). Well, the above should hold for that path as well AFAICS. If the page is unmovable then a racing hotplug cannot remove it, right? Or do you consider a temporary unmovability to be a problem? -- Michal Hocko SUSE Labs