Linux Container Development
 help / color / mirror / Atom feed
  • [parent not found: <1385595759-17656-4-git-send-email-tj@kernel.org>]
  • [parent not found: <1385595759-17656-6-git-send-email-tj@kernel.org>]
  • [parent not found: <1385595759-17656-8-git-send-email-tj@kernel.org>]
  • [parent not found: <1385595759-17656-12-git-send-email-tj@kernel.org>]
  • [parent not found: <1385595759-17656-5-git-send-email-tj@kernel.org>]
  • [parent not found: <1385595759-17656-13-git-send-email-tj@kernel.org>]
  • [parent not found: <1385595759-17656-11-git-send-email-tj@kernel.org>]
  • * [PATCHSET cgroup/for-3.14] cgroup: consolidate file handling
    @ 2013-11-27 23:42 Tejun Heo
      0 siblings, 0 replies; 38+ messages in thread
    From: Tejun Heo @ 2013-11-27 23:42 UTC (permalink / raw)
      To: lizefan-hv44wF8Li93QT0dZR+AlfA
      Cc: nhorman-2XuSBdqkA4R54TAoqtyWWQ,
    	containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA,
    	daniel.wagner-98C5kh4wR6ohFhg+JK9F0w, mhocko-AlSwsSmVLrQ,
    	mingo-H+wXaHxf7aLQT0dZR+AlfA, hannes-druUgvl0LCNAfugRpC6u6w,
    	cgroups-u79uwXL29TY76Z2rM5mHXA, vgoyal-H+wXaHxf7aLQT0dZR+AlfA
    
    Hello,
    
    cgroup is scheduled to be converted to use kernfs, which is currently
    in the process of being separated out of sysfs, so that, among other
    things, cgroup core locking can be decoupled from vfs layer.  This
    patchset cleans up and conslidates cgroup file handling to facilitate
    such conversion.
    
    There currently are a couple different rw paths including the ones
    which don't impose any structure.  All existing users and expected
    reasonable use cases can be served with standard seq_file interface
    and buffered writes, which is what's provided by kernfs.
    
    This patchset updates cgroup file handling so that the interface and
    usages are more concise and there is single path for read and single
    path for write, both of which closely map to the interface kernfs
    provides.
    
    This series ends up adding some amount of code which will be replaced
    by kernfs but, overall, things get more streamlined and LOC is
    reduced.
    
    The following 12 patches are included in the series.
    
     0001-cgroup-sched-convert-away-from-cftype-read_map.patch
     0002-cpuset-convert-away-from-cftype-read.patch
     0003-memcg-convert-away-from-cftype-read-and-read_map.patch
     0004-netprio_cgroup-convert-away-from-cftype-read_map.patch
     0005-hugetlb_cgroup-convert-away-from-cftype-read.patch
     0006-cgroup-remove-cftype-read-read_map-and-write.patch
     0007-cgroup-unify-cgroup_write_X64-and-cgroup_write_strin.patch
     0008-cgroup-unify-read-path-so-that-seq_file-is-always-us.patch
     0009-cgroup-generalize-cgroup_pidlist_open_file.patch
     0010-cgroup-attach-cgroup_open_file-to-all-cgroup-files.patch
     0011-cgroup-replace-cftype-read_seq_string-with-cftype-se.patch
     0012-cgroup-unify-pidlist-and-other-file-handling.patch
    
    While this series touches a lot of controllers, all updates to the
    controllers are mostly mechnical.  I think it'd be best if the series
    can be routed through cgroup/for-3.14 branch.
    
    This patchset is on top of
    
      cgroup/for-3.14 c729b11edf74 ("cgroup: Merge branch 'for-3.13-fixes' into for-3.14")
    + [1] [PATCHSET] cgroup: restructure pidlist handling
    
    and available in the following git branch.
    
     git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git review-consolidate-file-handling
    
    diffstat follows.
    
     block/blk-throttle.c      |   35 +---
     block/cfq-iosched.c       |  131 +++++++--------
     include/linux/cgroup.h    |   71 ++++----
     kernel/cgroup.c           |  380 ++++++++++++++++------------------------------
     kernel/cgroup_freezer.c   |    7
     kernel/cpuset.c           |   71 ++------
     kernel/sched/core.c       |   13 -
     kernel/sched/cpuacct.c    |   18 --
     mm/hugetlb_cgroup.c       |   22 --
     mm/memcontrol.c           |   73 +++-----
     net/core/netprio_cgroup.c |    8
     security/device_cgroup.c  |    7
     12 files changed, 339 insertions(+), 497 deletions(-)
    
    Thanks.
    
    --
    tejun
    
    [1] http://lkml.kernel.org/g/1385331096-7918-1-git-send-email-tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org
    
    ^ permalink raw reply	[flat|nested] 38+ messages in thread

    end of thread, other threads:[~2013-12-05 17:26 UTC | newest]
    
    Thread overview: 38+ messages (download: mbox.gz follow: Atom feed
    -- links below jump to the message on this page --
         [not found] <1385595759-17656-1-git-send-email-tj@kernel.org>
         [not found] ` <1385595759-17656-1-git-send-email-tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
    2013-11-27 23:42   ` [PATCH 01/12] cgroup, sched: convert away from cftype->read_map() Tejun Heo
    2013-11-27 23:42   ` [PATCH 02/12] cpuset: convert away from cftype->read() Tejun Heo
    2013-11-27 23:42   ` [PATCH 03/12] memcg: convert away from cftype->read() and ->read_map() Tejun Heo
    2013-11-27 23:42   ` [PATCH 04/12] netprio_cgroup: convert away from cftype->read_map() Tejun Heo
    2013-11-27 23:42   ` [PATCH 05/12] hugetlb_cgroup: convert away from cftype->read() Tejun Heo
    2013-11-27 23:42   ` [PATCH 06/12] cgroup: remove cftype->read(), ->read_map() and ->write() Tejun Heo
    2013-11-27 23:42   ` [PATCH 07/12] cgroup: unify cgroup_write_X64() and cgroup_write_string() Tejun Heo
    2013-11-27 23:42   ` [PATCH 08/12] cgroup: unify read path so that seq_file is always used Tejun Heo
    2013-11-27 23:42   ` [PATCH 09/12] cgroup: generalize cgroup_pidlist_open_file Tejun Heo
    2013-11-27 23:42   ` [PATCH 10/12] cgroup: attach cgroup_open_file to all cgroup files Tejun Heo
    2013-11-27 23:42   ` [PATCH 11/12] cgroup: replace cftype->read_seq_string() with cftype->seq_show() Tejun Heo
    2013-11-27 23:42   ` [PATCH 12/12] cgroup: unify pidlist and other file handling Tejun Heo
    2013-12-05  1:48   ` [PATCHSET cgroup/for-3.14] cgroup: consolidate " Li Zefan
    2013-12-05 17:26   ` Tejun Heo
         [not found] ` <1385595759-17656-4-git-send-email-tj@kernel.org>
         [not found]   ` <1385595759-17656-4-git-send-email-tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
    2013-11-28  8:26     ` [PATCH 03/12] memcg: convert away from cftype->read() and ->read_map() Michal Hocko
         [not found] ` <1385595759-17656-6-git-send-email-tj@kernel.org>
         [not found]   ` <1385595759-17656-6-git-send-email-tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
    2013-11-28  8:29     ` [PATCH 05/12] hugetlb_cgroup: convert away from cftype->read() Michal Hocko
         [not found] ` <1385595759-17656-8-git-send-email-tj@kernel.org>
         [not found]   ` <1385595759-17656-8-git-send-email-tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
    2013-11-28 11:18     ` [PATCH 07/12] cgroup: unify cgroup_write_X64() and cgroup_write_string() Michal Hocko
         [not found]       ` <20131128111818.GG2761-2MMpYkNvuYDjFM9bn6wA6Q@public.gmane.org>
    2013-11-29 20:05         ` Tejun Heo
         [not found]           ` <20131129200525.GC21755-9pTldWuhBndy/B6EtB590w@public.gmane.org>
    2013-12-02  9:54             ` Michal Hocko
         [not found]               ` <20131202095401.GA18838-2MMpYkNvuYDjFM9bn6wA6Q@public.gmane.org>
    2013-12-02 13:30                 ` Tejun Heo
         [not found]                   ` <20131202133059.GA3626-Gd/HAXX7CRxy/B6EtB590w@public.gmane.org>
    2013-12-02 14:12                     ` Michal Hocko
         [not found]                       ` <20131202141242.GD18838-2MMpYkNvuYDjFM9bn6wA6Q@public.gmane.org>
    2013-12-03 20:41                         ` Tejun Heo
         [not found]                           ` <20131203204155.GL8277-Gd/HAXX7CRxy/B6EtB590w@public.gmane.org>
    2013-12-03 21:04                             ` Michal Hocko
    2013-12-02 16:44             ` Johannes Weiner
         [not found]           ` <20131202164406.GP3556@cmpxchg.org>
         [not found]             ` <20131202164406.GP3556-druUgvl0LCNAfugRpC6u6w@public.gmane.org>
    2013-12-03  7:35               ` Li Zefan
         [not found] ` <1385595759-17656-12-git-send-email-tj@kernel.org>
         [not found]   ` <1385595759-17656-12-git-send-email-tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
    2013-11-28  9:07     ` [PATCH 11/12] cgroup: replace cftype->read_seq_string() with cftype->seq_show() Daniel Wagner
    2013-11-28 11:25     ` Michal Hocko
    2013-12-02 14:41     ` Aristeu Rozanski
    2013-12-02 14:52     ` Vivek Goyal
         [not found] ` <1385595759-17656-5-git-send-email-tj@kernel.org>
         [not found]   ` <1385595759-17656-5-git-send-email-tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
    2013-11-29  1:56     ` [PATCH 04/12] netprio_cgroup: convert away from cftype->read_map() Neil Horman
    2013-11-29  8:52     ` Daniel Wagner
         [not found] ` <1385595759-17656-13-git-send-email-tj@kernel.org>
         [not found]   ` <1385595759-17656-13-git-send-email-tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
    2013-12-04  6:20     ` [PATCH 12/12] cgroup: unify pidlist and other file handling Li Zefan
    2013-12-04 15:09     ` [PATCH v3 " Tejun Heo
         [not found]   ` <529EC9A6.903@huawei.com>
         [not found]     ` <529EC9A6.903-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
    2013-12-04 13:08       ` [PATCH " Tejun Heo
         [not found] ` <1385595759-17656-11-git-send-email-tj@kernel.org>
         [not found]   ` <1385595759-17656-11-git-send-email-tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
    2013-12-04  6:04     ` [PATCH 10/12] cgroup: attach cgroup_open_file to all cgroup files Li Zefan
         [not found]       ` <529EC5F4.10708-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
    2013-12-04 13:04         ` Tejun Heo
    2013-12-04 15:09     ` [PATCH v2 " Tejun Heo
    2013-11-27 23:42 [PATCHSET cgroup/for-3.14] cgroup: consolidate file handling Tejun Heo
    

    This is a public inbox, see mirroring instructions
    for how to clone and mirror all data and code used for this inbox