diff options
author | John Kacur <jkacur@redhat.com> | 2009-10-15 21:09:32 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2009-10-20 06:23:06 +0200 |
commit | 1920d618c37ee53bb424a32f26076af2fa5b2a8b (patch) | |
tree | 2a7745951b2d7ab3e04ea95726579d59d0909587 /ipc | |
parent | 3c96a21d186d7cadff3e356ecbea8ee9ad2692aa (diff) | |
download | lwn-1920d618c37ee53bb424a32f26076af2fa5b2a8b.tar.gz lwn-1920d618c37ee53bb424a32f26076af2fa5b2a8b.zip |
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: Joerg Abraham <Joerg.Abraham@alcatel-lucent.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/mqueue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipc/mqueue.c b/ipc/mqueue.c index 63a47f7c0c40..ab4df3626e55 100644 --- a/ipc/mqueue.c +++ b/ipc/mqueue.c @@ -830,7 +830,7 @@ static inline void pipelined_send(struct mqueue_inode_info *info, wake_up_process(receiver->task); smp_wmb(); receiver->state = STATE_READY; - preempt_enable_nort(); + preempt_enable_rt(); } /* pipelined_receive() - if there is task waiting in sys_mq_timedsend() |