Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp59119pxv; Wed, 14 Jul 2021 19:08:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6zq0N0ZPzWy3urUjwZQSMIoixoB8EgNZa+Fdcu3dDlq2zr//AuLa5dLsg2dCh7zyhfIqw X-Received: by 2002:a17:906:ce30:: with SMTP id sd16mr1795874ejb.316.1626314921619; Wed, 14 Jul 2021 19:08:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626314921; cv=none; d=google.com; s=arc-20160816; b=pG1MkybDwEQ9Mfdn6YTM0id45atYviI3nKhZ1u55d+o0yjkQAcSJz/ZstP64GoUXoC YTJtnaRVHEjE9dgcSXT21POAWgXGC6q626iX1MtDMWdJC6AKQaz3CHA/Mp7mYS/4hd/l 8s/wQlNZG87CFCc7WDgBYRWei/E0y8aCW5ncLRBmxlS3zAqXKyXnTcvRSal3G5BWyOSI 6zxD+hpj6mYKaXDQIrzZcrCUTjKSjUlcNYe3lsmNewXJdzr/Tql1fnpo+gb/M64xJTVj 55iQUatfSFwO4SZnvtsBRizmu/xic6KZULwObgCvEpf5afoqE0dTUy8X7VtfYY/YgDN/ zSBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:date:message-id:cc:from:in-reply-to:references:to :subject; bh=xe6h97L9nwfdmvIzmWhRJK508YREtx0p5neWgLQZ7OA=; b=ncDSFLDdLROitjzxgxU1I+KuIdZqjoWmvb7PlnGyaQfNJiSe8hT3nO7tJ2aTCAHFVW UxTiUdVyb8VBG6EOvjK34ODN/4CvGMPVpjzrQuLZrh6Z4eW2bn5LDkisjNoRqz/WQX9P QcQbcDnYxYauoR0bkl6dXw3imOpJywV7hwXYNgLOXoqUVPIA+ZJ15/SEMU9sX037cVwJ AMrmHVkOHwqGa05f2jHXUWOZ9/6rqhYkdWABZekWOMuHKNkYezu43rP+w2F+kcYkgmsk 9HEnCmP9DltGxaxrostEURa/HodfhxOXBuvweVCDVmJKDW6US3xdG1zkZbnIwvGmF71x upww== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w9si5460747edx.38.2021.07.14.19.08.18; Wed, 14 Jul 2021 19:08:41 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231675AbhGOCKV (ORCPT + 99 others); Wed, 14 Jul 2021 22:10:21 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:6930 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231165AbhGOCKU (ORCPT ); Wed, 14 Jul 2021 22:10:20 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4GQHjP0vGJz7C0N; Thu, 15 Jul 2021 10:03:53 +0800 (CST) Received: from dggpeml500018.china.huawei.com (7.185.36.186) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Thu, 15 Jul 2021 10:07:26 +0800 Received: from [10.67.101.251] (10.67.101.251) by dggpeml500018.china.huawei.com (7.185.36.186) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Thu, 15 Jul 2021 10:07:26 +0800 Subject: Re: [PATCH -next] sched: Dec __cfs_bandwith_used in destroy_cfs_bandwidth() To: Daniel Jordan References: <3b2eb2c6-20d5-9f13-09f9-77f87f333b8d@huawei.com> <20210714132233.o4zvgdiiugxf6yxk@oracle.com> In-Reply-To: <20210714132233.o4zvgdiiugxf6yxk@oracle.com> From: Zhang Qiao CC: , , , , , , , , , , Message-ID: <821cf5ad-4633-0005-63b3-14618891aeed@huawei.com> Date: Thu, 15 Jul 2021 10:07:25 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset="gbk" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.101.251] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpeml500018.china.huawei.com (7.185.36.186) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/7/14 21:22, Daniel Jordan wrote: > On Wed, Jul 14, 2021 at 07:20:39PM +0800, Zhang Qiao wrote: >> And i have another thought is that we can hold the >> hotplug lock before calling cfs_bandwidth_usage_dec(). >> This way, fewer modifications are involved. >> What do you think about it? > > It is fewer lines, but then hotplug lock is taken pointlessly for > !JUMP_LABEL. Not a huge deal in a slow path like this, just a bit lame. > Adding a new variant seems cleaner if more verbose. make sense. And I will modify in next version. thanks. > . >