On 09/09/20(Wed) 10:02, Claudio Jeker wrote: > On Wed, Sep 09, 2020 at 08:33:30AM +0200, Martin Pieuchot wrote: > > Per-process data structures needed to suspend the execution of threads > > are since recently protected by the SCHED_LOCK(). So the KERNEL_LOCK() > > dance inside issignal() is no longer necessary and can be removed, ok? > > This is not quite right. single_thread_set() still needs the > KERNEL_LOCK() to avoid racing against itself.
Which data structure still requires the KERNEL_LOCK()? Are you talking about the per-process list of threads? Isn't the SCHED_LOCK() enough to prevent racing against itself?