vhost: apply cgroup to vhost workers
authorMichael S. Tsirkin <mst@redhat.com>
Tue, 27 Jul 2010 19:56:50 +0000 (22:56 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 28 Jul 2010 12:45:18 +0000 (15:45 +0300)
commit9e3d195720d1c8b1e09013185ab8c3b749180fc2
tree365fad241060b88546d7d5523e9c5a74c968a56c
parentd7926ee38f5c6e0bbebe712304f99a4c67e40f84
vhost: apply cgroup to vhost workers

Apply the cgroup of the owner task to the created vhost worker.

Based on patches from Sridhar Samudrala's and Tejun Heo.
Later we'll need to also apply cpumask and probably priority
of the owner process.

Discussion on the best way to do this is still ongoing.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: Sridhar Samudrala <samudrala.sridhar@gmail.com>
Cc: Li Zefan <lizf@cn.fujitsu.com>
drivers/vhost/vhost.c