Stefan Hajnoczi 48ff269272 dataplane: replace internal thread with IOThread
Today virtio-blk dataplane uses a 1:1 device-per-thread model.  Now that
IOThreads have been introduced we can generalize this to N:M devices per
threads.

This patch drops thread code from dataplane in favor of running inside
an IOThread AioContext.

As a bonus we solve the case where a guest keeps submitting I/O requests
while dataplane is trying to stop.  Previously the dataplane thread
would continue to process requests until the request gave it a break.
Now we can shut down in bounded time thanks to
aio_context_acquire/release.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2014-03-13 14:42:24 +01:00
..
2014-02-14 16:22:31 +01:00
2013-06-07 14:55:33 +02:00
2013-12-17 20:12:51 +00:00
2013-12-24 18:02:18 +01:00
2014-02-03 14:04:00 +00:00
2014-02-14 16:22:32 +01:00
2014-03-11 13:27:27 +02:00
2014-02-26 17:20:00 +00:00
2014-02-14 16:22:31 +01:00
2013-07-29 21:06:27 +02:00
2013-11-05 17:47:30 +01:00
2014-02-27 10:01:40 +00:00
2013-12-17 20:12:51 +00:00
2014-03-05 03:06:46 +01:00
2014-02-10 10:23:35 +02:00
2013-06-27 15:38:35 -05:00
2014-03-11 13:25:48 +02:00
2013-05-01 20:55:21 +04:00