Re: [PATCH 6/8] connector/cn_proc: Protect send_msg() with a local lock

2020-05-20 Thread Peter Zijlstra
On Tue, May 19, 2020 at 10:19:10PM +0200, Sebastian Andrzej Siewior wrote: > @@ -40,10 +41,11 @@ static struct cb_id cn_proc_event_id = { CN_IDX_PROC, > CN_VAL_PROC }; > > /* proc_event_counts is used as the sequence number of the netlink message */ > static DEFINE_PER_CPU(__u32, proc_event_co

[PATCH 6/8] connector/cn_proc: Protect send_msg() with a local lock

2020-05-19 Thread Sebastian Andrzej Siewior
From: Mike Galbraith send_msg() disables preemption to avoid out-of-order messages. As the code inside the preempt disabled section acquires regular spinlocks, which are converted to 'sleeping' spinlocks on a PREEMPT_RT kernel and eventually calls into a memory allocator, this conflicts with the