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 X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BEFA1C433E0 for ; Mon, 21 Dec 2020 14:15:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8524522BEA for ; Mon, 21 Dec 2020 14:15:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727046AbgLUOPB (ORCPT ); Mon, 21 Dec 2020 09:15:01 -0500 Received: from mx2.suse.de ([195.135.220.15]:40200 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726921AbgLUOPA (ORCPT ); Mon, 21 Dec 2020 09:15:00 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 3CA14AC63; Mon, 21 Dec 2020 14:14:19 +0000 (UTC) Date: Mon, 21 Dec 2020 15:14:14 +0100 From: Oscar Salvador To: Muchun Song Cc: Jonathan Corbet , Mike Kravetz , Thomas Gleixner , mingo@redhat.com, bp@alien8.de, x86@kernel.org, hpa@zytor.com, dave.hansen@linux.intel.com, luto@kernel.org, Peter Zijlstra , viro@zeniv.linux.org.uk, Andrew Morton , paulmck@kernel.org, mchehab+huawei@kernel.org, pawan.kumar.gupta@linux.intel.com, Randy Dunlap , oneukum@suse.com, anshuman.khandual@arm.com, jroedel@suse.de, Mina Almasry , David Rientjes , Matthew Wilcox , Michal Hocko , "Song Bao Hua (Barry Song)" , David Hildenbrand , naoya.horiguchi@nec.com, Xiongchun duan , linux-doc@vger.kernel.org, LKML , Linux Memory Management List , linux-fsdevel Subject: Re: [External] Re: [PATCH v10 04/11] mm/hugetlb: Defer freeing of HugeTLB pages Message-ID: <20201221141242.GA19680@linux> References: <20201217121303.13386-1-songmuchun@bytedance.com> <20201217121303.13386-5-songmuchun@bytedance.com> <20201221102703.GA15804@linux> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-doc@vger.kernel.org On Mon, Dec 21, 2020 at 07:07:18PM +0800, Muchun Song wrote: > > The above implies that update_and_free_page() is __always__ called from a > > non-task context, but that is not always the case? > > IIUC, here is always the case. I might be missing something obvious, so bear with me. I guess you are refering to the call __free_huge_page()->update_and_free_page(). AFAICS, free_huge_page might call __free_huge_page right away when in task context, and so, we would be calling update_and_free in a task context as well. Or are you referring to the other callers? -- Oscar Salvador SUSE L3