Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2751127pxb; Mon, 18 Oct 2021 00:37:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxcnDFCdA/0E7l8RneMxb7S2gkTzQ4BodHJi6TIgr7sOKm9u9ovFeCGtpqP386w8K3WXFCV X-Received: by 2002:a17:90b:2248:: with SMTP id hk8mr31237576pjb.102.1634542666817; Mon, 18 Oct 2021 00:37:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634542666; cv=none; d=google.com; s=arc-20160816; b=HC6oNyIYCHdZbARTU6lOygseV3cu9q4TGN50w6dcVx9tX264NZLmMXenEPa62Wf8TG o3phepI8C+fTXu1Qtd1QJTUzjDRIPXENouVyWgjN9BM0ujCZ/QP68uoelcDXx4LkWQ6B NlNweDHKBvfIx4MjmTCvKhYwu5gWKCaE8s3WuGVQCNk837KcbPR/bM0A5pW17xTWx6Jo jY59llOT9exEUTJxLvGyarIvnr8FQx2ckRcqOWbR17omTksHkNEXVFn74/ki9KoorA8a 8Gl+wY9tzpF4FkDbiI1NYztnCtBF9YhrLlzTN/EW81x55HWXsIeCo6XZIVonntDOdUMM BCeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=g8AdCq04FqHxZQpu0wW2BfZ1BcVn5cU9ZAer2RqlbyU=; b=hX+Sp/ee7JwtVdrDCVraJLH1FZGwUbbRxQFF50DCxTYKRYYhoF0SlpV6IlvsrtEoZp tmXn2m4oUp4q389riXYiMcFkncuSoe+JYTP4mEhbXbVZixC7SLQq9v60AQ7OgBBqTupP cFIYed8Q8QYvE3Ic6bZ4BippF2HRxho9Z9lMtlMItsvwtFr1EuIqa7it4zCyyNhQfSpb zKTsVSEqeOQemQbVMbQqieOln6oTpyn883q1F/kf4qbpAAc7tuAChaLrIl2wqUZUKcdS BZ7MrKw9ugW8iCX8B2FV1hadtNZJyNMGC+TsaXlckIUR0DXTtQlBcT/jNoP6J7pvWdoG sRDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="u2TIUP/M"; dkim=neutral (no key) header.i=@suse.de; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v14si3441846pgl.327.2021.10.18.00.37.33; Mon, 18 Oct 2021 00:37:46 -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=@suse.de header.s=susede2_rsa header.b="u2TIUP/M"; dkim=neutral (no key) header.i=@suse.de; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230326AbhJRHiI (ORCPT + 99 others); Mon, 18 Oct 2021 03:38:08 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:59874 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229847AbhJRHiH (ORCPT ); Mon, 18 Oct 2021 03:38:07 -0400 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 164FF219B5; Mon, 18 Oct 2021 07:35:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1634542556; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=g8AdCq04FqHxZQpu0wW2BfZ1BcVn5cU9ZAer2RqlbyU=; b=u2TIUP/Mdjy3STk91DJsStl8q1CoRWwSY5eeKZK0tecdBKiQyPyma/s10xulK7M6uUKb+y OmDL9rjJdlzrobGy2RAQPND1u/jt8l4joj0osg+uvA2JQ7F+cDXueIAjSJv+93cEnpBqUS kIwq3GJVc/g9hZrwUyvRQNvLcEUMWKI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1634542556; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=g8AdCq04FqHxZQpu0wW2BfZ1BcVn5cU9ZAer2RqlbyU=; b=rfrbtomo9lq+oBn53trNDIVT6TJn1ZYkDmgs94WkvTb5FZPdBhzYkDi8HbtURx/iUzfoAl 3VzD429p2IwDnMAw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id EF3B213B44; Mon, 18 Oct 2021 07:35:54 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id aEvpNtojbWFCEgAAMHmgww (envelope-from ); Mon, 18 Oct 2021 07:35:54 +0000 Date: Mon, 18 Oct 2021 09:35:53 +0200 From: Oscar Salvador To: Mike Kravetz Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, David Hildenbrand , Michal Hocko , Zi Yan , Muchun Song , Naoya Horiguchi , David Rientjes , "Aneesh Kumar K . V" , Nghia Le , Andrew Morton Subject: Re: [PATCH v4 1/5] hugetlb: add demote hugetlb page sysfs interfaces Message-ID: <20211018073552.GA11960@linux> References: <20211007181918.136982-1-mike.kravetz@oracle.com> <20211007181918.136982-2-mike.kravetz@oracle.com> <47e53389-638a-1af1-e94f-b3c7e5e7459e@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47e53389-638a-1af1-e94f-b3c7e5e7459e@oracle.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 08, 2021 at 01:24:28PM -0700, Mike Kravetz wrote: > In general, the resize_lock prevents unexpected consequences when > multiple users are modifying the number of pages in a pool concurrently > from the proc/sysfs interfaces. The mutex is acquired here because we > are modifying (decreasing) the pool size. Yes, I got that. My question was wrt. n_mask initialization: + if (nid != NUMA_NO_NODE) { + init_nodemask_of_node(&nodes_allowed, nid); + n_mask = &nodes_allowed; + } else { + n_mask = &node_states[N_MEMORY]; + } AFAICS, this does not need to be protected. with that addressed: Reviewed-by: Oscar Salvador -- Oscar Salvador SUSE Labs