Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp857707ybp; Fri, 4 Oct 2019 06:08:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqxhHSAmFZuw0/GbUtX1RVi2A8rb4uXxeZFF0Iiy8vxOFT0LUhvyIaM0XP8HXOgU9Q5RUjlh X-Received: by 2002:aa7:d1d3:: with SMTP id g19mr14959305edp.150.1570194513826; Fri, 04 Oct 2019 06:08:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570194513; cv=none; d=google.com; s=arc-20160816; b=sl/rsZDOcBEuyPot0lds091Ym4DuZF21CMvJCTs9ZRzPlj+pxhIbgGcy4jfd93043c za8W9SoqhSNekNiFPEYpQkyKMStLUDgnqiZ3D5XvoNO7EUCzZu8kHFQGLdPA7wAd5uYq OMMlTnJLpuhECKLoUZijG7gIbE0OH+YGpIwQOBf1GFCCDy/X3A3OZqbUbYMLq4RdinCC tZ7t09uTzQj75F19g6hDTW69Avqy6QDzKZ9XazEG7O1DFBzKrL2S0cNZorvOXAdU7fVW ZWSzFA+Pvmq+nHryQUt70yxldmOh/vhd0BklUOwENN9GcYgHMSiwgTS9IHfSGANANZZ1 7LEw== 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=p3CboPmC8bDE+SetLuUtYpiuUHg9fc+Cml/d64dZW7c=; b=zB7E7aGQjNPX6V6GwSoXwRxu4xzHmbvntk+VPvpCS33IezcipNVVHhdw/tuCEeaNt4 LI3LQqMgWgFuaVZEl9gbigkz1btT7GiQ12SNbNMcGoBVvY55qHoEHPoWjDxoat+xxZVc qCHjWD/E1CAxcGlsQnFCd/p2UFMSkfbNbmR02NYhSRWw678PEqeHGEYLmctpomoagtcq nYd0UCriNGjEfK64IfRazZngNb053Bc5B2pNgwSV3LRH/qCRJk4YoQqzPZe7/fODEBLR +BDSOi0Aqz8beZEq7ZP2VJx8TATftiMoVf9J4HtSQfq7gEBvy20XOY2rEn73RrBGh/Jq yn2A== 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 j14si3209460edt.298.2019.10.04.06.08.08; Fri, 04 Oct 2019 06:08:33 -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; 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 S2388199AbfJDNHQ (ORCPT + 99 others); Fri, 4 Oct 2019 09:07:16 -0400 Received: from mx2.suse.de ([195.135.220.15]:50788 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2387916AbfJDNHQ (ORCPT ); Fri, 4 Oct 2019 09:07:16 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 65C2EB1A3; Fri, 4 Oct 2019 13:07:14 +0000 (UTC) Date: Fri, 4 Oct 2019 15:07:13 +0200 From: Michal Hocko To: Qian Cai Cc: Anshuman Khandual , linux-mm@kvack.org, Andrew Morton , Vlastimil Babka , Oscar Salvador , Mel Gorman , Mike Rapoport , Dan Williams , Pavel Tatashin , linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm/page_alloc: Add a reason for reserved pages in has_unmovable_pages() Message-ID: <20191004130713.GK9578@dhcp22.suse.cz> References: <1570090257-25001-1-git-send-email-anshuman.khandual@arm.com> <20191004105824.GD9578@dhcp22.suse.cz> <91128b73-9a47-100b-d3de-e83f0b941e9f@arm.com> <1570193776.5576.270.camel@lca.pw> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1570193776.5576.270.camel@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 Fri 04-10-19 08:56:16, Qian Cai wrote: [...] > It might be a good time to rethink if it is really a good idea to dump_page() > at all inside has_unmovable_pages(). As it is right now, it is a a potential > deadlock between console vs memory offline. More details are in this thread, > > https://lore.kernel.org/lkml/1568817579.5576.172.camel@lca.pw/ Huh. That would imply we cannot do any printk from that path, no? -- Michal Hocko SUSE Labs