Re: [RFC PATCH] vhost-blk: An in-kernel accelerator for virtio-blk

From: Stefan Hajnoczi
Date: Thu Jul 28 2011 - 11:18:21 EST


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 linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/