Re: [PATCH v4 00/30] NT synchronization primitive driver

From: Peter Zijlstra
Date: Wed Apr 17 2024 - 01:30:06 EST


On Tue, Apr 16, 2024 at 04:18:24PM -0500, Elizabeth Figura wrote:

> Is the concern about poor performance when ntsync is in use, or is nesting a
> lot of spinlocks like that something that could cause problems for unrelated
> tasks? I'm not familiar enough with the scheduler to know if this can be
> abused.

The problem is keeping preemption disabled for potentially a fairly long
time. By doing that you potentially affect the performance of other tasks.