Stefan Hajnoczi 3c80ca158c thread-pool: avoid deadlock in nested aio_poll() calls
The thread pool has a race condition if two elements complete before
thread_pool_completion_bh() runs:

  If element A's callback waits for element B using aio_poll() it will
  deadlock since pool->completion_bh is not marked scheduled when the
  nested aio_poll() runs.

Fix this by marking the BH scheduled while thread_pool_completion_bh()
is executing.  This way any nested aio_poll() loops will enter
thread_pool_completion_bh() and complete the remaining elements.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2014-08-15 15:07:14 +02:00
2014-06-23 11:00:12 -04:00
2014-08-15 15:07:14 +02:00
2014-07-08 15:08:03 +02:00
2014-07-29 13:23:33 +01:00
2014-08-15 15:07:14 +02:00
2014-07-18 17:45:37 +04:00
2014-06-29 18:59:06 +03:00
2014-07-25 09:43:31 +02:00
2014-06-27 09:27:55 -04:00
2014-07-09 15:50:11 +02:00
2014-07-09 15:50:11 +02:00
2014-06-23 11:12:28 -04:00
2014-06-23 11:01:25 -04:00
2014-07-14 12:03:21 +02:00
2014-06-23 11:01:25 -04:00
2014-06-23 19:09:50 +02:00
2014-06-30 12:50:17 +02:00
2014-07-06 09:13:53 +03:00
2014-07-07 09:15:29 +02:00
2014-08-01 18:30:08 +01:00
2014-08-01 15:57:28 +00:00
2014-07-07 10:37:40 +00:00

Read the documentation in qemu-doc.html or on http://wiki.qemu-project.org

- QEMU team
Description
No description provided
Readme 404 MiB
Languages
C 82.6%
C++ 6.5%
Python 3.4%
Dylan 2.9%
Shell 1.6%
Other 2.8%