All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC][PATCH 0/3] cgroups: support for module-loadable subsystems
@ 2009-11-02 21:28 ` Ben Blum
  0 siblings, 0 replies; 20+ messages in thread
From: Ben Blum @ 2009-11-02 21:28 UTC (permalink / raw)
  To: linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA,
	lizf-zuA2N8Q4brPw3oLZptLEjg,
	akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b,
	menage-hpIqsD4AKlfQT0dZR+AlfA, bblum-OM76b2Iv3yLQjUSlxSEPGw

This patch series implements simple support for building and loading
subsystems as modules, both within and outside the kernel source tree.
Module unloading is as yet unimplemented - it will require more advanced
reference counting in the mount/unmount code, and I plan to work on this
soon.

Patch #1 sets up the subsys[] array so its contents can be dynamic as
modules appear and (eventually) disappear. I introduce an rwsem called
subsys_mutex to protect against concurrent loads/unloads/reads, and
modify iterations over the array to handle when subsystems are absent.

Patch #2 implements an interface for modules to load subsystems, called
cgroup_load_subsys, similar to cgroup_init_subsys, and adds a module
pointer in struct cgroup_subsys.

Patch #3 modifies the net_cls subsystem, which already had some module
declarations, to be configurable as a module, which also serves as a
simple proof-of-concept.

-- bblum

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2009-11-04 21:18 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-02 21:28 [RFC][PATCH 0/3] cgroups: support for module-loadable subsystems Ben Blum
2009-11-02 21:28 ` Ben Blum
     [not found] ` <20091102212825.GA13692-OM76b2Iv3yLQjUSlxSEPGw@public.gmane.org>
2009-11-02 21:29   ` [RFC][PATCH 1/3] cgroups: revamp subsys array Ben Blum
2009-11-02 21:29     ` Ben Blum
2009-11-02 21:30   ` [RFC][PATCH 2/3] cgroups: subsystem module interface Ben Blum
2009-11-02 21:30     ` Ben Blum
2009-11-04 20:30     ` Ben Blum
     [not found]       ` <20091104203024.GA14471-OM76b2Iv3yLQjUSlxSEPGw@public.gmane.org>
2009-11-04 21:18         ` Paul Menage
2009-11-04 21:18           ` Paul Menage
     [not found]     ` <20091102213022.GC13692-OM76b2Iv3yLQjUSlxSEPGw@public.gmane.org>
2009-11-04 20:30       ` Ben Blum
2009-11-02 21:31   ` [RFC][PATCH 3/3] cgroups: net_cls subsys as module Ben Blum
2009-11-02 21:31     ` Ben Blum
     [not found]     ` <20091102213103.GD13692-OM76b2Iv3yLQjUSlxSEPGw@public.gmane.org>
2009-11-02 21:46       ` Randy Dunlap
2009-11-02 21:46     ` Randy Dunlap
2009-11-03  2:03   ` [RFC][PATCH 0/3] cgroups: support for module-loadable subsystems Li Zefan
2009-11-03  2:03 ` Li Zefan
     [not found]   ` <4AEF8F7E.1000007-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2009-11-03  2:11     ` Paul Menage
2009-11-03  2:11   ` Paul Menage
2009-11-03  2:42     ` Li Zefan
     [not found]     ` <6599ad830911021811n7ccf7a70y6939ac581381c22f-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-11-03  2:42       ` Li Zefan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.