diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2014-03-03 11:30:08 +0100 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2014-03-13 14:42:24 +0100 |
commit | 48ff269272f18d2b8fa53cb08365df417588f585 (patch) | |
tree | 45fb082c737ed43501322e2fd042d5a03d655785 /default-configs | |
parent | 6e4a876b433f78f72724f45ae3f9e26596da1b4d (diff) |
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>
Diffstat (limited to 'default-configs')
0 files changed, 0 insertions, 0 deletions