Re: Question on threaded handlers for managed interrupts

From: John Garry
Date: Fri Apr 23 2021 - 11:03:50 EST


Hi Thomas,

On 23/04/2021 14:01, Thomas Gleixner wrote:
On Fri, Apr 23 2021 at 12:50, Thomas Gleixner wrote:
On Thu, Apr 22 2021 at 17:10, John Garry wrote:
OTOH, the way how you splitted the handling into hard/thread context
provides already the base for this.

The missing piece is infrastructure at the irq/scheduler core level to
handle this transparently.

I have some horrible ideas how to solve that, but I'm sure the scheduler
wizards can come up with a reasonable and generic solution.
So one thing I forgot to ask is:

Is the thread simply stuck in the while() loop forever or is
this just an endless hardirq/thread/hardirq/thread stream?

The thread will process all available completions and then return. I added some debug there, and at most we handle maybe max 150-300 completions per thread run.

So I figure that we have the endless hardirq/thread/hardirq/thread stream.

Thanks,
John