From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F2167E81810 for ; Tue, 26 Sep 2023 02:28:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233348AbjIZC22 (ORCPT ); Mon, 25 Sep 2023 22:28:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230054AbjIZC20 (ORCPT ); Mon, 25 Sep 2023 22:28:26 -0400 Received: from out-197.mta0.migadu.com (out-197.mta0.migadu.com [IPv6:2001:41d0:1004:224b::c5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BB36BF for ; Mon, 25 Sep 2023 19:28:20 -0700 (PDT) Content-Type: text/plain; charset=us-ascii DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1695695298; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=24R2pLWXym7jBk3gQ8do08nmij8cuCrMpT9bPlzajlk=; b=TEhoScQTWSZIipzs1D9pe1uyEHGfcmmtCj9ptoytsHPVwo6AiBuhJ1JR95a+JRUOSoFjS/ gHwT0E6TXXEd3Eln8SKeOPWdcqYTdIgFO/3Hicn4e6PpFMPb+a2x56VusG6YNCKPiU5YH1 wBmnoWDIzOB7cfm/8tl1kRC22cJrXAM= Mime-Version: 1.0 Subject: Re: [PATCH v6 4/8] hugetlb: perform vmemmap restoration on a list of pages X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Muchun Song In-Reply-To: <20230925234837.86786-5-mike.kravetz@oracle.com> Date: Tue, 26 Sep 2023 10:27:39 +0800 Cc: Linux-MM , LKML , Muchun Song , Joao Martins , Oscar Salvador , David Hildenbrand , Miaohe Lin , David Rientjes , Anshuman Khandual , Naoya Horiguchi , Barry Song <21cnbao@gmail.com>, Michal Hocko , Matthew Wilcox , Xiongchun Duan , Andrew Morton Content-Transfer-Encoding: 7bit Message-Id: <7DF23E7C-F039-44F4-8204-BA463534B09F@linux.dev> References: <20230925234837.86786-1-mike.kravetz@oracle.com> <20230925234837.86786-5-mike.kravetz@oracle.com> To: Mike Kravetz X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Sep 26, 2023, at 07:48, Mike Kravetz wrote: > > The routine update_and_free_pages_bulk already performs vmemmap > restoration on the list of hugetlb pages in a separate step. In > preparation for more functionality to be added in this step, create a > new routine hugetlb_vmemmap_restore_folios() that will restore > vmemmap for a list of folios. > > This new routine must provide sufficient feedback about errors and > actual restoration performed so that update_and_free_pages_bulk can > perform optimally. > > Special care must be taken when encountering an error from > hugetlb_vmemmap_restore_folios. We want to continue making as much > forward progress as possible. A new routine bulk_vmemmap_restore_error > handles this specific situation. > > Signed-off-by: Mike Kravetz Thanks for your continue working on this. Reviewed-by: Muchun Song