Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3309901imm; Fri, 19 Oct 2018 08:31:45 -0700 (PDT) X-Google-Smtp-Source: ACcGV63GrrfT8Y/xXOHN2DlrEZT0YTjOi4vI5OFnG1/6MTeTGT9OBbgVXhoYBoqzD+kxgn/iXjL8 X-Received: by 2002:a63:bd01:: with SMTP id a1-v6mr33086190pgf.58.1539963105068; Fri, 19 Oct 2018 08:31:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539963105; cv=none; d=google.com; s=arc-20160816; b=wHx6DZHCPJ8EewMw0lzrvtf5xjidElXupOzDTUsI3E7JRafD/JnRRi8TC2teQinI/r 647I1bfLBjypKshVFYK79+eN1EeWQqwI99n4jlzdOp6WS2zFP3GWIktww03PQiLpxt+E Xqp0dU4d5tUYbZRAINMI5BTqaEWk9prNr6Q695NR+9DNceNI7ltHg3U9JFeV7iEldar0 l5SNtx5ZEJjN8b8SwxkWahbM8SLworYihc9j4PNVug1l/qMraZFEs4Lln0bPhzfGzSPI pC00Vdv/tSzqH2Y8fPIdXGipGxCcNjYkJsQmJwKhF5gEh2n5+O0XHCVN1vH+3IhAUvnr UR1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=xO6mOkvKjTumL7VUnexCh0alTTod+vkexKmilM7Pe7M=; b=LYNS2nKcjZ5Xe6Qq63kY9Vwic/wDBh4/NupcV2MQ0hCeC5Lh8Fo7jzW6XfIOy1biEd zGbCIGmkuJ8iek+NKTEVqydvqZhfNmzPxxlFeosu3shbVUsvL75qqSYWqSkLvyDQG9T+ r26cMyH5xOh67QKQ5fZbjPYn16NwvB73pMnAQ8syTDPYJHI7wDvI0hzdwpJxD93Xf23q TbRnDjuS3pXuFDLNUn0XwG/C2aMFsGscumLzFFFU9swv3MhSmh/mpqpx8COnAS6/jLq0 CYYfgcwq6PfSJpyi9LCx4x1M/CsL3rldBQjyo9Xwc8g9FyHzCp6KaQ9ZTQZDZb9fXew4 Q95A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=3VwpxBit; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 19-v6si23988590pfq.180.2018.10.19.08.31.29; Fri, 19 Oct 2018 08:31:45 -0700 (PDT) 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; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=3VwpxBit; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727501AbeJSXgX (ORCPT + 99 others); Fri, 19 Oct 2018 19:36:23 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:45290 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726952AbeJSXgX (ORCPT ); Fri, 19 Oct 2018 19:36:23 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w9JFO90v088225; Fri, 19 Oct 2018 15:28:58 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=xO6mOkvKjTumL7VUnexCh0alTTod+vkexKmilM7Pe7M=; b=3VwpxBitjvImWvgUcV2PLbI2hvVzTMaAUQj8FHE6mFpS9OTzEolJlrRU0YC9MQsZwskE VsyQSYdirNKLxEO5bvtTPRKQA/4uKtEU67z1Vd3DigUe6eeG6iaYU6RlQJBe78LjKh8e FMB3u4AfSjQIlytr1chJa/5De6zi2tXWW1dgfCyQq8lkRVQzH6o6GVg5LzH4X/1JTn6l jxYyKAhbprpzJzbylt9pi6NdUfaMfii/DF/Bere/NzHzQQzZ7iDGO/zyzHzdXmJRs7VG zwjHzGBxSQ7um1PY2qAqk7lESyphz672XcVgv0+RS2CSfCLQCcZyK5MVcMJk5ZfyQ+vE 6w== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp2130.oracle.com with ESMTP id 2n384umw3n-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 19 Oct 2018 15:28:57 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w9JFSuJC014183 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 19 Oct 2018 15:28:57 GMT Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w9JFSr4U010459; Fri, 19 Oct 2018 15:28:53 GMT Received: from [10.154.131.112] (/10.154.131.112) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 19 Oct 2018 08:28:53 -0700 Subject: Re: [PATCH v14 03/12] cpuset: Simply allocation and freeing of cpumasks To: Waiman Long , Tejun Heo , Li Zefan , Johannes Weiner , Peter Zijlstra , Ingo Molnar Cc: cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, kernel-team@fb.com, pjt@google.com, luto@amacapital.net, Mike Galbraith , torvalds@linux-foundation.org, Roman Gushchin , Juri Lelli , Patrick Bellasi References: <1539635377-22335-1-git-send-email-longman@redhat.com> <1539635377-22335-4-git-send-email-longman@redhat.com> From: Tom Hromatka Message-ID: Date: Fri, 19 Oct 2018 09:28:51 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <1539635377-22335-4-git-send-email-longman@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9050 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=989 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1810190136 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/15/2018 02:29 PM, Waiman Long wrote: > The previous commit introduces a new subparts_cpus mask into the cpuset > data structure and a new tmpmasks structure. Managing the allocation > and freeing of those cpumasks is becoming more complex. > > So a number of helper functions are added to simplify and streamline > the management of those cpumasks. To make it simple, all the cpumasks > are now pre-cleared on allocation. > > Signed-off-by: Waiman Long Thanks! Reviewed-by: Tom Hromatka