All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] Policy switching and XNOTHER maintenance
@ 2011-09-11 10:50 Jan Kiszka
  2011-09-11 11:49 ` Jan Kiszka
  2011-09-11 14:24 ` Gilles Chanteperdrix
  0 siblings, 2 replies; 14+ messages in thread
From: Jan Kiszka @ 2011-09-11 10:50 UTC (permalink / raw)
  To: xenomai-core

[-- Attachment #1: Type: text/plain, Size: 771 bytes --]

Hi all,

just looked into the hrescnt issue again, specifically the corner case
of a shadow thread switching from real-time policy to SCHED_OTHER.

Looks like we don't support this at all ATM:

do_setsched_event ignores events that enabled SCHED_OTHER, and the
XNOTHER flag is only set on xnshadow_map, not updated anywhere else.
Fixing this is not straightforward as that flag resides in a state
variable that is owned by the thread (ie. updated non-atomically) while
do_setsched_event can also be called over different contexts.

Or am I missing something?

In the light of this, I would vote for reverting f9bfab3457 ("only
update rescnt for XNOTHER threads") as it only adds conditional branches
to the hot paths without solving the issue.

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2011-09-18 15:47 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-11 10:50 [Xenomai-core] Policy switching and XNOTHER maintenance Jan Kiszka
2011-09-11 11:49 ` Jan Kiszka
2011-09-11 14:24 ` Gilles Chanteperdrix
2011-09-11 14:29   ` Jan Kiszka
2011-09-16 20:13     ` Gilles Chanteperdrix
2011-09-16 20:39       ` Gilles Chanteperdrix
2011-09-18 14:02         ` Philippe Gerum
2011-09-18 14:34           ` Jan Kiszka
2011-09-18 15:10             ` Philippe Gerum
2011-09-18 15:11               ` Jan Kiszka
2011-09-18 15:13                 ` Jan Kiszka
2011-09-18 15:18                   ` Gilles Chanteperdrix
2011-09-18 15:24                     ` Jan Kiszka
2011-09-18 15:47                       ` Gilles Chanteperdrix

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.