summaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorMike Galbraith <umgwanakikbuti@gmail.com>2020-05-27 22:11:17 +0200
committerIngo Molnar <mingo@kernel.org>2020-05-28 10:31:10 +0200
commit3e92fd7bd2b8418b53cb7304855b8b69bedbe2b4 (patch)
tree927d18b1edc42b24367726fbdeea650e5b182149 /drivers/md
parentfd56200a16c72c7c3ec3e54e06160dfaa5b8dee8 (diff)
downloadlinux-3e92fd7bd2b8418b53cb7304855b8b69bedbe2b4.tar.gz
linux-3e92fd7bd2b8418b53cb7304855b8b69bedbe2b4.tar.bz2
linux-3e92fd7bd2b8418b53cb7304855b8b69bedbe2b4.zip
connector/cn_proc: Protect send_msg() with a local lock
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 RT semantics. Convert it to a local_lock which allows RT kernels to substitute them with a real per CPU lock. On non RT kernels this maps to preempt_disable() as before. No functional change. [bigeasy: Patch description] Signed-off-by: Mike Galbraith <umgwanakikbuti@gmail.com> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Ingo Molnar <mingo@kernel.org> Acked-by: Peter Zijlstra <peterz@infradead.org> Link: https://lore.kernel.org/r/20200527201119.1692513-6-bigeasy@linutronix.de
Diffstat (limited to 'drivers/md')
0 files changed, 0 insertions, 0 deletions