Re: [PATCH] nvme: add cond_resched() to nvme_complete_batch()

Keith Busch
2023-05-03T16:29:04Z

On Tue, May 02, 2023 at 08:54:12PM +0800, jiweisun126@126.com wrote:
> According to the above two logs, we can know the nvme_irq() cost too much
> time, in the above case, about 4.8 second. And we can also know that the
> main bottlenecks is in the competition for the spin lock pool->lock.

I have a fix that makes pool->lock critical section much shorter and constant
time. It was staged in mm tree for months, but mysteriously it's missing...