[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1512522777-10035-1-git-send-email-jhaws@sdl.usu.edu>
Date: Tue, 5 Dec 2017 18:12:57 -0700
From: Jonathan Haws <jhaws@....usu.edu>
To: <linux-kernel@...r.kernel.org>
CC: Jonathan Haws <jhaws@....usu.edu>
Subject: [RFC][PATCH] Fixing POSIX wait queue to insert in task priority order for real-time, including normal tasks
---
ipc/mqueue.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ipc/mqueue.c b/ipc/mqueue.c
index 9649ecd..cb96db9 100644
--- a/ipc/mqueue.c
+++ b/ipc/mqueue.c
@@ -546,7 +546,7 @@ static void wq_add(struct mqueue_inode_info *info, int sr,
ewp->task = current;
list_for_each_entry(walk, &info->e_wait_q[sr].list, list) {
- if (walk->task->static_prio <= current->static_prio) {
+ if (walk->task->prio <= current->prio) {
list_add_tail(&ewp->list, &walk->list);
return;
}
--
2.7.4
Powered by blists - more mailing lists