]> git.baikalelectronics.ru Git - kernel.git/commit
xen/evtchn: improve scalability by using per-user locks
authorDavid Vrabel <david.vrabel@citrix.com>
Fri, 19 Jul 2013 14:52:00 +0000 (15:52 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 9 Aug 2013 15:06:49 +0000 (11:06 -0400)
commit8bf20c055963e38832574a44d18ec6eeda43d56d
treeca6e323a988c1ef325edea401744d907ad563d21
parent014bc392d5acd52478fb90d16f8c1a8175a62c60
xen/evtchn: improve scalability by using per-user locks

The global array of port users and the port_user_lock limits
scalability of the evtchn device.  Instead of the global array lookup,
use a per-use (per-fd) tree of event channels bound by that user and
protect the tree with a per-user lock.

This is also a prerequiste for extended the number of supported event
channels, by removing the fixed size, per-event channel array.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/evtchn.c