Re: [PATCH v7 09/18] virt: acrn: Introduce I/O request management

From: Davidlohr Bueso
Date: Tue Jan 12 2021 - 12:30:24 EST


On Tue, 12 Jan 2021, Shuo A Liu wrote:

On Mon 11.Jan'21 at 13:52:19 -0800, Davidlohr Bueso wrote:
Could this not be done in process context instead?

It could be. The original consideration with tasklet was more about
performance as the I/O requests dispatching is a hot code path. I think
irq thread has little performance impact? I can have a try to convert
the tasklet to irq thread.

Yes, there is some added latency between when the work is scheduled and
actually executed - however this should not be a problem for this scenario,
and furthermore consider that tasklets do not guarantee performance as
ksoftirqd comes in the picture under heavy load.

Thanks,
Davidlohr