Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp70717imu; Mon, 19 Nov 2018 17:58:15 -0800 (PST) X-Google-Smtp-Source: AJdET5c27tCoCWc/j9zZKY52ebFntX98hjcIH0b9P1MwpILtYMH5BGn1sdqnjhWECqIBLbZfK9TY X-Received: by 2002:a62:9402:: with SMTP id m2mr167824pfe.34.1542679095556; Mon, 19 Nov 2018 17:58:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542679095; cv=none; d=google.com; s=arc-20160816; b=Pc18fcYjqrA1sFjnR2+CU4YSXpopSRixeO7iLjdfFclt4uczLVCZrdVXwLXaElKCiS AurVtgxQM7Dh5ecOpO7offUClv7hUmTWNsRouwwe5grMyR5AiWoO0D0vjB6lquXkHQ4J PDGsgLLStfGehpCzeBWCBxppm0Kfv1ltrw6ybjvCP1wi4uVf0/FfgYG84Z56fBdQnrTT klqCXzOhXnLmFBeMa3mlc9Bn/G2ljhMfmjFYxlTFONue9aM+Xs7vG/aFz0p+NOKfW2+T ai6fFw25HIHBJouXLx/cWcKKSOYHsDqP3z4BZUzPalAMVnho8P8atjiRMVcLMQX4sCgb xRRA== 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=7qNjL5AP1jjuRD0DmBjpV54YSZnQsSftBQYDEO/Qzxs=; b=rRzqpdnJ5VEFcddXy5hNc05vNy50wlFU1izhr6HsVi/EFPFYSLYA80QdSZ6jUAMn6T qb4WQbf+w2IBVc+5osTaxBR52T5Lr8qPpXNemJlGaVJY1LgB2gg9iQK7J+WlmgRjWKP1 uKOHPijabgJgkPAckbPHHECQnC11WgIuw16MR/GZnne/n5ZZnbxNfHG7m5U8hZfN9+1b OspIkUj9z5GDd3mt7eboTqW3xlVphMChnWRavDAjDG7SfY8F3tX4fvwZHD96eA8IyZhv xey/kuW5X5wpuT5rKWDZ1xNtgaaCx3X37R2GYHXvDCHB6+5zEI5qeqM61rPDAH+eVQ7Y FIpA== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y6si24421508pll.384.2018.11.19.17.57.59; Mon, 19 Nov 2018 17:58:15 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732714AbeKTMXb (ORCPT + 99 others); Tue, 20 Nov 2018 07:23:31 -0500 Received: from mx1.redhat.com ([209.132.183.28]:46144 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730044AbeKTMXb (ORCPT ); Tue, 20 Nov 2018 07:23:31 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 251E03002F74; Tue, 20 Nov 2018 01:56:53 +0000 (UTC) Received: from localhost (ovpn-8-19.pek2.redhat.com [10.72.8.19]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 87AB6607D0; Tue, 20 Nov 2018 01:56:48 +0000 (UTC) Date: Tue, 20 Nov 2018 09:56:44 +0800 From: Baoquan He To: Hugh Dickins , Michal Hocko , Vlastimil Babka Cc: David Hildenbrand , linux-mm@kvack.org, pifang@redhat.com, linux-kernel@vger.kernel.org, akpm@linux-foundation.org, aarcange@redhat.com, Mel Gorman Subject: Re: Memory hotplug softlock issue Message-ID: <20181120015644.GA5727@MiWiFi-R3L-srv> References: <20181115143204.GV23831@dhcp22.suse.cz> <20181116012433.GU2653@MiWiFi-R3L-srv> <20181116091409.GD14706@dhcp22.suse.cz> <20181119105202.GE18471@MiWiFi-R3L-srv> <20181119124033.GJ22247@dhcp22.suse.cz> <20181119125121.GK22247@dhcp22.suse.cz> <20181119141016.GO22247@dhcp22.suse.cz> <20181119173312.GV22247@dhcp22.suse.cz> <20181119205907.GW22247@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181119205907.GW22247@dhcp22.suse.cz> User-Agent: Mutt/1.9.1 (2017-09-22) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.47]); Tue, 20 Nov 2018 01:56:53 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/19/18 at 09:59pm, Michal Hocko wrote: > On Mon 19-11-18 12:34:09, Hugh Dickins wrote: > > I'm glad that I delayed, what I had then (migration_waitqueue instead > > of using page_waitqueue) was not wrong, but what I've been using the > > last couple of months is rather better (and can be put to use to solve > > similar problems in collapsing pages on huge tmpfs. but we don't need > > to get into that at this time): put_and_wait_on_page_locked(). > > > > What I have not yet done is verify it on latest kernel, and research > > the interested Cc list (Linus and Tim Chen come immediately to mind), > > and write the commit comment. I have some testing to do on the latest > > kernel today, so I'll throw put_and_wait_on_page_locked() in too, > > and post tomorrow I hope. > > Cool, it seems that Baoquan has a reliable test case to trigger the > pathological case. Yes. I will test Hugh's patch.