On Thu, Jul 28, 2011 at 3:29 PM, Liu Yuan <namei.unix@xxxxxxxxx> wrote: > +static int blk_completion_worker(void *priv) > +{ Do you really need this? How about using the vhost poll helper to observe the eventfd? Then you can drop your own worker thread code and simply have a work function to handle all pending completions events. Stefan -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html