Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp883759ybp; Fri, 4 Oct 2019 06:31:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqzuw+Zlw2gVucTAVxaLaVpOZt1hc7zUf0Y5YJGBx5eE2XbkTxVgebiaj7+fPcR12/erXxrN X-Received: by 2002:aa7:df16:: with SMTP id c22mr15265419edy.22.1570195885215; Fri, 04 Oct 2019 06:31:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570195885; cv=none; d=google.com; s=arc-20160816; b=EVNvstfK+ZhPuf1hBrL1D29gUjGIkp+E1uupbJcTymrhSA64h3f9f6pUSeRN6Wfjd6 XKBPMDEJWI9E5m9mqNsNx0DoiUONtipZDb7MbKTkTVGHfHH/8Zt+QFREUg5WptSBKlBy Fhy/Iy+0Kxgwib6YOOhNJ3aZm9cL0uNiG3TPhhRAsxTnRzDx0B5KlsQsVHj+bBJx50SK 0k+xUr51O2uMXpYu+z9B5md8+3heCmDgmVeuRMas9PqYDBz3YgqY+rL45IF+tcn/5z6+ Y0XQlKtjlCH60fFmzDrFZBFlwQW6460HFD9UwhTRCIc9/dKeBZXnkiUNdMxqByOPZuJx k54A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=B5vnSSCIcbplBcWNA19HtmeOraO3xHVwUmiEjyji+dc=; b=GBXQT8LMYocKnWTNt1UqzWyO7zVmOhLT3+VzuqGLgPVLGCHErn4ZcOUVtle/R23kKE OFV8jD3esk/CKfPfVrtwqjvmRJX/iclyKa26H8JAYiY93yArjp7Ac7CnS3Nzs2kfJ/Bx WRTt36uGzqXP5A2CJ4Lmm9vNOj+BgMF1loh3nnx3rXiFEosbaXtaNuJMdxcFT/Bnw3+P NcwksUqj7fa6qkaM3xsAM9ATvdvHitnlgX0aCUpiytFMxy0i4jGkmMWfWmnOIgnWDnMk fKE/8YF2leCBfjRclD0tp/N8BfjQ3jL8JNBjFr0LfNdMgJD6mlZeZ0i+RgMDOBAO2JND /Z7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=e8IRDuL5; 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 o27si2808097ejr.304.2019.10.04.06.31.00; Fri, 04 Oct 2019 06:31:25 -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=@lca.pw header.s=google header.b=e8IRDuL5; 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 S2388389AbfJDNap (ORCPT + 99 others); Fri, 4 Oct 2019 09:30:45 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:33402 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387917AbfJDNao (ORCPT ); Fri, 4 Oct 2019 09:30:44 -0400 Received: by mail-qt1-f194.google.com with SMTP id r5so8581111qtd.0 for ; Fri, 04 Oct 2019 06:30:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lca.pw; s=google; h=message-id:subject:from:to:cc:date:in-reply-to:references :mime-version:content-transfer-encoding; bh=B5vnSSCIcbplBcWNA19HtmeOraO3xHVwUmiEjyji+dc=; b=e8IRDuL5YyKeZPPnATe7X4oE8SALc3CKjZg+DyKSbhJqyrlr+9MFiRisQJfTHCFGUN I1v3KWVu3KlqiHLDMEgkPLKD7QK7oWnmxeciqctHX3o80NnUmRSbjoP/M5GZ+a3r/v4w 0qpwZGqBg2SqYUYhO+S6AqTU4vMxa9zfsBzjRH8i3sRB2gw747U5qDthrVlBCGck6c09 rAr8Xx2waDW6mV+hJs5aJvyEjUK2dpAkyz5rtJXkuCs5PVJndm9xm8HQ9TYQgp9ImdtL JTNezfq/awagUkCVuzXYghiyNmwjngYkcfH7Dsp7ZVo3JVY41hIPxnzaLxJQYpBFS1fH aNlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=B5vnSSCIcbplBcWNA19HtmeOraO3xHVwUmiEjyji+dc=; b=PRRFULch4qa9e5i8M613V2yid3RWW2k9Q0YEkRxAEmjN8ePpYQGaz19+A1EwnkD3yd cuFkKf7wrivvbvnktgW/IFVfgy+NKL/KkK7SEgk65JvBJ3WFUwuHKVC4Cu1qSjyvO8nM cl9dynnsseLzrh+pRwpFlHOpgmzXNbwW9zD8A8PXYAeKg3MYmc5fTHbYtXK9fD8u4ACD i0dF6VKEdtpzh233O4F+PWupbfN1AwYaVuSKy3q20rhN2U1NP70ErlOuAFGJg1cMfFe3 DZwdYUP5/iSWUWcBXC8+vTBaV8faA3q0+QM6kuzVmBPVqrdwBNs9QrS/GwOhbrpOVirU p8Ug== X-Gm-Message-State: APjAAAXp51CGFruu93Q1INMmKd+3T8OJFCxr6q15lR/gDmctEW7oBnSR I6R7PIa44HFFePWK6DrTB9R5Aw== X-Received: by 2002:a0c:f3c1:: with SMTP id f1mr1163664qvm.165.1570195842396; Fri, 04 Oct 2019 06:30:42 -0700 (PDT) Received: from dhcp-41-57.bos.redhat.com (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id i66sm3176454qkb.105.2019.10.04.06.30.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Oct 2019 06:30:41 -0700 (PDT) Message-ID: <1570195839.5576.273.camel@lca.pw> Subject: Re: [PATCH] mm/page_alloc: Add a reason for reserved pages in has_unmovable_pages() From: Qian Cai To: Michal Hocko 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 Date: Fri, 04 Oct 2019 09:30:39 -0400 In-Reply-To: <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> <20191004130713.GK9578@dhcp22.suse.cz> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6 (3.22.6-10.el7) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2019-10-04 at 15:07 +0200, Michal Hocko wrote: > 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? Yes, or use something like printk_deferred() or it needs to rework of the current console locking which I have no clue yet.