Commit 1920d618 authored by John Kacur's avatar John Kacur Committed by Thomas Gleixner

ipc: fix rt/non_rt imbalance

commit 3c96a2 (ipc: Make the ipc code -rt aware) introduced a
imbalance of preempt_disable_rt vs. preempt_enable_nort. That results
in preempt count leak.

Make it symetric.
Reported-by: default avatarJoerg Abraham <Joerg.Abraham@alcatel-lucent.de>
Signed-off-by: default avatarJohn Kacur <jkacur@redhat.com>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 3c96a21d
...@@ -830,7 +830,7 @@ static inline void pipelined_send(struct mqueue_inode_info *info, ...@@ -830,7 +830,7 @@ static inline void pipelined_send(struct mqueue_inode_info *info,
wake_up_process(receiver->task); wake_up_process(receiver->task);
smp_wmb(); smp_wmb();
receiver->state = STATE_READY; receiver->state = STATE_READY;
preempt_enable_nort(); preempt_enable_rt();
} }
/* pipelined_receive() - if there is task waiting in sys_mq_timedsend() /* pipelined_receive() - if there is task waiting in sys_mq_timedsend()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment