[PATCH bpf-next v2 11/26] rqspinlock: Add deadlock detection and recovery

Peter Zijlstra peterz at infradead.org
Mon Feb 10 02:21:39 PST 2025


On Thu, Feb 06, 2025 at 02:54:19AM -0800, Kumar Kartikeya Dwivedi wrote:
> +#define RES_NR_HELD 32
> +
> +struct rqspinlock_held {
> +	int cnt;
> +	void *locks[RES_NR_HELD];
> +};

That cnt field makes the whole thing overflow a cacheline boundary.
Making it 31 makes it fit again.



More information about the linux-arm-kernel mailing list