Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4056654pxj; Tue, 8 Jun 2021 05:35:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5Cc31KUAB2eMBA52a+nHDDwr0P3RL3BfDjCcgp4odWBB2obNjjgW+nQ/xpB8OOCwvUFQG X-Received: by 2002:a17:907:3f28:: with SMTP id hq40mr13058232ejc.231.1623155711817; Tue, 08 Jun 2021 05:35:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623155711; cv=none; d=google.com; s=arc-20160816; b=o2eKQX2glBt/FH2RheDVYUGWrYdVZSP3JF8spvHDyqZUWltwJL+CQRrBwR2AdjvhCF y7D3Ixtiqq4LH3uB+YUthfBdGVT9QNnsjB5QWRlvvPDh1F/12eZ7EuxDKTCSqrZBBAv+ 0gxQTukXuXFZLF8KoYX17Eg6zufMTkNo3hSiC4N9m4xXOXY+8dGHVMAlEpfkdaRmflZr P+Y0IwzdQdTqF+1il0ihPGxPh4A5kCEVmJuYU+7EbKgfLHfA9yZsQsga8xc732s9jfma c9A2swbK8Ag3IkrC/4mcw+tK53xkUCXxrVNZLuuoiNxU1/M+DfsQlF2v1rsMXUJPLCdU pAhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=YSGQEI1WX6YiXANPfcZHnOB1Uu7nxLS3hbjqa7fmpSI=; b=h2ZAsGoT9+7VDppLlDyrhu828UiKjAMAE7saA1px0UcGZEpLVSy3Us7hiZST5RMrk3 3G/MqReXuDKSFWiyHdkP6peFwfj0AhEoIDmSXtDKt07nffJ59YRylVX+cYRMh9l7Ra4S CKWsKaeLHOMomKA0omsI4NeeV+pKCyMErCnNiCcSF1LHAv22S/gEyBt+CxvPNBrOCbQK V+8yhzipLPlZWCvbRhibWwVH1t1VtNoCOeTK499jC5zRYt32MWOCjKeB6U3MdADYADyE 95DCJX62PRAG3uBb+8o2/2N7pK9qGVgl9jg5iiArBCMzt3M5xcV3vdJCPXq1a6BMLTMZ kK4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=NqHKRKUr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f9si15174284ejd.630.2021.06.08.05.34.47; Tue, 08 Jun 2021 05:35:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=NqHKRKUr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232743AbhFHMfD (ORCPT + 99 others); Tue, 8 Jun 2021 08:35:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232635AbhFHMfD (ORCPT ); Tue, 8 Jun 2021 08:35:03 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF7B3C061574 for ; Tue, 8 Jun 2021 05:33:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=YSGQEI1WX6YiXANPfcZHnOB1Uu7nxLS3hbjqa7fmpSI=; b=NqHKRKUraLAIML21HZSAmknZ4F VU5XAZc1pxC1JYcy9gVMgNVLmzW0kR8IhWQOQCr2WAc8FpmKcoi/Lv+Sj0J3I61+d5r3FQXyk2gar I/HUhvhoeZr/WgTYH6NnOvkdF8J4uCni+tx1Z0TXe+I36WvE/Yjt0M8y7C7lwOOwOi3OYL3TiHGm5 KSomQovXbqyDh8p9A3jwiJkkNpowT3Xae/S61GX7UFaTq23bBlPF/1GxUz/xxODH2dqV2AiC+SAx8 +KpXfOtPcWdWemeJ0sglnemOGsPokjv2ywQSdycZUwXg/bq4LK6QqJLG9eXh8cBdU//QVm4mFRJkH z19eDUYw==; Received: from willy by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1lqau6-00Gw37-10; Tue, 08 Jun 2021 12:32:33 +0000 Date: Tue, 8 Jun 2021 13:32:21 +0100 From: Matthew Wilcox To: "Kirill A. Shutemov" Cc: Xu Yu , linux-mm@kvack.org, linux-kernel@vger.kernel.org, hughd@google.com, akpm@linux-foundation.org, gavin.dg@linux.alibaba.com Subject: Re: [PATCH v2] mm, thp: use head page in __migration_entry_wait Message-ID: References: <20210608120026.ugfh72ydjeba44bo@box.shutemov.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210608120026.ugfh72ydjeba44bo@box.shutemov.name> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 08, 2021 at 03:00:26PM +0300, Kirill A. Shutemov wrote: > But there's one quirk: if split succeed we effectively wait on wrong > page to be unlocked. And it may take indefinite time if split_huge_page() > was called on the head page. Hardly indefinite time ... callers of split_huge_page_to_list() usually unlock the page soon after. Actually, I can't find one that doesn't call unlock_page() within a few lines of calling split_huge_page_to_list().