Re: [RFC PATCH 1/2] locking: add mutex_lock_nospin()

From: Peter Zijlstra

Date: Wed Mar 04 2026 - 04:04:18 EST


On Wed, Mar 04, 2026 at 03:46:49PM +0800, Yafang Shao wrote:
> Introduce mutex_lock_nospin(), a helper that disables optimistic spinning
> on the owner for specific heavy locks. This prevents long spinning times
> that can lead to latency spikes for other tasks on the same runqueue.

This makes no sense; spinning stops on need_resched().