xen: events: Process event channels notifications in round-robin order.
authorScott Rixner <rixner@rice.edu>
Thu, 3 Mar 2011 09:30:08 +0000 (09:30 +0000)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 10 Mar 2011 19:47:55 +0000 (14:47 -0500)
commitab7f863e4183057dc494f3180199934a9637d401
treece9d47b75c63937fa77285f8475b7207834d760c
parent71eef7d1e3d9df760897fdd2cad6949a8bcf1620
xen: events: Process event channels notifications in round-robin order.

Avoids fairness issue resulting from domain 0 processing lowest
numbered event channel first.

Fixes bug #1115 "Event channel port scanning unfair".

Bugzilla: http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1115
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
[ijc: forward ported from linux-2.6.18-xen.hg 324:7fe1c6d02a2b
 various variables have different names in this tree:
  l1  -> pending_words
  l2  -> pending_bits
  l1i -> word_idx
  l2i -> bit_idx]
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/events.c