xenbus: add missing wakeup in concurrent read/write
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>
Tue, 7 Sep 2010 15:42:18 +0000 (11:42 -0400)
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Wed, 8 Sep 2010 13:18:02 +0000 (23:18 +1000)
commit76ce7618f9a24f7b13958c67f7d5ccfcdab71475
treeef9dc704b151062924cc1ae1a43aeea2b3d76d5e
parent6d6df2e412297b8047c407b3abcd045a67c96744
xenbus: add missing wakeup in concurrent read/write

If an application has a dedicated read thread watching xenbus and
another thread writes an XS_WATCH message that generates a synthetic
"OK" reply, this reply will be enqueued in the buffer without waking up
the reader. This can cause a deadlock in the application if it then
waits for the read thread to receive the queued message.

Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
commit e752969f502a511e83f841aa01d6cd332e6d85a0
Author: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Date:   Tue Sep 7 11:21:52 2010 -0400

    xenbus: fix deadlock in concurrent read/write

    If an application has a dedicated read thread watching xenbus and another
    thread writes an XS_WATCH message that generates a synthetic "OK" reply,
    this reply will be enqueued in the buffer without waking up the reader.
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
drivers/xen/xenfs/xenbus.c