Re: [RFC][PATCH] ipc: mqueue: wq_add priority changed to dynamic priority

2017-12-11 Thread Jonathan Haws
On Mon, 2017-12-11 at 14:32 -0500, Steven Rostedt wrote: > On Mon, 11 Dec 2017 17:12:05 + > Jonathan Haws <jh...@sdl.usu.edu> wrote: > > > > > Adding linux-rt-users group to thread. > > ____ > > From: Jonathan Ha

Re: [RFC][PATCH] ipc: mqueue: wq_add priority changed to dynamic priority

2017-12-11 Thread Jonathan Haws
On Mon, 2017-12-11 at 14:32 -0500, Steven Rostedt wrote: > On Mon, 11 Dec 2017 17:12:05 + > Jonathan Haws wrote: > > > > > Adding linux-rt-users group to thread. > > ____ > > From: Jonathan Haws > > Sent: Mon

Re: [RFC][PATCH] ipc: mqueue: wq_add priority changed to dynamic priority

2017-12-11 Thread Jonathan Haws
Adding linux-rt-users group to thread. From: Jonathan Haws <jh...@sdl.usu.edu> Sent: Monday, December 11, 2017 08:37 To: mi...@kernel.org; v...@zeniv.linux.org.uk; a...@arndb.de; a...@linux-foundation.org; deepa.ker...@gmail.com Cc: linux-

Re: [RFC][PATCH] ipc: mqueue: wq_add priority changed to dynamic priority

2017-12-11 Thread Jonathan Haws
Adding linux-rt-users group to thread. From: Jonathan Haws Sent: Monday, December 11, 2017 08:37 To: mi...@kernel.org; v...@zeniv.linux.org.uk; a...@arndb.de; a...@linux-foundation.org; deepa.ker...@gmail.com Cc: linux-kernel@vger.kernel.org; t

[RFC][PATCH] ipc: mqueue: wq_add priority changed to dynamic priority

2017-12-11 Thread Jonathan Haws
to to ensure that it releases any other locks it may be holding in a more timely manner. It is understood that the task could have a lower priority when it wakes than when it was added to the queue in this (unlikely) case. Signed-off-by: Jonathan Haws <jh...@sdl.usu.edu> --- ipc/mqueue.c | 2

[RFC][PATCH] ipc: mqueue: wq_add priority changed to dynamic priority

2017-12-11 Thread Jonathan Haws
to to ensure that it releases any other locks it may be holding in a more timely manner. It is understood that the task could have a lower priority when it wakes than when it was added to the queue in this (unlikely) case. Signed-off-by: Jonathan Haws --- ipc/mqueue.c | 2 +- 1 file changed, 1

Re: [RFC][PATCHv2] Fixing POSIX wait queue to insert in task priority order for real-time, including normal tasks

2017-12-11 Thread Jonathan Haws
they made the change. That way, the code can be > modified if > circumstances change for why the code is the way it is. But without > knowing > why changes were done, new updates may not be made out of fear for > breaking > something they don't understand. > Right - I'll shor

Re: [RFC][PATCHv2] Fixing POSIX wait queue to insert in task priority order for real-time, including normal tasks

2017-12-11 Thread Jonathan Haws
they made the change. That way, the code can be > modified if > circumstances change for why the code is the way it is. But without > knowing > why changes were done, new updates may not be made out of fear for > breaking > something they don't understand. > Right - I'll shor

Re: [RFC][PATCHv2] Fixing POSIX wait queue to insert in task priority order for real-time, including normal tasks

2017-12-05 Thread Jonathan Haws
. Thanks! Jon > Signed-off-by: Jonathan Haws <jh...@sdl.usu.edu> > --- >  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

Re: [RFC][PATCHv2] Fixing POSIX wait queue to insert in task priority order for real-time, including normal tasks

2017-12-05 Thread Jonathan Haws
. Thanks! Jon > Signed-off-by: Jonathan Haws > --- >  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,

[RFC][PATCHv2] Fixing POSIX wait queue to insert in task priority order for real-time, including normal tasks

2017-12-05 Thread Jonathan Haws
Signed-off-by: Jonathan Haws <jh...@sdl.usu.edu> --- 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_inod

[RFC][PATCHv2] Fixing POSIX wait queue to insert in task priority order for real-time, including normal tasks

2017-12-05 Thread Jonathan Haws
Signed-off-by: Jonathan Haws --- 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

[RFC][PATCH] Fixing POSIX wait queue to insert in task priority order for real-time, including normal tasks

2017-12-05 Thread Jonathan Haws
--- 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;

[RFC][PATCH] Fixing POSIX wait queue to insert in task priority order for real-time, including normal tasks

2017-12-05 Thread Jonathan Haws
--- 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;

Tasks blocking on POSIX message queue using wrong priority?

2017-11-10 Thread Jonathan Haws
Hello all, I'm looking at the file ipc/mqueue.c and I found what I believe to be a bug, but I would love it if someone corrected me or confirmed this. In the wq_add() function, it appears that the task is added to the wait queue using the static priority, which I believe equates to the

Tasks blocking on POSIX message queue using wrong priority?

2017-11-10 Thread Jonathan Haws
Hello all, I'm looking at the file ipc/mqueue.c and I found what I believe to be a bug, but I would love it if someone corrected me or confirmed this. In the wq_add() function, it appears that the task is added to the wait queue using the static priority, which I believe equates to the

POSIX Message Queue Priority Scheduling

2017-10-26 Thread Jonathan Haws
Can someone explain to me how message queues handle waking multiple threads blocked on a single message queue? My situation is I have multiple writers blocking on a full message queue, each posting messages with priority equal to the thread priority. I want to make sure they wake and post in

POSIX Message Queue Priority Scheduling

2017-10-26 Thread Jonathan Haws
Can someone explain to me how message queues handle waking multiple threads blocked on a single message queue? My situation is I have multiple writers blocking on a full message queue, each posting messages with priority equal to the thread priority. I want to make sure they wake and post in