Il 09/10/2012 13:55, Avi Kivity ha scritto: > Oh, agree 100% raw + native aio wants to bypass coroutines/threads > completely.
Even posix-aio-compat can bypass coroutines. > We could perhaps even avoid refcounting, by shutting down the device > thread as part of hotunplug. Yes, you "just" join the thread, ask it to exit, and not hot-unplug until it's done. > [could we also avoid refcounting by doing the equivalent of > stop_machine() during hotunplug?] That's quite an interesting alternative. Paolo