Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3545746imm; Fri, 19 Oct 2018 12:25:35 -0700 (PDT) X-Google-Smtp-Source: ACcGV62IGEdrJMhLn+fN/Jggf/KPqvX4AL1WaLI9QgGblIl2ocRKXgvTgRNY1c6DnaqK2ZgxzQ/6 X-Received: by 2002:a63:6246:: with SMTP id w67-v6mr3196915pgb.53.1539977135445; Fri, 19 Oct 2018 12:25:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539977135; cv=none; d=google.com; s=arc-20160816; b=sLFOOyMOKwfwRWo1HxVYYpYLRQzO0O+gDPqbJDIxoIR+DzGhKrASKnsLh6NeuhPGus W2Z8XNvB5/eX5cgWEMDv3Rc5K+aAohC/oCTfqSpBqTFYZqL8PKBUY8x5124OY3ATeo9y dRL0L4xzxSfKRhxhyplW1b9mWNbJeNwT1gG5ocEmewRN7gl7SRdCTVi9xgNyj4b1IVEd 0Rt4QfT1H4ka7cx035jEG0Ug0OwfQcPA4/KjDeJ/Gbb6z2w/e3Kf8Nk46Kyhzc+F1Fgs KNDBNIiF8H9KCK/9gt58xnWX/KHD8dx6g9wA/O1UhcajWUaXyWJ1PZRq4vGEMxoENTbl 65IQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=jHydDG8+60wpJW/CzjZHlAATZ1UOTmTYFr6noyYndLY=; b=mQoPYZdRkY0voM91W/NQ4gGqCwdTIQJPLP0v1pVCOiLn3HLTPS/D6Cdgovc8toaPIe YKQ1XcrRQqYfhteshk2pSM2rFpKN9Ca4gYl4ZrCH3GcQUUmXG6XZGCLeaFhM/6y3mFF4 8bVQ8fvlWLWrnPJlo4G/a7hDO/htFc9UcpIz7y79mE6zfc/ep/eKgcJbvYfB9S/edLLK AzlTlwGm2AhYU0YQROzk0VCkbNLDZA22P4B6bT0LVq6AmajegmcxSrwDmXkNAY7ug064 32jXXsPATM4pBrw0zWLlrEqlL/a8sXzUlFz03ZFvM6k+/y77nJHJJsOd/3c53I9cYXAg 9E0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Gbp2uC8r; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y6-v6si25722421pge.215.2018.10.19.12.25.20; Fri, 19 Oct 2018 12:25:35 -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=fail header.i=@gmail.com header.s=20161025 header.b=Gbp2uC8r; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727882AbeJTDcP (ORCPT + 99 others); Fri, 19 Oct 2018 23:32:15 -0400 Received: from mail-qk1-f195.google.com ([209.85.222.195]:45066 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727819AbeJTDcP (ORCPT ); Fri, 19 Oct 2018 23:32:15 -0400 Received: by mail-qk1-f195.google.com with SMTP id m8-v6so21680513qka.12; Fri, 19 Oct 2018 12:24:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=jHydDG8+60wpJW/CzjZHlAATZ1UOTmTYFr6noyYndLY=; b=Gbp2uC8rJfrn6zjV3mVIIh+M6Z5vFHBiIkE6Hhac3yxx2vHU4dyWUsne6aB214PVCf hY8C61E7xp/DO0F9kIYg55EteS7MlW3WNDgRgQ9aFRj+7+tyVyYSWkokCisKA4jG9JPp YvKh7vsKkiJs6jrU3PTCw/lkuF0BhDQ/ax9iku0hP4lSNM0i4E8c88z/1MPmpvJ/lAZt mK+oCQscWinWN0UdhxNj+N2H5OO0G+tJu4UeO4yhulBlFxKZ3VBgaVDcSsNx49lFdflq p95PYi4LbbAaT32eGIkc4AAzlywgOslneVrM6pglGBO9ignvhNa4sAi9vEtfpicXRPnw MDsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=jHydDG8+60wpJW/CzjZHlAATZ1UOTmTYFr6noyYndLY=; b=L2AWDX+PP4covlQ3mjaA/nTTDjOIcPS3j5G3uvDBviRSE2s5Q7hBSWE98oAOwNwxdU KODJk/9AlrIMqrPP4+rcbWX8h4KfhK84bNK7iUSiKzjqfU4vak3lmhcXoQg/NqBOkfau 0TiqlakGi/iVsJ79Z1+n/2DIkekkG5cjFrRSqwoo38sL9O/xXuWetpYke3PfP2IGVeP6 UVndIvf3KK+Qd5UekP8TmGAQMSMMRjH0DSfMLAKFEbbGyMelbkOLtPlZTSXXycM51Cnt Ekpw7mjLNLgnnLLTZg1o9IkTdh5jHfjqp9nQDsFib/a1/WgcKLQXL+ocgrB3Nw8mqORp z6eQ== X-Gm-Message-State: ABuFfohrzhRpGRz5JC3ACIdVgno9bB5jbwRCGnb8hWekhpk96Sn2lW4t GnGoK40bxaEesVlP7PncwfM= X-Received: by 2002:a37:711:: with SMTP id 17-v6mr11016728qkh.64.1539977088233; Fri, 19 Oct 2018 12:24:48 -0700 (PDT) Received: from localhost ([2620:10d:c091:200::6:1eb8]) by smtp.gmail.com with ESMTPSA id 14-v6sm8110608qki.73.2018.10.19.12.24.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Oct 2018 12:24:47 -0700 (PDT) Date: Fri, 19 Oct 2018 12:24:44 -0700 From: Tejun Heo To: Waiman Long Cc: Li Zefan , Johannes Weiner , Peter Zijlstra , Ingo Molnar , 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 , Tom Hromatka Subject: Re: [PATCH v14 12/12] cpuset: Show descriptive text when reading cpuset.sched.partition Message-ID: <20181019192444.GV270328@devbig004.ftw2.facebook.com> References: <1539635377-22335-1-git-send-email-longman@redhat.com> <1539635377-22335-13-git-send-email-longman@redhat.com> <20181017150836.GS270328@devbig004.ftw2.facebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 19, 2018 at 02:56:13PM -0400, Waiman Long wrote: > On 10/17/2018 11:08 AM, Tejun Heo wrote: > > On Mon, Oct 15, 2018 at 04:29:37PM -0400, Waiman Long wrote: > >> Currently, cpuset.sched.partition returns the values, 0, 1 or -1 on > >> read. A person who is not familiar with the partition code may not > >> understand what they mean. > >> > >> In order to make cpuset.sched.partition more user-friendly, it will > >> now display the following descriptive text on read: > >> > >> "normal" - A normal cpuset, not a partition root > >> "partition" - A partition root > >> "partition invalid" - An invalid partition root > >> > >> Suggested-by: Tejun Heo > >> Signed-off-by: Waiman Long > > Can you also make this consistent when writing to the file? > > > > Thanks. > > > How about the attached patch instead? Looks good to me. Once Peter is okay with it, I'll roll it into cgroup devel branch. As v4.19 is almost done, I think it makes more sense to target the next merge window (v4.21). Thanks. -- tejun