diff options
author | Tejun Heo <tj@kernel.org> | 2010-06-02 20:40:00 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2010-07-28 14:44:53 +0200 |
commit | c23f3445e68e1db0e74099f264bc5ff5d55ebdeb (patch) | |
tree | 0a8e22e9a10c2978777954a022d721eb02e622be /firmware/myricom | |
parent | r6040: Fix args to phy_mii_ioctl(). (diff) | |
download | linux-c23f3445e68e1db0e74099f264bc5ff5d55ebdeb.tar.xz linux-c23f3445e68e1db0e74099f264bc5ff5d55ebdeb.zip |
vhost: replace vhost_workqueue with per-vhost kthread
Replace vhost_workqueue with per-vhost kthread. Other than callback
argument change from struct work_struct * to struct vhost_work *,
there's no visible change to vhost_poll_*() interface.
This conversion is to make each vhost use a dedicated kthread so that
resource control via cgroup can be applied.
Partially based on Sridhar Samudrala's patch.
* Updated to use sub structure vhost_work instead of directly using
vhost_poll at Michael's suggestion.
* Added flusher wake_up() optimization at Michael's suggestion.
Changes by MST:
* Converted atomics/barrier use to a spinlock.
* Create thread on SET_OWNER
* Fix flushing
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Cc: Sridhar Samudrala <samudrala.sridhar@gmail.com>
Diffstat (limited to 'firmware/myricom')
0 files changed, 0 insertions, 0 deletions