linux/drivers/vhost
Qin Chuanyu ac9fde2474 vhost: wake up worker outside spin_lock
the wake_up_process func is included by spin_lock/unlock in
vhost_work_queue,
but it could be done outside the spin_lock.
I have test it with kernel 3.0.27 and guest suse11-sp2 using iperf,
the num as below.
                  original                 modified
thread_num  tp(Gbps)   vhost(%)  |  tp(Gbps)     vhost(%)
1           9.59        28.82    |   9.59        27.49
8           9.61        32.92    |   9.62        26.77
64          9.58        46.48    |   9.55        38.99
256         9.6         63.7     |   9.6         52.59

Signed-off-by: Chuanyu Qin <qinchuanyu@huawei.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2013-09-17 09:21:32 +03:00
..
Kconfig vhost: Make vhost a separate module 2013-07-07 17:33:44 +03:00
Makefile vhost: Make vhost a separate module 2013-07-07 17:33:44 +03:00
net.c vhost_net: correctly limit the max pending buffers 2013-09-03 22:46:58 -04:00
scsi.c target: Update copyright ownership/year information to 2013 2013-09-10 20:23:36 -07:00
test.c vhost: Remove custom vhost rcu usage 2013-07-11 15:38:40 +03:00
test.h vhost test module 2010-12-09 16:00:21 +02:00
vhost.c vhost: wake up worker outside spin_lock 2013-09-17 09:21:32 +03:00
vhost.h vhost: Remove custom vhost rcu usage 2013-07-11 15:38:40 +03:00
vringh.c Add missing module license tag to vring helpers. 2013-05-08 10:49:03 +09:30