Re: [PATCH] virtio_blk: allow re-reading config space at runtime

From: Christoph Hellwig
Date: Tue Jan 18 2011 - 18:54:13 EST


On Wed, Jan 19, 2011 at 09:56:09AM +1030, Rusty Russell wrote:
> > I don't think we have much choice. We're getting called from irq
> > context, so we'll need to allocate memory to offload things. That's
> > unless we keep a thread around that we just need to wake up, which
> > would be a huge waste of ressources.
>
> Yes, but can we keep a workqueue struct around?

We can keep one around, but we can't prevent the virtio core code from
calling us again while it's still in use.

--
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/