All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] [Xenomai-git] Jan Kiszka : switchtest: Account for invalid last_switch.from field
Date: Mon, 18 Nov 2013 19:13:04 +0100	[thread overview]
Message-ID: <528A58B0.7070400@siemens.com> (raw)
In-Reply-To: <528A5678.2000908@xenomai.org>

On 2013-11-18 19:03, Gilles Chanteperdrix wrote:
> On 11/18/2013 06:57 PM, Jan Kiszka wrote:
>> On 2013-11-18 18:42, Gilles Chanteperdrix wrote:
>>> On 11/18/2013 05:58 PM, Jan Kiszka wrote:
>>>> Bailing out from rtswitch_pend_rt remains correct and necessary (with
>>>> the new RTDM semantics): rtdm_task_destroy will now kick us out of the
>>>> rtdm_even_wait, and that at a time where no switch happened yet.
>>>
>>> So, you also have to check rtswitch_to_rt return value, and return in
>>> that case as well.
>>
>> We could, but rtdm_task_should_stop already makes sure that we don't
>> spin endlessly.
> 
> Then why do not just put rtdm_task_should_stop at the beginning of the
> loop to catch both the case where rtswitch_pend_rt or rtswitch_to_rt
> were interrupted?
> 

Sure, will write the patch accordingly.

Jan

-- 
Siemens AG, Corporate Technology, CT RTC ITP SES-DE
Corporate Competence Center Embedded Linux


  reply	other threads:[~2013-11-18 18:13 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1ViO8p-0004L8-4y@sd-51317.dedibox.fr>
2013-11-18 13:26 ` [Xenomai] [Xenomai-git] Jan Kiszka : switchtest: Account for invalid last_switch.from field Gilles Chanteperdrix
2013-11-18 14:18   ` Jan Kiszka
2013-11-18 14:30     ` Gilles Chanteperdrix
2013-11-18 14:34       ` Jan Kiszka
2013-11-18 14:43         ` Gilles Chanteperdrix
2013-11-18 15:01           ` Jan Kiszka
2013-11-18 15:17             ` Gilles Chanteperdrix
2013-11-18 15:58               ` Jan Kiszka
2013-11-18 16:14                 ` Gilles Chanteperdrix
2013-11-18 16:46                   ` Jan Kiszka
2013-11-18 16:58                     ` Jan Kiszka
2013-11-18 17:42                       ` Gilles Chanteperdrix
2013-11-18 17:57                         ` Jan Kiszka
2013-11-18 18:03                           ` Gilles Chanteperdrix
2013-11-18 18:13                             ` Jan Kiszka [this message]
2013-11-20 18:25                       ` Jan Kiszka
2013-11-24  8:43                         ` Philippe Gerum
2013-11-18 13:44 ` Gilles Chanteperdrix
2013-11-18 14:00   ` Philippe Gerum

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=528A58B0.7070400@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=gilles.chanteperdrix@xenomai.org \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.